Template Function GridKit::writeVectorToMatrixMarket

Function Documentation

template<typename T>
void GridKit::writeVectorToMatrixMarket(const std::vector<T> &vec, const std::string &filename, const std::string &header)

Writes a vector to a file in Matrix Market format

Parameters:
  • vec – The vector to write

  • filename – The name of the output file

  • header – Additional header information/comments

Returns:

true if the write was successful, false otherwise