Function

NumCosmoMathlapack_dpotri

Declaration [src]

gint
ncm_lapack_dpotri (
  gchar uplo,
  gint n,
  gdouble* a,
  gint lda
)

Description [src]

This function computes the inverse of a real symmetric positive definite matrix a = A using the Cholesky factorization $A = U^TU$ or $A = LL^T$ computed by ncm_lapack_dpotrf().

Parameters

uplo

Type: gchar

U’ upper triangle of a is stored; ‘L’ lower triangle of a is stored.

n

Type: gint

The order of the matrix a, n >= 0.

a

Type: gdouble*

Array of doubles with dimension (n, lda).

The data is owned by the caller of the function.
lda

Type: gint

The leading dimension of the array a, lda >= max (1,n).

Return value

Type: gint

I = 0: successful exit

     < 0:  -i, the i-th argument had an illegal value

     > 0: the (i,i) element of the factor U
       or L is zero, and the inverse could not be computed.