Function convert_std_to_imat
Defined in File arma_conversions.hpp
Function Documentation
-
arma::imat convert_std_to_imat(const std::vector<std::vector<int>> &vec)
Converts a standard C++ 2D vector to an Armadillo integers matrix (arma::imat).
This function creates an arma::imat by copying all elements from the std::vector<std::vector<int>>.
- Parameters:
vec – The input 2D std::vector to convert.
- Returns:
An Armadillo matrix containing the same integers values.