Browse Source

RootFinding: move files, namespace, tests, projects

v2
Christoph Ruegg 14 years ago
parent
commit
be5d8b9ebc
  1. 2
      src/Numerics/Numerics.csproj
  2. 2
      src/Numerics/RootFinding/BrentRootFinder.cs
  3. 2
      src/Numerics/RootFinding/RootFinder.cs
  4. 16
      src/UnitTests/RootFindingTests/BrentRootFinderTest.cs
  5. 1
      src/UnitTests/UnitTests.csproj

2
src/Numerics/Numerics.csproj

@ -109,6 +109,8 @@
<Compile Include="Financial\AbsoluteRiskMeasures.cs" /> <Compile Include="Financial\AbsoluteRiskMeasures.cs" />
<Compile Include="LinearAlgebra\Generic\Matrix.BCL.cs" /> <Compile Include="LinearAlgebra\Generic\Matrix.BCL.cs" />
<Compile Include="LinearAlgebra\Generic\Vector.BCL.cs" /> <Compile Include="LinearAlgebra\Generic\Vector.BCL.cs" />
<Compile Include="RootFinding\BrentRootFinder.cs" />
<Compile Include="RootFinding\RootFinder.cs" />
<Compile Include="SpecialFunctions\Evaluate.cs" /> <Compile Include="SpecialFunctions\Evaluate.cs" />
<Compile Include="SpecialFunctions\ModifiedStruve.cs" /> <Compile Include="SpecialFunctions\ModifiedStruve.cs" />
<Compile Include="SpecialFunctions\ModifiedBessel.cs" /> <Compile Include="SpecialFunctions\ModifiedBessel.cs" />

2
src/Numerics/RootFinders/BrentRootFinder.cs → src/Numerics/RootFinding/BrentRootFinder.cs

@ -1,6 +1,6 @@
using System; using System;
namespace MathNet.Numerics.RootFinders namespace MathNet.Numerics.RootFinding
{ {
public class BrentRootFinder : RootFinder public class BrentRootFinder : RootFinder
{ {

2
src/Numerics/RootFinders/RootFinder.cs → src/Numerics/RootFinding/RootFinder.cs

@ -1,6 +1,6 @@
using System; using System;
namespace MathNet.Numerics.RootFinders namespace MathNet.Numerics.RootFinding
{ {
public struct Range public struct Range
{ {

16
src/Numerics/RootFinders/RootFinderTest.cs → src/UnitTests/RootFindingTests/BrentRootFinderTest.cs

@ -1,15 +1,13 @@
namespace MathNet.Numerics.RootFinders using MathNet.Numerics.RootFinding;
{ using NUnit.Framework;
using System; using System;
using System.Collections.Generic;
using MbUnit.Framework;
using Gallio.Framework;
using SuntrustPortfolio.Numerics;
namespace MathNet.Numerics.UnitTests.RootFindingTests
{
[TestFixture] [TestFixture]
public class RootFinderTest public class BrentRootFinderTest
{ {
BrentRootFinder _solver = new BrentRootFinder(100, 1e-14); readonly BrentRootFinder _solver = new BrentRootFinder(100, 1e-14);
[Test] [Test]
public void MultipleRoots() public void MultipleRoots()

1
src/UnitTests/UnitTests.csproj

@ -770,6 +770,7 @@
<Compile Include="Random\WH1982Tests.cs" /> <Compile Include="Random\WH1982Tests.cs" />
<Compile Include="Random\WH2006Tests.cs" /> <Compile Include="Random\WH2006Tests.cs" />
<Compile Include="Random\XorshiftTests.cs" /> <Compile Include="Random\XorshiftTests.cs" />
<Compile Include="RootFindingTests\BrentRootFinderTest.cs" />
<Compile Include="SortingTests.cs" /> <Compile Include="SortingTests.cs" />
<Compile Include="SpecialFunctionsTests\ModifiedStruveTests.cs" /> <Compile Include="SpecialFunctionsTests\ModifiedStruveTests.cs" />
<Compile Include="SpecialFunctionsTests\ModifiedBesselTests.cs" /> <Compile Include="SpecialFunctionsTests\ModifiedBesselTests.cs" />

Loading…
Cancel
Save