Commit 57eb7e0a authored by Kirill Terekhov's avatar Kirill Terekhov

Annotations for the classes in inmost_sparse.h

Classes  AnnotationService, Vector, Row in inmost_sparse.h
parent 9c714400
This diff is collapsed.
......@@ -959,6 +959,7 @@ namespace INMOST
{
line++;
k = 0; while( isspace(str[k]) ) k++;
//TODO: check for %%MatrixMarket matrix coordinate real general
if( str[k] == '%' || str[k] == '\0' ) continue;
std::istringstream istr(str+k);
switch(state)
......@@ -1202,6 +1203,7 @@ namespace INMOST
{
line++;
k = 0; while( isspace(str[k]) ) k++;
//TODO: check for %%MatrixMarket hessian coordinate real general
if( str[k] == '%' || str[k] == '\0' ) continue;
std::istringstream istr(str+k);
switch(state)
......@@ -1312,7 +1314,7 @@ namespace INMOST
if( rank == 0 )
{
std::stringstream header;
header << "%%MatrixMarket matrix coordinate real general" << std::endl;
header << "%%MatrixMarket hessian coordinate real general" << std::endl;
header << "% matrix " << name << std::endl;
header << "% is written by INMOST" << std::endl;
header << "% by MPI_File_* api" << std::endl;
......@@ -1348,7 +1350,7 @@ namespace INMOST
if( rank == 0 )
{
std::fstream output(file.c_str(),std::ios::out);
output << "%%MatrixMarket matrix coordinate real general" << std::endl;
output << "%%MatrixMarket hessian coordinate real general" << std::endl;
output << "% matrix " << name << std::endl;
output << "% is written by INMOST" << std::endl;
output << "% by MPI_Gather* api and sequential write" << std::endl;
......@@ -1357,7 +1359,7 @@ namespace INMOST
}
#else
std::fstream output(file.c_str(),std::ios::out);
output << "%%MatrixMarket matrix coordinate real general" << std::endl;
output << "%%MatrixMarket hessian coordinate real general" << std::endl;
output << "% matrix " << name << std::endl;
output << "% is written by INMOST" << std::endl;
output << "% by sequential write " << std::endl;
......
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