/// <summary> /// Try to use the Intel MKL native provider for linear algebra. /// </summary> /// <returns> /// True if the provider was found and initialized successfully. /// False if it failed and the previous provider is still active. /// </returns> public static bool TryUseNativeMKL() { bool linearAlgebra = LinearAlgebraControl.TryUseNativeMKL(); bool fourierTransform = FourierTransformControl.TryUseNativeMKL(); return(linearAlgebra || fourierTransform); }
/// <summary> /// Try to use the Intel MKL native provider for linear algebra. /// </summary> /// <returns> /// True if the provider was found and initialized successfully. /// False if it failed and the previous provider is still active. /// </returns> public static bool TryUseNativeMKL() { bool linearAlgebra = LinearAlgebraControl.TryUseNativeMKL(); bool fourierTransform = FourierTransformControl.TryUseNativeMKL(); bool directSparseSolver = SparseSolverControl.TryUseNativeMKL(); return(linearAlgebra || fourierTransform || directSparseSolver); }