SpM Handbook 1.2.4
Loading...
Searching...
No Matches
Spm_dev_print

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.
 

Detailed Description

Output routines.

Function Documentation

◆ z_spmPrintElt()

static void z_spmPrintElt ( FILE *  f,
spm_int_t  i,
spm_int_t  j,
spm_complex64_t  A 
)
static

Subroutines to print one element of an spm structure.

Parameters
[in]fPointer to the file
[in]iRow index of the element
[in]jColumn index of the element
[in]AValue 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().

◆ s_spmPrint()

void s_spmPrint ( FILE *  f,
const spmatrix_t spm 
)

Write a spm matrix in a file.

Parameters
[in]fOutput file
[in]spmThe 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().

◆ s_spmPrintRHS()

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.

Parameters
[in,out]fOutput file
[in]spmThe spm structure describing the matrix.
[in]nrhsThe number of columns of x.
[in]xThe set of vectors associated to the spm of size ldx-by-nrhs.
[in]ldxThe 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().

◆ s_spmDensePrint()

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.

Parameters
[in]fOpen file descriptor on which to write the matrix.
[in]mNumber of rows of the matrix A.
[in]nNumber of columns of the matrix A.
[in]AThe matrix to print of size lda -by- n
[in]ldathe leading dimension of the matrix A. lda >= m

Definition at line 721 of file s_spm_2dense.c.

References s_spmPrintElt().

◆ d_spmPrint()

void d_spmPrint ( FILE *  f,
const spmatrix_t spm 
)

Write a spm matrix in a file.

Parameters
[in]fOutput file
[in]spmThe 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().

◆ d_spmPrintRHS()

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.

Parameters
[in,out]fOutput file
[in]spmThe spm structure describing the matrix.
[in]nrhsThe number of columns of x.
[in]xThe set of vectors associated to the spm of size ldx-by-nrhs.
[in]ldxThe 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().

◆ d_spmDensePrint()

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.

Parameters
[in]fOpen file descriptor on which to write the matrix.
[in]mNumber of rows of the matrix A.
[in]nNumber of columns of the matrix A.
[in]AThe matrix to print of size lda -by- n
[in]ldathe leading dimension of the matrix A. lda >= m

Definition at line 721 of file d_spm_2dense.c.

References d_spmPrintElt().

◆ c_spmPrint()

void c_spmPrint ( FILE *  f,
const spmatrix_t spm 
)

Write a spm matrix in a file.

Parameters
[in]fOutput file
[in]spmThe 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().

◆ c_spmPrintRHS()

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.

Parameters
[in,out]fOutput file
[in]spmThe spm structure describing the matrix.
[in]nrhsThe number of columns of x.
[in]xThe set of vectors associated to the spm of size ldx-by-nrhs.
[in]ldxThe 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().

◆ c_spmDensePrint()

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.

Parameters
[in]fOpen file descriptor on which to write the matrix.
[in]mNumber of rows of the matrix A.
[in]nNumber of columns of the matrix A.
[in]AThe matrix to print of size lda -by- n
[in]ldathe leading dimension of the matrix A. lda >= m

Definition at line 721 of file c_spm_2dense.c.

References c_spmPrintElt().

◆ z_spmPrint()

void z_spmPrint ( FILE *  f,
const spmatrix_t spm 
)

Write a spm matrix in a file.

Parameters
[in]fOutput file
[in]spmThe 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().

◆ z_spmPrintRHS()

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.

Parameters
[in,out]fOutput file
[in]spmThe spm structure describing the matrix.
[in]nrhsThe number of columns of x.
[in]xThe set of vectors associated to the spm of size ldx-by-nrhs.
[in]ldxThe 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().

◆ z_spmDensePrint()

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.

Parameters
[in]fOpen file descriptor on which to write the matrix.
[in]mNumber of rows of the matrix A.
[in]nNumber of columns of the matrix A.
[in]AThe matrix to print of size lda -by- n
[in]ldathe leading dimension of the matrix A. lda >= m

Definition at line 721 of file z_spm_2dense.c.

References z_spmPrintElt().

◆ p_spmPrint()

void p_spmPrint ( FILE *  f,
const spmatrix_t spm 
)

Write a spm matrix in a file.

Parameters
[in]fOutput file
[in]spmThe 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.

◆ p_spmPrintRHS()

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.

Parameters
[in,out]fOutput file
[in]spmThe spm structure describing the matrix.
[in]nrhsThe number of columns of x.
[in]xThe set of vectors associated to the spm of size ldx-by-nrhs.
[in]ldxThe 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.