Browse Source

Test: slightly relax evd test (mkl), Control.UseNativeMKL(with params)

provider
Christoph Ruegg 13 years ago
parent
commit
ac47794a59
  1. 8
      src/Numerics/Control.cs
  2. 4
      src/UnitTests/LinearAlgebraTests/Double/Factorization/EvdTests.cs

8
src/Numerics/Control.cs

@ -107,6 +107,14 @@ namespace MathNet.Numerics
{
LinearAlgebraProvider = new Providers.LinearAlgebra.Mkl.MklLinearAlgebraProvider();
}
public static void UseNativeMKL(
Providers.LinearAlgebra.Mkl.MklConsistency consistency = Providers.LinearAlgebra.Mkl.MklConsistency.Auto,
Providers.LinearAlgebra.Mkl.MklPrecision precision = Providers.LinearAlgebra.Mkl.MklPrecision.Double,
Providers.LinearAlgebra.Mkl.MklAccuracy accuracy = Providers.LinearAlgebra.Mkl.MklAccuracy.High)
{
LinearAlgebraProvider = new Providers.LinearAlgebra.Mkl.MklLinearAlgebraProvider(consistency, precision, accuracy);
}
#endif
/// <summary>

4
src/UnitTests/LinearAlgebraTests/Double/Factorization/EvdTests.cs

@ -195,7 +195,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double.Factorization
var BReconstruct = A * X;
// Check the reconstruction.
AssertHelpers.AlmostEqual(B, BReconstruct, 9);
AssertHelpers.AlmostEqual(B, BReconstruct, 8);
// Make sure A/B didn't change.
AssertHelpers.AlmostEqual(ACopy, A, 14);
@ -257,7 +257,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double.Factorization
var BReconstruct = A * X;
// Check the reconstruction.
AssertHelpers.AlmostEqual(B, BReconstruct, 9);
AssertHelpers.AlmostEqual(B, BReconstruct, 8);
// Make sure A/B didn't change.
AssertHelpers.AlmostEqual(ACopy, A, 14);

Loading…
Cancel
Save