![]() |
SenK
SenK is a C++ library for high-performance linear solvers.
|
Contains functions related to inputs and outputs. More...
Enumerations | |
| enum | Shape { Sym , Unsym } |
| enum for the shape of matrices. More... | |
Functions | |
| bool | ReadMatrixMarket (std::string filename, double **val, int **cind, int **rptr, int *N, int *M, Shape *shape, bool removeZeros) |
| Get a matrix in the CSR format from a MatrixMarket file. More... | |
Contains functions related to inputs and outputs.
| enum senk::io::Shape |
enum for the shape of matrices.
Definition at line 26 of file senk_io.hpp.
| bool senk::io::ReadMatrixMarket | ( | std::string | filename, |
| double ** | val, | ||
| int ** | cind, | ||
| int ** | rptr, | ||
| int * | N, | ||
| int * | M, | ||
| Shape * | shape, | ||
| bool | removeZeros | ||
| ) |
Get a matrix in the CSR format from a MatrixMarket file.
| filename | PATH to the input file. |
| val | A pointer of an array for nonzero values in the CSR format. |
| cind | A pointer of an array for column indices in the CSR format. |
| rptr | A pointer of an array for starting position of each row. |
| N | A variable to receive the number of rows. |
| M | A variable to receive the number of columns. |
| shape | A variable to receive the shape of the matrix. |
| removeZeros | If true, remove zero elements in the off-diagonal. |
Definition at line 41 of file senk_io.hpp.