ScaMaC  0.8.2
A Scalable Matrix Collection
scamac_densemat.h
Go to the documentation of this file.
1 
9 #ifndef SCAMAC_DENSEMAT_H
10 #define SCAMAC_DENSEMAT_H
11 
12 #include "scamac_error.h"
13 #include "scamac_defs.h"
14 #include "scamac_inttypes.h"
15 #include <complex.h>
16 
17 
22 ScamacErrorCode scamac_densemat_alloc(ScamacInt nr, ScamacInt nc, ScamacValType valtype, void ** dm);
23 
24 // wrappers
25 ScamacErrorCode scamac_densemat_real_alloc(ScamacInt nr, ScamacInt nc, double ** dm);
26 ScamacErrorCode scamac_densemat_cplx_alloc(ScamacInt nr, ScamacInt nc, double complex ** dm);
27 
28 ScamacErrorCode scamac_densemat_identity(ScamacInt m, ScamacInt n, double *dm);
29 
36 ScamacErrorCode scamac_densemat_permute_columns(char dir, ScamacInt nr, ScamacInt nc, double *dm, ScamacInt *perm);
40 ScamacErrorCode scamac_densemat_permute_rows (char dir, ScamacInt nr, ScamacInt nc, double *dm, ScamacInt *perm);
41 
42 ScamacErrorCode scamac_densemat_cplx_permute_columns(char dir, ScamacInt nr, ScamacInt nc, double complex *dm, ScamacInt *perm);
46 ScamacErrorCode scamac_densemat_cplx_permute_rows (char dir, ScamacInt nr, ScamacInt nc, double complex *dm, ScamacInt *perm);
47 
48 #endif /* SCAMAC_DENSEMAT_H */
basic ScaMaC definitions
ScaMaC index/integer types.
ScamacErrorCode scamac_densemat_permute_rows(char dir, ScamacInt nr, ScamacInt nc, double *dm, ScamacInt *perm)
ScamacErrorCode scamac_densemat_permute_columns(char dir, ScamacInt nr, ScamacInt nc, double *dm, ScamacInt *perm)
ScaMaC data structure and macro definitions.
ScamacErrorCode scamac_densemat_alloc(ScamacInt nr, ScamacInt nc, ScamacValType valtype, void **dm)
Allocate dense matrix.
ScamacErrorCode scamac_densemat_cplx_permute_rows(char dir, ScamacInt nr, ScamacInt nc, double complex *dm, ScamacInt *perm)