Template Function otyca::mat_to_mat(const arma::Mat<T>&, arma::Row<T>&, arma::Col<T>&, arma::Mat<T>&)

Function Documentation

template<typename T>
void otyca::mat_to_mat(const arma::Mat<T> &input, arma::Row<T> &row, arma::Col<T> &col, arma::Mat<T> &output_data)

Converts a 3-column Armadillo matrix into row, column, and data matrices.

Template Parameters:

T – Type of elements in the matrix.

Parameters:
  • input – Input matrix.

  • row – Output row vector.

  • col – Output column vector.

  • output_data – Output reshaped matrix.