Browse Source

RootFinding: move files, namespace, tests, projects

pull/121/head
Christoph Ruegg 13 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="LinearAlgebra\Generic\Matrix.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\ModifiedStruve.cs" />
<Compile Include="SpecialFunctions\ModifiedBessel.cs" />

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

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

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

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

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

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

1
src/UnitTests/UnitTests.csproj

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

Loading…
Cancel
Save