Function Utils::appendRead(arma::vec&, const std::string&, long int, const std::string&)

Function Documentation

long int Utils::appendRead(arma::vec &matrix, const std::string &in, long int pos, const std::string &header = "")

Utility to read an arma::vec from a long file.

Parameters
  • matrix – The output matrix

  • in – The input file

  • pos – The position of matrix in the file

  • header – An optional header

Returns

The end position from which the next data object can be read.