22 #ifndef __HERMES_COMMON_ALGEBRA_MIXINS_H
23 #define __HERMES_COMMON_ALGEBRA_MIXINS_H
35 template<
typename Scalar>
class Vector;
41 template<
typename Scalar>
60 void output_matrix(
bool only_last_iteration =
true,
int firstIterations = -1);
62 void set_print_zero_matrix_entries(
bool to_set);
66 void set_matrix_filename(std::string name);
69 void set_matrix_varname(std::string name);
75 void set_matrix_number_format(
char* number_format);
80 void output_rhs(
bool only_last_iteration =
true,
int firstIterations = -1);
84 void set_rhs_filename(std::string name);
87 void set_rhs_varname(std::string name);
93 void set_rhs_number_format(
char* number_format);
96 bool print_matrix_zero_values;
98 bool only_lastMatrixIteration;
99 int output_matrixIterations;
100 std::string matrixFilename;
101 std::string matrixVarname;
103 char* matrix_number_format;
106 bool only_lastRhsIteration;
107 int output_rhsIterations;
108 std::string RhsFilename;
109 std::string RhsVarname;
111 char* rhs_number_format;
116 template<
typename Scalar>
125 virtual void export_to_file(
const char* filename,
const char* var_name,
Algebra::MatrixExportFormat fmt,
char* number_format =
"%lf") = 0;
General namespace for the Hermes library.
General (abstract) vector representation in Hermes.
virtual void import_from_file(const char *filename, const char *var_name, Algebra::MatrixExportFormat fmt)
General (abstract) sparse matrix representation in Hermes.
MatrixExportFormat
Format of file matrix and vector output.
Utilities for all Algebra code.
File containing definition of exceptions classes.
File containing platform compatibility layer, especially for Win / MSVC.
Method is not overriden and should be.
File containing common definitions, and basic global enums etc. for HermesCommon. ...