Commit 97168a67 authored by Alexis SALZMAN's avatar Alexis SALZMAN

[xLinAlg] enlarge scope of printMatrixMarket stream that can be use

parent 86b38d83
......@@ -278,7 +278,7 @@ class xGenericSparseMatrix
T operator()(const int &i, const int &j) const;
//! print in Matrix Market format data of this container
void printMatrixMarket(std::ofstream &os);
void printMatrixMarket(std::ostream &os);
/// When matrix have explicitly null equation this method set diagonal zero term to a arbitrary value using "val"
//! The null equation is then replace by a arbitrary isolated equation which will give arbitrary solution
......
......@@ -1348,7 +1348,7 @@ void xGenericSparseMatrix<T, DEFINED, PATTERN, STORAGE_TYPE, INDEXING>::gemvfac(
}
}
template <typename T, typename DEFINED, typename PATTERN, typename STORAGE_TYPE, typename INDEXING>
void xGenericSparseMatrix<T, DEFINED, PATTERN, STORAGE_TYPE, INDEXING>::printMatrixMarket(std::ofstream &os)
void xGenericSparseMatrix<T, DEFINED, PATTERN, STORAGE_TYPE, INDEXING>::printMatrixMarket(std::ostream &os)
{
// see for example http://math.nist.gov/MatrixMarket/formats.html to understand loop below
std::map<std::string, std::string> xDataTypeToMatrixMarketType{
......
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