Function Utils::appendRead(arma::sp_mat&, const std::string&, long int, const std::string&)
Defined in File utils.h
Function Documentation
-
long int Utils::appendRead(arma::sp_mat &matrix, const std::string &in, long int pos, const std::string &header = "")
Utility to read an arma::sp_mat from a long file.
- Parameters
matrix – Read and store the solution in this matrix.
in – File to read from (could be file very many matrices are appended one below another)
pos – Position in the long file where reading should start
header – Any header to check data sanctity
- Returns
The end position from which the next data object can be read.