HermesCommon
3.0
|
#include <algebra_mixins.h>
Public Member Functions | |
virtual void | export_to_file (const char *filename, const char *var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf")=0 |
void | export_to_file (std::string filename, const char *var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf") |
void | export_to_file (std::string filename, std::string var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf") |
virtual void | import_from_file (const char *filename, const char *var_name, Algebra::MatrixExportFormat fmt) |
void | import_from_file (std::string filename, const char *var_name, Algebra::MatrixExportFormat fmt) |
void | import_from_file (std::string filename, std::string var_name, Algebra::MatrixExportFormat fmt) |
Mixin that interfaces basic linear algebra structures output.
Definition at line 117 of file algebra_mixins.h.
|
pure virtual |
writing matrix.
[in] | filename | obvious |
[in] | var_name | name of variable (will be written to output file) |
[in] | fmt | output file format |
[in] | number_format | specifies the number format where possible |
Implemented in Hermes::Algebra::EpetraMatrix< Scalar >, Hermes::Algebra::EpetraMatrix< Scalar >, Hermes::Algebra::CSRMatrix< Scalar >, Hermes::Algebra::CSCMatrix< Scalar >, Hermes::Algebra::SimpleVector< Scalar >, Hermes::Algebra::EpetraVector< Scalar >, Hermes::Algebra::MumpsMatrix< Scalar >, and Hermes::Algebra::EpetraMatrix< Scalar >.
Referenced by Hermes::Algebra::Mixins::MatrixRhsOutput< Scalar >::process_matrix_output(), and Hermes::Algebra::Mixins::MatrixRhsOutput< Scalar >::process_vector_output().
|
inlinevirtual |
reading matrix
[in] | filename | obvious |
[in] | var_name | name of variable (will be searched for to output file) |
[in] | fmt | input file format |
Reimplemented in Hermes::Algebra::CSRMatrix< Scalar >, Hermes::Algebra::CSCMatrix< Scalar >, Hermes::Algebra::SimpleVector< Scalar >, and Hermes::Algebra::MumpsMatrix< Scalar >.
Definition at line 133 of file algebra_mixins.h.