SpM Handbook 1.2.4
|
#include "common.h"
Go to the source code of this file.
Functions | |
static int | readArrayOfInteger (FILE *stream, spm_int_t n, spm_int_t *array) |
Read an array of integer. | |
static int | readArrayOfComplex64 (FILE *stream, spm_int_t n, spm_complex64_t *array) |
Read an array of 64bits complex. | |
static int | readArrayOfComplex32 (FILE *stream, spm_int_t n, spm_complex32_t *array) |
Read an array of 32bits complex. | |
static int | readArrayOfDouble (FILE *stream, spm_int_t n, double *array) |
Read an array of double. | |
static int | readArrayOfFloat (FILE *stream, spm_int_t n, float *array) |
Read an array of float. | |
static int | spm_load_local (spmatrix_t *spm, const char *filename) |
Load the spm structure from a file (internal format). One node only. | |
static int | writeArrayOfComplex64 (FILE *outfile, spm_int_t n, const spm_complex64_t *array) |
write an array of 64bits complex. | |
static int | writeArrayOfComplex32 (FILE *outfile, spm_int_t n, const spm_complex32_t *array) |
write an array of 32bits complex. | |
static int | writeArrayOfDouble (FILE *outfile, spm_int_t n, const double *array) |
write an array of double. | |
static int | writeArrayOfFloat (FILE *outfile, spm_int_t n, const float *array) |
write an array of float. | |
static int | spm_save_local (const spmatrix_t *spm, const char *filename) |
Save the global spm structure into a file (internal format). | |
SPM IO subroutines | |
int | spmLoadDist (spmatrix_t *spm, const char *filename, SPM_Comm comm) |
Load the spm structure from a file (internal format). | |
int | spmLoad (spmatrix_t *spm, const char *filename) |
Load the spm structure from a file (internal format). | |
int | spmSave (const spmatrix_t *spm, const char *filename) |
Save the spm structure into a file (internal format). | |
SParse Matrix package I/O routines.
Definition in file spm_io.c.
Read an array of integer.
[in] | stream | The opened file in which the spm is stored. |
[in] | n | Number of elements. |
[out] | array | Array of results. |
SPM_SUCCESS | if the read happened successfully, |
SPM_ERR_FILE | if the input format is incorrect. |
Definition at line 46 of file spm_io.c.
References SPM_ERR_FILE, and SPM_SUCCESS.
Referenced by spm_load_local().
|
static |
Read an array of 64bits complex.
[in] | stream | The opened file in which the spm is stored. |
[in] | n | Number of elements. |
[out] | array | Array of results. |
SPM_SUCCESS | if the read happened successfully, |
SPM_ERR_FILE | if the input format is incorrect. |
Definition at line 127 of file spm_io.c.
References SPM_ERR_FILE, and SPM_SUCCESS.
Referenced by spm_load_local().
|
static |
Read an array of 32bits complex.
[in] | stream | The opened file in which the spm is stored. |
[in] | n | Number of elements. |
[out] | array | Array of results. |
SPM_SUCCESS | if the read happened successfully, |
SPM_ERR_FILE | if the input format is incorrect. |
Definition at line 213 of file spm_io.c.
References SPM_ERR_FILE, and SPM_SUCCESS.
Referenced by spm_load_local().
|
static |
Read an array of double.
[in] | stream | The opened file in which the spm is stored. |
[in] | n | Number of elements. |
[out] | array | Array of results. |
SPM_SUCCESS | if the read happened successfully, |
SPM_ERR_FILE | if the input format is incorrect. |
Definition at line 299 of file spm_io.c.
References SPM_ERR_FILE, and SPM_SUCCESS.
Referenced by spm_load_local().
|
static |
Read an array of float.
[in] | stream | The opened file in which the spm is stored. |
[in] | n | Number of elements. |
[out] | array | Array of results. |
SPM_SUCCESS | if the read happened successfully, |
SPM_ERR_FILE | if the input format is incorrect. |
Definition at line 383 of file spm_io.c.
References SPM_ERR_FILE, and SPM_SUCCESS.
Referenced by spm_load_local().
|
static |
write an array of 64bits complex.
[in] | outfile | The opened file in which to store the spm. |
[in] | n | numbers of elements. |
[in] | array | array to write. |
Definition at line 779 of file spm_io.c.
References SPM_SUCCESS.
Referenced by spm_save_local().
|
static |
write an array of 32bits complex.
[in] | outfile | The opened file in which to store the spm. |
[in] | n | numbers of elements. |
[in] | array | array to write. |
Definition at line 820 of file spm_io.c.
References SPM_SUCCESS.
Referenced by spm_save_local().
|
static |
write an array of double.
[in] | outfile | The opened file in which to store the spm. |
[in] | n | numbers of elements. |
[in] | array | array to write. |
Definition at line 861 of file spm_io.c.
References SPM_SUCCESS.
Referenced by spm_save_local().
|
static |
write an array of float.
[in] | outfile | The opened file in which to store the spm. |
[in] | n | numbers of elements. |
[in] | array | array to write. |
Definition at line 902 of file spm_io.c.
References SPM_SUCCESS.
Referenced by spm_save_local().