Library/ManagedCuda/CudaSolve/CudaSolveDense.cs
/// <summary>
/// This function computes the Cholesky factorization of a Hermitian positive-definite matrix.
/// </summary>
/// <param name="uplo">indicates if matrix A lower or upper part is stored, the other part is not referenced.</param>
/// <param name="n">number of rows and columns of matrix A.</param>
/// <param name="A">array of dimension lda * n with lda is not less than max(1,n).</param>
/// <param name="lda">leading dimension of two-dimensional array used to store matrix A.</param>
/// <param name="Workspace">working space, array of size Lwork.</param>
/// <param name="Lwork">size of Workspace</param>
/// <param name="devInfo">if devInfo = 0, the Cholesky factorization is successful. if devInfo
/// = -i, the i-th parameter is wrong. if devInfo = i, the leading minor of order i is not positive definite.</param>
This function computes the Cholesky factorization of a Hermitian positive-definite matrix.
This function computes the Cholesky factorization of a Hermitian positive - definite matrix .
public void Potrf(FillMode uplo, int n, CudaDeviceVariable<cuFloatComplex> A, int lda, CudaDeviceVariable<cuFloatComplex> Workspace, int Lwork, CudaDeviceVariable<int> devInfo)
		{
			res = CudaSolveNativeMethods.Dense.cusolverDnCpotrf(_handle, uplo, n, A.DevicePointer, lda, Workspace.DevicePointer, Lwork, devInfo.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusolverDnCpotrf", res));
			if (res != cusolverStatus.Success) throw new CudaSolveException(res);
		}
public void Potrf ( FillMode uplo , int n , CudaDeviceVariable < cuFloatComplex > A , int lda , CudaDeviceVariable < cuFloatComplex > Workspace , int Lwork , CudaDeviceVariable < int > devInfo ) { res = CudaSolveNativeMethods . Dense . cusolverDnCpotrf ( _handle , uplo , n , A . DevicePointer , lda , Workspace . DevicePointer , Lwork , devInfo . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cusolverStatus . Success ) throw new CudaSolveException ( res ) ; }
This function computes the Cholesky factorization of a Hermitian positive-definite matrix.
This function computes the Cholesky factorization of a Hermitian positive - definite matrix .
uplo
FillMode
indicates if matrix A lower or upper part is stored, the other part is not referenced.
indicates if matrix A lower or upper part is stored the other part is not referenced .
n
int
number of rows and columns of matrix A.
number of rows and columns of matrix A .
A
CudaDeviceVariable<cuFloatComplex>
array of dimension lda * n with lda is not less than max(1,n).
array of dimension lda * n with lda is not less than max ( 1 n ) .
lda
int
leading dimension of two-dimensional array used to store matrix A.
leading dimension of two - dimensional array used to store matrix A .
Workspace
CudaDeviceVariable<cuFloatComplex>
working space, array of size Lwork.
working space array of size Lwork .
Lwork
int
size of Workspace
size of Workspace
devInfo
CudaDeviceVariable<int>
if devInfo = 0, the Cholesky factorization is successful. if devInfo
-i, the i-th parameter is wrong. if devInfo = i, the leading minor of order i is not positive definite.
if devInfo = 0 the Cholesky factorization is successful . if devInfo - i the i - th parameter is wrong . if devInfo = i the leading minor of order i is not positive definite .