SpM Handbook 1.2.4
|
#include "common.h"
Go to the source code of this file.
Functions | |
static void | c_spm_print_elt_sym_diag (spm_int_t row, spm_int_t dofi, spm_cconj_fct_t conjfct, const spm_complex32_t *valptr, FILE *f) |
Print a diagonal element within a symmetric/hermitian matrix with column/row major storage. | |
static void | c_spm_print_elt_gen_col (spm_int_t row, spm_int_t dofi, spm_int_t col, spm_int_t dofj, spm_cconj_fct_t conjfct, const spm_complex32_t *valptr, FILE *f) |
Print a general element matrix with column major storage. | |
static void | c_spm_print_elt_gen_row (spm_int_t row, spm_int_t dofi, spm_int_t col, spm_int_t dofj, spm_cconj_fct_t conjfct, const spm_complex32_t *valptr, FILE *f) |
Print a general element matrix with row major storage. | |
static void | c_spm_print_elt_gen (spm_layout_t layout, spm_int_t row, spm_int_t dofi, spm_int_t col, spm_int_t dofj, const spm_cconj_fct_t conjfct, const spm_complex32_t *valptr, FILE *f) |
Print a general element matrix. | |
static void | c_spm_print_elt_sym_offd (spm_layout_t layout, spm_int_t row, spm_int_t dofi, spm_int_t col, spm_int_t dofj, spm_cconj_fct_t conjfct, const spm_complex32_t *valptr, FILE *f) |
Print an off-diagonal element matrix in the symmetric/hermitian case. | |
static void | c_spm_print_elt (spm_mtxtype_t mtxtype, spm_layout_t layout, spm_int_t row, spm_int_t dofi, spm_int_t col, spm_int_t dofj, const spm_complex32_t *valptr, FILE *f) |
Print an element matrix. | |
void | c_spmCSCPrint (FILE *f, const spmatrix_t *spm) |
Write CSC matrix in a file. | |
void | c_spmCSRPrint (FILE *f, const spmatrix_t *spm) |
Write CSR matrix in a file. | |
void | c_spmIJVPrint (FILE *f, const spmatrix_t *spm) |
Write IJV matrix in a file. | |
void | c_spmPrint (FILE *f, const spmatrix_t *spm) |
Write a spm matrix in a file. | |
void | c_spmPrintRHS (FILE *f, const spmatrix_t *spm, int nrhs, const void *x, spm_int_t ldx) |
Write into a file the vectors associated to a spm. | |
SParse Matrix package printing routines.
Definition in file c_spm_print.c.
|
static |
Print a diagonal element within a symmetric/hermitian matrix with column/row major storage.
Note that column major is using the low triangular part only of the diagonal element matrices, and row major, by symmetry, is using only the upper triangular part.
The comments in the code are made for column major storage.
[in] | row | TODO |
[in] | dofi | TODO |
[in] | conjfct | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 57 of file c_spm_print.c.
References c_spmPrintElt().
Referenced by c_spm_print_elt().
|
static |
Print a general element matrix with column major storage.
[in] | row | TODO |
[in] | dofi | TODO |
[in] | col | TODO |
[in] | dofj | TODO |
[in] | conjfct | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 117 of file c_spm_print.c.
References c_spmPrintElt().
Referenced by c_spm_print_elt_gen(), and c_spm_print_elt_sym_offd().
|
static |
Print a general element matrix with row major storage.
[in] | row | TODO |
[in] | dofi | TODO |
[in] | col | TODO |
[in] | dofj | TODO |
[in] | conjfct | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 167 of file c_spm_print.c.
References c_spmPrintElt().
Referenced by c_spm_print_elt_gen(), and c_spm_print_elt_sym_offd().
|
static |
Print a general element matrix.
[in] | layout | TODO |
[in] | row | TODO |
[in] | dofi | TODO |
[in] | col | TODO |
[in] | dofj | TODO |
[in] | conjfct | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 220 of file c_spm_print.c.
References c_spm_print_elt_gen_col(), c_spm_print_elt_gen_row(), and SpmColMajor.
Referenced by c_spm_print_elt().
|
static |
Print an off-diagonal element matrix in the symmetric/hermitian case.
[in] | layout | TODO |
[in] | row | TODO |
[in] | dofi | TODO |
[in] | col | TODO |
[in] | dofj | TODO |
[in] | conjfct | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 270 of file c_spm_print.c.
References c_spm_print_elt_gen_col(), c_spm_print_elt_gen_row(), and SpmColMajor.
Referenced by c_spm_print_elt().
|
static |
Print an element matrix.
[in] | mtxtype | TODO |
[in] | layout | TODO |
[in] | row | TODO |
[in] | dofi | TODO |
[in] | col | TODO |
[in] | dofj | TODO |
[in] | valptr | TODO |
[in,out] | f | TODO |
Definition at line 327 of file c_spm_print.c.
References c_spm_print_elt_gen(), c_spm_print_elt_sym_diag(), c_spm_print_elt_sym_offd(), SpmGeneral, and SpmHermitian.
Referenced by c_spmCSCPrint(), c_spmCSRPrint(), and c_spmIJVPrint().
void c_spmCSCPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write CSC matrix in a file.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 377 of file c_spm_print.c.
References spmatrix_s::baseval, c_spm_print_elt(), spmatrix_s::colptr, spmatrix_s::dof, spmatrix_s::dofs, spmatrix_s::flttype, spmatrix_s::fmttype, spmatrix_s::layout, spmatrix_s::loc2glob, spmatrix_s::mtxtype, spmatrix_s::n, spmatrix_s::replicated, spmatrix_s::rowptr, SpmComplex32, SpmCSC, and spmatrix_s::values.
Referenced by c_spmPrint().
void c_spmCSRPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write CSR matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 444 of file c_spm_print.c.
References spmatrix_s::baseval, c_spm_print_elt(), spmatrix_s::colptr, spmatrix_s::dof, spmatrix_s::dofs, spmatrix_s::flttype, spmatrix_s::fmttype, spmatrix_s::layout, spmatrix_s::loc2glob, spmatrix_s::mtxtype, spmatrix_s::n, spmatrix_s::replicated, spmatrix_s::rowptr, SpmComplex32, SpmCSR, and spmatrix_s::values.
Referenced by c_spmPrint().
void c_spmIJVPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write IJV matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 515 of file c_spm_print.c.
References spmatrix_s::baseval, c_spm_print_elt(), spmatrix_s::colptr, spmatrix_s::dof, spmatrix_s::dofs, spmatrix_s::flttype, spmatrix_s::fmttype, spmatrix_s::layout, spmatrix_s::mtxtype, spmatrix_s::nnz, spmatrix_s::rowptr, SpmComplex32, SpmIJV, and spmatrix_s::values.
Referenced by c_spmPrint().