Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

6.4.3 vsip_dchold_getattr_p - Get Cholesky Decomposition Attributes

typedef struct _vsip_chol_attr_f { 
  vsip_length n; 
  vsip_mat_uplo uplo; 
} vsip_chol_attr_f; 
 
typedef vsip_chol_attr_f vsip_cchol_attr_f; 
 
void vsip_chold_getattr_f(const vsip_chol_f *chold, vsip_chol_attr_f *attr); 
void vsip_cchold_getattr_f(const vsip_cchol_f *chold, vsip_cchol_attr_f *attr);
Description

This function retrieves the attributes of a Cholesky decomposition object and stores them in the provided structure.

Parameters
Example

vsip_chol_f *chold; 
vsip_chol_attr_f attr; 
 
// Create object 
chold = vsip_chold_create_f(VSIP_MAT_LOW, 100); 
 
// Get attributes 
vsip_chold_getattr_f(chold, &attr); 
 
printf("Cholesky decomposition attributes:\n"); 
printf("  Matrix size: %lu x %lu\n", attr.n, attr.n); 
printf("  Stored triangle: %s\n", 
       attr.uplo == VSIP_MAT_LOW ? "lower" : "upper"); 
 
// Destroy object 
vsip_chold_destroy_f(chold);