Esempio n. 1
0
 /// <summary>
 /// This routine gets the algorithm used for the refactorization in cusolverRfRefactor()
 /// and the triangular solve in cusolverRfSolve(). It may be called once prior to
 /// cusolverRfAnalyze() routine.
 /// </summary>
 /// <param name="factAlg">the enumerated algorithm type.</param>
 /// <param name="solveAlg">the enumerated algorithm type.</param>
 public void GetAlgs(ref Factorization factAlg, ref TriangularSolve solveAlg)
 {
     res = CudaSolveNativeMethods.Refactorization.cusolverRfGetAlgs(_handle, ref factAlg, ref solveAlg);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusolverRfGetAlgs", res));
     if (res != cusolverStatus.Success)
     {
         throw new CudaSolveException(res);
     }
 }
Esempio n. 2
0
		/// <summary>
		/// This routine gets the algorithm used for the refactorization in cusolverRfRefactor()
		/// and the triangular solve in cusolverRfSolve(). It may be called once prior to
		/// cusolverRfAnalyze() routine.
		/// </summary>
		/// <param name="factAlg">the enumerated algorithm type.</param>
		/// <param name="solveAlg">the enumerated algorithm type.</param>
		public void GetAlgs(ref Factorization factAlg, ref TriangularSolve solveAlg)
		{
			res = CudaSolveNativeMethods.Refactorization.cusolverRfGetAlgs(_handle, ref factAlg, ref solveAlg);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusolverRfGetAlgs", res));
			if (res != cusolverStatus.Success) throw new CudaSolveException(res);
		}
			public static extern cusolverStatus cusolverRfGetAlgs(cusolverRfHandle handle, ref Factorization factAlg, ref TriangularSolve solveAlg);