![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Matrix/vector input/output subroutines. More...
Go to the source code of this file.
Functions | |
void | fasp_dcsrvec_read1 (const char *filename, dCSRmat *A, dvector *b) |
Read A and b from a SINGLE disk file. More... | |
void | fasp_dcsrvec_read2 (const char *filemat, const char *filerhs, dCSRmat *A, dvector *b) |
Read A and b from two separate disk files. More... | |
void | fasp_dcsr_read (const char *filename, dCSRmat *A) |
Read A from matrix disk file in IJ format. More... | |
void | fasp_dcoo_read (const char *filename, dCSRmat *A) |
Read A from matrix disk file in IJ format – indices starting from 0. More... | |
void | fasp_dcoo_read1 (const char *filename, dCSRmat *A) |
Read A from matrix disk file in IJ format – indices starting from 1. More... | |
void | fasp_dcoovec_bin_read (const char *fni, const char *fnj, const char *fna, const char *fnb, dCSRmat *A, dvector *b) |
Read A from matrix disk files in IJ format (three binary files) More... | |
void | fasp_dcoo_shift_read (const char *filename, dCSRmat *A) |
Read A from matrix disk file in IJ format – indices starting from 0. More... | |
void | fasp_dmtx_read (const char *filename, dCSRmat *A) |
Read A from matrix disk file in MatrixMarket general format. More... | |
void | fasp_dmtxsym_read (const char *filename, dCSRmat *A) |
Read A from matrix disk file in MatrixMarket sym format. More... | |
void | fasp_dstr_read (const char *filename, dSTRmat *A) |
Read A from a disk file in dSTRmat format. More... | |
void | fasp_dbsr_read (const char *filename, dBSRmat *A) |
Read A from a disk file in dBSRmat format. More... | |
void | fasp_dvecind_read (const char *filename, dvector *b) |
Read b from matrix disk file. More... | |
void | fasp_dvec_read (const char *filename, dvector *b) |
Read b from a disk file in array format. More... | |
void | fasp_ivecind_read (const char *filename, ivector *b) |
Read b from matrix disk file. More... | |
void | fasp_ivec_read (const char *filename, ivector *b) |
Read b from a disk file in array format. More... | |
void | fasp_dcsrvec_write1 (const char *filename, dCSRmat *A, dvector *b) |
Write A and b to a SINGLE disk file. More... | |
void | fasp_dcsrvec_write2 (const char *filemat, const char *filerhs, dCSRmat *A, dvector *b) |
Write A and b to two separate disk files. More... | |
void | fasp_dcoo_write (const char *filename, dCSRmat *A) |
Write a matrix to disk file in IJ format (coordinate format) More... | |
void | fasp_dstr_write (const char *filename, dSTRmat *A) |
Write a dSTRmat to a disk file. More... | |
void | fasp_dbsr_print (const char *filename, dBSRmat *A) |
Print a dBSRmat to a disk file in a readable format. More... | |
void | fasp_dbsr_write (const char *filename, dBSRmat *A) |
Write a dBSRmat to a disk file. More... | |
void | fasp_dvec_write (const char *filename, dvector *vec) |
Write a dvector to disk file. More... | |
void | fasp_dvecind_write (const char *filename, dvector *vec) |
Write a dvector to disk file in coordinate format. More... | |
void | fasp_ivec_write (const char *filename, ivector *vec) |
Write a ivector to disk file in coordinate format. More... | |
void | fasp_dvec_print (const INT n, dvector *u) |
Print first n entries of a vector of REAL type. More... | |
void | fasp_ivec_print (const INT n, ivector *u) |
Print first n entries of a vector of INT type. More... | |
void | fasp_dcsr_print (const dCSRmat *A) |
Print out a dCSRmat matrix in coordinate format. More... | |
void | fasp_dcoo_print (const dCOOmat *A) |
Print out a dCOOmat matrix in coordinate format. More... | |
void | fasp_dbsr_write_coo (const char *filename, const dBSRmat *A) |
Print out a dBSRmat matrix in coordinate format for matlab spy. More... | |
void | fasp_dcsr_write_coo (const char *filename, const dCSRmat *A) |
Print out a dCSRmat matrix in coordinate format for matlab spy. More... | |
void | fasp_dcsr_write_mtx (const char *filename, const dCSRmat *A) |
Print out a dCSRmat matrix in coordinate format for MatrixMarket. More... | |
void | fasp_dstr_print (const dSTRmat *A) |
Print out a dSTRmat matrix in coordinate format. More... | |
void | fasp_matrix_read (const char *filename, void *A) |
Read matrix from different kinds of formats from both ASCII and binary files. More... | |
void | fasp_matrix_read_bin (const char *filename, void *A) |
Read matrix in binary format. More... | |
void | fasp_matrix_write (const char *filename, void *A, const INT flag) |
write matrix from different kinds of formats from both ASCII and binary files More... | |
void | fasp_vector_read (const char *filerhs, void *b) |
Read RHS vector from different kinds of formats in ASCII or binary files. More... | |
void | fasp_vector_write (const char *filerhs, void *b, const INT flag) |
write RHS vector from different kinds of formats in both ASCII and binary files More... | |
void | fasp_hb_read (const char *input_file, dCSRmat *A, dvector *b) |
Read matrix and right-hans side from a HB format file. More... | |
Variables | |
int | ilength |
int | dlength |
Matrix/vector input/output subroutines.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file BlaIO.c.
void fasp_dbsr_print | ( | const char * | filename, |
dBSRmat * | A | ||
) |
void fasp_dbsr_read | ( | const char * | filename, |
dBSRmat * | A | ||
) |
Read A from a disk file in dBSRmat format.
filename | File name for matrix A |
A | Pointer to the dBSRmat A |
void fasp_dbsr_write | ( | const char * | filename, |
dBSRmat * | A | ||
) |
Write a dBSRmat to a disk file.
filename | File name for A |
A | Pointer to the dBSRmat matrix A |
void fasp_dbsr_write_coo | ( | const char * | filename, |
const dBSRmat * | A | ||
) |
void fasp_dcoo_print | ( | const dCOOmat * | A | ) |
void fasp_dcoo_read | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Read A from matrix disk file in IJ format – indices starting from 0.
filename | File name for matrix |
A | Pointer to the CSR matrix |
void fasp_dcoo_read1 | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Read A from matrix disk file in IJ format – indices starting from 1.
filename | File name for matrix |
A | Pointer to the CSR matrix |
Modified by Chensong Zhang on 01/12/2019: Convert COO to CSR
void fasp_dcoo_shift_read | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Read A from matrix disk file in IJ format – indices starting from 0.
filename | File name for matrix |
A | Pointer to the CSR matrix |
void fasp_dcoo_write | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Write a matrix to disk file in IJ format (coordinate format)
A | pointer to the dCSRmat matrix |
filename | char for vector file name |
void fasp_dcoovec_bin_read | ( | const char * | fni, |
const char * | fnj, | ||
const char * | fna, | ||
const char * | fnb, | ||
dCSRmat * | A, | ||
dvector * | b | ||
) |
Read A from matrix disk files in IJ format (three binary files)
fni | File name for matrix i-index |
fnj | File name for matrix j-index |
fna | File name for matrix values |
fnb | File name for vector values |
A | Pointer to the CSR matrix |
b | Pointer to the vector |
void fasp_dcsr_print | ( | const dCSRmat * | A | ) |
void fasp_dcsr_read | ( | const char * | filename, |
dCSRmat * | A | ||
) |
void fasp_dcsr_write_coo | ( | const char * | filename, |
const dCSRmat * | A | ||
) |
void fasp_dcsr_write_mtx | ( | const char * | filename, |
const dCSRmat * | A | ||
) |
Read A and b from a SINGLE disk file.
filename | File name |
A | Pointer to the CSR matrix |
b | Pointer to the dvector |
Modified by Chensong Zhang on 03/14/2012
Read A and b from two separate disk files.
filemat | File name for matrix |
filerhs | File name for right-hand side |
A | Pointer to the dCSR matrix |
b | Pointer to the dvector |
Modified by Chensong Zhang on 2012/01/05
Write A and b to a SINGLE disk file.
filename | File name |
A | Pointer to the CSR matrix |
b | Pointer to the dvector |
Modified by Chensong on 12/26/2012
Write A and b to two separate disk files.
filemat | File name for matrix |
filerhs | File name for right-hand side |
A | Pointer to the dCSR matrix |
b | Pointer to the dvector |
void fasp_dmtx_read | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Read A from matrix disk file in MatrixMarket general format.
filename | File name for matrix |
A | Pointer to the CSR matrix |
void fasp_dmtxsym_read | ( | const char * | filename, |
dCSRmat * | A | ||
) |
Read A from matrix disk file in MatrixMarket sym format.
filename | File name for matrix |
A | Pointer to the CSR matrix |
void fasp_dstr_print | ( | const dSTRmat * | A | ) |
void fasp_dstr_read | ( | const char * | filename, |
dSTRmat * | A | ||
) |
Read A from a disk file in dSTRmat format.
filename | File name for the matrix |
A | Pointer to the dSTRmat |
void fasp_dstr_write | ( | const char * | filename, |
dSTRmat * | A | ||
) |
Write a dSTRmat to a disk file.
filename | File name for A |
A | Pointer to the dSTRmat matrix A |
void fasp_dvec_read | ( | const char * | filename, |
dvector * | b | ||
) |
void fasp_dvec_write | ( | const char * | filename, |
dvector * | vec | ||
) |
void fasp_dvecind_read | ( | const char * | filename, |
dvector * | b | ||
) |
void fasp_dvecind_write | ( | const char * | filename, |
dvector * | vec | ||
) |
Write a dvector to disk file in coordinate format.
vec | Pointer to the dvector |
filename | File name |
Read matrix and right-hans side from a HB format file.
input_file | File name of vector file |
A | Pointer to the matrix |
b | Pointer to the vector |
void fasp_ivec_read | ( | const char * | filename, |
ivector * | b | ||
) |
void fasp_ivec_write | ( | const char * | filename, |
ivector * | vec | ||
) |
Write a ivector to disk file in coordinate format.
vec | Pointer to the dvector |
filename | File name |
void fasp_ivecind_read | ( | const char * | filename, |
ivector * | b | ||
) |
fasp_matrix_read | ( | const char * | filename, |
void * | A | ||
) |
Read matrix from different kinds of formats from both ASCII and binary files.
filename | File name of matrix file |
A | Pointer to the matrix |
Modified by Chensong Zhang on 05/01/2013
void fasp_matrix_read_bin | ( | const char * | filename, |
void * | A | ||
) |
fasp_matrix_write | ( | const char * | filename, |
void * | A, | ||
const INT | flag | ||
) |
write matrix from different kinds of formats from both ASCII and binary files
filename | File name of matrix file |
A | Pointer to the matrix |
flag | Type of file and matrix, a 3-digit number |
fasp_vector_read | ( | const char * | filerhs, |
void * | b | ||
) |
Read RHS vector from different kinds of formats in ASCII or binary files.
filerhs | File name of vector file |
b | Pointer to the vector |
fasp_vector_write | ( | const char * | filerhs, |
void * | b, | ||
const INT | flag | ||
) |
write RHS vector from different kinds of formats in both ASCII and binary files
filerhs | File name of vector file |
b | Pointer to the vector |
flag | Type of file and vector, a 2-digit number |
Modified by Chensong Zhang on 05/02/2013: fix a bug when writing in binary format