|
Bsoft
1.9
Bernard's software package
|
Functions for reading (and writing) matrices. More...
Go to the source code of this file.
Functions | |
| Bmatrix | read_matrix (Bstring &filename) |
| Reads a matrix file. More... | |
| int | write_matrix (Bstring &filename, Bmatrix matrix) |
| Writes a matrix file. More... | |
Variables | |
| int | verbose |
Functions for reading (and writing) matrices.
Definition in file rwmatrix.cpp.
Reads a matrix file.
The matrix file contains the keyword "matrix_", following by a line with column labels and multiple lines for the matrix contents. All elements are delimited by whitespace. The matrix is packed into a data array row by row. Requirements: Only square matrices are supported, i.e., there must be as many content lines as there are column labels.
| Bstring& | filename matrix file name. |
Definition at line 31 of file rwmatrix.cpp.
Writes a matrix file.
The matrix file contains the keyword "matrix_", following by a line with column labels and multiple lines for the matrix contents. All elements are delimited by whitespace.
| Bstring& | filename matrix file name. |
| Bmatrix | matrix a pointer to the matrix. |
Definition at line 132 of file rwmatrix.cpp.
| int verbose |