csc_intern_io.h

Functions to save or load internal CSC in binary or ascii mode.

Summary
csc_intern_io.hFunctions to save or load internal CSC in binary or ascii mode.
CscSaveWrites on disk an internal CSCd in text format.
CscBSaveWrites on disk an internal CSCd in binary format.
CscLoadReads an internal CSCd from disk.
CscBLoadLoads an internal CSCd from a file saved in binary mode.

CscSave

INT CscSave(const CscMatrix * const cscptr,
FILE * const stream)

Writes on disk an internal CSCd in text format.

Format is :

CSC_FNBR(cscptr)
CSC_COLNBR(cscptr,iter)    ! iter = 0 to CSC_FNBR(cscptr) - 1
CSC_COL(cscptr,iter,iter2) ! iter2 = 0 to CSC_COLNBR(cscptr,iter)
...
CSC_ROW(cscptr,iter) ! For all rows and values (iter)
CSC_VAL(cscptr,iter)

Parameters : cscprt - the internal CSCd structure to save. stream - the FILE to write into, open in write mode.

CscBSave

INT CscBSave(const CscMatrix * const cscptr,
FILE * const stream)

Writes on disk an internal CSCd in binary format.

Parameters : cscprt - the internal CSCd structure to save. stream - the FILE to write into, open in write mode.

CscLoad

INT CscLoad(CscMatrix *cscptr,
FILE *stream)

Reads an internal CSCd from disk.

Format is :

CSC_FNBR(cscptr)
CSC_COLNBR(cscptr,iter)    ! iter = 0 to CSC_FNBR(cscptr) - 1
CSC_COL(cscptr,iter,iter2) ! iter2 = 0 to CSC_COLNBR(cscptr,iter)
...
CSC_ROW(cscptr,iter) ! For all rows and values (iter)
CSC_VAL(cscptr,iter)

Parameters : cscprt - the internal CSCd structure to load. stream - the FILE to write into, open in read mode.

CscBLoad

INT CscBLoad(CscMatrix *cscptr,
FILE *stream)

Loads an internal CSCd from a file saved in binary mode.

Parameters : cscprt - the internal CSCd structure to load. stream - the FILE to write into, open in read mode.

INT CscSave(const CscMatrix * const cscptr,
FILE * const stream)
Writes on disk an internal CSCd in text format.
INT CscBSave(const CscMatrix * const cscptr,
FILE * const stream)
Writes on disk an internal CSCd in binary format.
INT CscLoad(CscMatrix *cscptr,
FILE *stream)
Reads an internal CSCd from disk.
INT CscBLoad(CscMatrix *cscptr,
FILE *stream)
Loads an internal CSCd from a file saved in binary mode.
Close