SpM Handbook 1.2.4
|
Output routines. More...
Files | |
file | d_spm_print.c |
file | c_spm_print.c |
file | p_spm_print.c |
file | s_spm_print.c |
file | z_spm_print.c |
Functions | |
void | s_spmPrint (FILE *f, const spmatrix_t *spm) |
Write a spm matrix in a file. | |
void | s_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. | |
void | s_spmDensePrint (FILE *f, spm_int_t m, spm_int_t n, const float *A, spm_int_t lda) |
Print a dense matrix to the given file. | |
void | d_spmPrint (FILE *f, const spmatrix_t *spm) |
Write a spm matrix in a file. | |
void | d_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. | |
void | d_spmDensePrint (FILE *f, spm_int_t m, spm_int_t n, const double *A, spm_int_t lda) |
Print a dense matrix to the given 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. | |
void | c_spmDensePrint (FILE *f, spm_int_t m, spm_int_t n, const spm_complex32_t *A, spm_int_t lda) |
Print a dense matrix to the given file. | |
void | z_spmPrint (FILE *f, const spmatrix_t *spm) |
Write a spm matrix in a file. | |
void | z_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. | |
void | z_spmDensePrint (FILE *f, spm_int_t m, spm_int_t n, const spm_complex64_t *A, spm_int_t lda) |
Print a dense matrix to the given file. | |
void | p_spmPrint (FILE *f, const spmatrix_t *spm) |
Write a spm matrix in a file. | |
void | p_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. | |
SPM dev printing subroutines | |
static void | z_spmPrintElt (FILE *f, spm_int_t i, spm_int_t j, spm_complex64_t A) |
Subroutines to print one element of an spm structure. | |
Output routines.
Subroutines to print one element of an spm structure.
[in] | f | Pointer to the file |
[in] | i | Row index of the element |
[in] | j | Column index of the element |
[in] | A | Value of the element A|i,j] |
Double complex case
Definition at line 306 of file spm.h.
Referenced by z_spm_print_elt_gen_col(), z_spm_print_elt_gen_row(), z_spm_print_elt_sym_diag(), z_spmDensePrint(), and z_spmPrintRHS().
void s_spmPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write a spm matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 576 of file s_spm_print.c.
References spmatrix_s::fmttype, s_spmCSCPrint(), s_spmCSRPrint(), s_spmIJVPrint(), SpmCSC, SpmCSR, and SpmIJV.
Referenced by spmPrint().
void s_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.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
[in] | nrhs | The number of columns of x. |
[in] | x | The set of vectors associated to the spm of size ldx-by-nrhs. |
[in] | ldx | The local leading dimension of the set of vectors (ldx >= spm->n). |
Definition at line 615 of file s_spm_print.c.
References spmatrix_s::baseval, spmatrix_s::loc2glob, spmatrix_s::nexp, spmatrix_s::replicated, and s_spmPrintElt().
Referenced by spmPrintRHS().
Print a dense matrix to the given file.
[in] | f | Open file descriptor on which to write the matrix. |
[in] | m | Number of rows of the matrix A. |
[in] | n | Number of columns of the matrix A. |
[in] | A | The matrix to print of size lda -by- n |
[in] | lda | the leading dimension of the matrix A. lda >= m |
Definition at line 721 of file s_spm_2dense.c.
References s_spmPrintElt().
void d_spmPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write a spm matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 576 of file d_spm_print.c.
References d_spmCSCPrint(), d_spmCSRPrint(), d_spmIJVPrint(), spmatrix_s::fmttype, SpmCSC, SpmCSR, and SpmIJV.
Referenced by spmPrint().
void d_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.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
[in] | nrhs | The number of columns of x. |
[in] | x | The set of vectors associated to the spm of size ldx-by-nrhs. |
[in] | ldx | The local leading dimension of the set of vectors (ldx >= spm->n). |
Definition at line 615 of file d_spm_print.c.
References spmatrix_s::baseval, d_spmPrintElt(), spmatrix_s::loc2glob, spmatrix_s::nexp, and spmatrix_s::replicated.
Referenced by spmPrintRHS().
Print a dense matrix to the given file.
[in] | f | Open file descriptor on which to write the matrix. |
[in] | m | Number of rows of the matrix A. |
[in] | n | Number of columns of the matrix A. |
[in] | A | The matrix to print of size lda -by- n |
[in] | lda | the leading dimension of the matrix A. lda >= m |
Definition at line 721 of file d_spm_2dense.c.
References d_spmPrintElt().
void c_spmPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write a spm matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 576 of file c_spm_print.c.
References c_spmCSCPrint(), c_spmCSRPrint(), c_spmIJVPrint(), spmatrix_s::fmttype, SpmCSC, SpmCSR, and SpmIJV.
Referenced by spmPrint().
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.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
[in] | nrhs | The number of columns of x. |
[in] | x | The set of vectors associated to the spm of size ldx-by-nrhs. |
[in] | ldx | The local leading dimension of the set of vectors (ldx >= spm->n). |
Definition at line 615 of file c_spm_print.c.
References spmatrix_s::baseval, c_spmPrintElt(), spmatrix_s::loc2glob, spmatrix_s::nexp, and spmatrix_s::replicated.
Referenced by spmPrintRHS().
void c_spmDensePrint | ( | FILE * | f, |
spm_int_t | m, | ||
spm_int_t | n, | ||
const spm_complex32_t * | A, | ||
spm_int_t | lda | ||
) |
Print a dense matrix to the given file.
[in] | f | Open file descriptor on which to write the matrix. |
[in] | m | Number of rows of the matrix A. |
[in] | n | Number of columns of the matrix A. |
[in] | A | The matrix to print of size lda -by- n |
[in] | lda | the leading dimension of the matrix A. lda >= m |
Definition at line 721 of file c_spm_2dense.c.
References c_spmPrintElt().
void z_spmPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write a spm matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 576 of file z_spm_print.c.
References spmatrix_s::fmttype, SpmCSC, SpmCSR, SpmIJV, z_spmCSCPrint(), z_spmCSRPrint(), and z_spmIJVPrint().
Referenced by spmPrint().
void z_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.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
[in] | nrhs | The number of columns of x. |
[in] | x | The set of vectors associated to the spm of size ldx-by-nrhs. |
[in] | ldx | The local leading dimension of the set of vectors (ldx >= spm->n). |
Definition at line 615 of file z_spm_print.c.
References spmatrix_s::baseval, spmatrix_s::loc2glob, spmatrix_s::nexp, spmatrix_s::replicated, and z_spmPrintElt().
Referenced by spmPrintRHS().
void z_spmDensePrint | ( | FILE * | f, |
spm_int_t | m, | ||
spm_int_t | n, | ||
const spm_complex64_t * | A, | ||
spm_int_t | lda | ||
) |
Print a dense matrix to the given file.
[in] | f | Open file descriptor on which to write the matrix. |
[in] | m | Number of rows of the matrix A. |
[in] | n | Number of columns of the matrix A. |
[in] | A | The matrix to print of size lda -by- n |
[in] | lda | the leading dimension of the matrix A. lda >= m |
Definition at line 721 of file z_spm_2dense.c.
References z_spmPrintElt().
void p_spmPrint | ( | FILE * | f, |
const spmatrix_t * | spm | ||
) |
Write a spm matrix in a file.
[in] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
Definition at line 576 of file p_spm_print.c.
References spmatrix_s::fmttype, p_spmCSCPrint(), p_spmCSRPrint(), p_spmIJVPrint(), SpmCSC, SpmCSR, and SpmIJV.
void p_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.
[in,out] | f | Output file |
[in] | spm | The spm structure describing the matrix. |
[in] | nrhs | The number of columns of x. |
[in] | x | The set of vectors associated to the spm of size ldx-by-nrhs. |
[in] | ldx | The local leading dimension of the set of vectors (ldx >= spm->n). |
Definition at line 615 of file p_spm_print.c.
References spmatrix_s::baseval, spmatrix_s::loc2glob, spmatrix_s::nexp, p_spmPrintElt, and spmatrix_s::replicated.