Template Function otyca::vector_to_colvec(const std::vector<double>&, arma::Col<T>&)

Function Documentation

template<typename T>
void otyca::vector_to_colvec(const std::vector<double> &vec, arma::Col<T> &col)

Converts a std::vector to an Armadillo column vector.

Template Parameters:

T – Type of elements in the vector.

Parameters:
  • vec – Input vector.

  • col – Output Armadillo column vector.