laplacian.h

Generate a laplacian

Example :

 2 -1  0  0
-1  2 -1  0
 0  1  2 -1
 0  0 -1  2
Summary
laplacian.hGenerate a laplacian
genlaplacianGenerate a laplacian of size n

genlaplacian

int genlaplacian(pastix_int_t n,
pastix_int_t *nnzeros,
pastix_int_t **ia,
pastix_int_t **ja,
pastix_float_t **avals,
pastix_float_t **rhs,
char **type,
char **rhstype)

Generate a laplacian of size n

Parameters

nSize of the wanted matrix
nnzerosNumber of non zeros in the produced matrice
iaIndex of first element of each column in row and val
jaRow of eah element
avalsValue of each element
rhsRight-hand-side member
typeType of the matrix
rhstypeType of the right hand side.
int genlaplacian(pastix_int_t n,
pastix_int_t *nnzeros,
pastix_int_t **ia,
pastix_int_t **ja,
pastix_float_t **avals,
pastix_float_t **rhs,
char **type,
char **rhstype)
Generate a laplacian of size n
Close