Function convert_ivec_to_std

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.