Browse Source

MKL: Make bit-consistency optional and disabled by default

Disabled by default mainly for backwards compatibility
pull/163/merge
Christoph Ruegg 13 years ago
parent
commit
c7bd5c795a
  1. 11
      src/Numerics/Providers/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs

11
src/Numerics/Providers/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs

@ -42,12 +42,13 @@ namespace MathNet.Numerics.Providers.LinearAlgebra.Mkl
/// </summary>
public partial class MklLinearAlgebraProvider : ManagedLinearAlgebraProvider
{
/// <summary>
/// Improves MKL Consistency to get bit consistent results on repeated identical calculations
/// </summary>
public MklLinearAlgebraProvider()
/// <param name="bitConsistent">If true improves MKL Consistency to get bit consistent results on repeated identical calculations</param>
public MklLinearAlgebraProvider(bool bitConsistent = false)
{
SafeNativeMethods.SetImprovedConsistency();
if (bitConsistent)
{
SafeNativeMethods.SetImprovedConsistency();
}
}
/// <summary>

Loading…
Cancel
Save