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