From 2f00b6949ae2e62889a0995160108fabe54416ed Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 30 Oct 2016 18:57:01 +0100 Subject: [PATCH] Provider Control: fix PCL builds --- .../FourierTransform/FourierTransformControl.cs | 16 ++++++++-------- .../LinearAlgebra/LinearAlgebraControl.cs | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Numerics/Providers/FourierTransform/FourierTransformControl.cs b/src/Numerics/Providers/FourierTransform/FourierTransformControl.cs index 2e191bc6..0aaedbcf 100644 --- a/src/Numerics/Providers/FourierTransform/FourierTransformControl.cs +++ b/src/Numerics/Providers/FourierTransform/FourierTransformControl.cs @@ -50,6 +50,14 @@ namespace MathNet.Numerics.Providers.FourierTransform { return TryUse(new Mkl.MklFourierTransformProvider()); } + + /// + /// Try to use a native provider, if available. + /// + public static bool TryUseNative() + { + return TryUseNativeMKL(); + } #endif static bool TryUse(IFourierTransformProvider provider) @@ -71,14 +79,6 @@ namespace MathNet.Numerics.Providers.FourierTransform } } - /// - /// Try to use a native provider, if available. - /// - public static bool TryUseNative() - { - return TryUseNativeMKL(); - } - /// /// Use the best provider available. /// diff --git a/src/Numerics/Providers/LinearAlgebra/LinearAlgebraControl.cs b/src/Numerics/Providers/LinearAlgebra/LinearAlgebraControl.cs index c9787445..71ffa1ef 100644 --- a/src/Numerics/Providers/LinearAlgebra/LinearAlgebraControl.cs +++ b/src/Numerics/Providers/LinearAlgebra/LinearAlgebraControl.cs @@ -78,6 +78,14 @@ namespace MathNet.Numerics.Providers.LinearAlgebra { return TryUse(new OpenBlas.OpenBlasLinearAlgebraProvider()); } + + /// + /// Try to use a native provider, if available. + /// + public static bool TryUseNative() + { + return TryUseNativeCUDA() || TryUseNativeMKL() || TryUseNativeOpenBLAS(); + } #endif static bool TryUse(ILinearAlgebraProvider provider) @@ -99,14 +107,6 @@ namespace MathNet.Numerics.Providers.LinearAlgebra } } - /// - /// Try to use a native provider, if available. - /// - public static bool TryUseNative() - { - return TryUseNativeCUDA() || TryUseNativeMKL() || TryUseNativeOpenBLAS(); - } - /// /// Use the best provider available. ///