Commit c84228af authored by Kirill Terekhov's avatar Kirill Terekhov

Some features for dense matrices

Made all algorithms for matrices abstract from matrix implementation.

Added few algorithms:
Solve - find A*X=B with A and B matrices
PseudoSolve - find X=A^+*B using singular value decomposition.
Kronecker product
operator / for B^{-1}*A
operator *= for in-place multiplication

Added ability to specify storage type for Matrix, allows for
Matrix<Storage::real,Storage::real_array> or
Matrix<Storage::var,Storage::var_array> to directly manipulate data
stored in the mesh.

Class SubMatrix with full matrix functionality to address and
manipulate some submatrix in original matrix.

Fully commented in doxygen inmost_dense.h.

Silence solver initializer when database file provided as “”.
parent d887be83
This diff is collapsed.
......@@ -184,7 +184,7 @@ namespace INMOST {
}
void Solver::parseXMLDatabase(const char *xml_database) {
if (xml_database == NULL) return;
if (xml_database == NULL || xml_database[0] == '\0') return;
std::ifstream input;
input.open(xml_database);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment