Function Utils::appendSave(const arma::sp_mat&, const std::string&, const std::string&, bool)

Function Documentation

void Utils::appendSave(const arma::sp_mat &matrix, const std::string &out, const std::string &header = "", bool erase = false)

Utility to append an arma::sp_mat to a data file.

Parameters
  • matrix – The arma::sp_mat to be saved

  • out – File name of the output file

  • header – A header that might be used to check the filetype

  • erase – Should the matrix be appended to the file or not?