Function convert_std_to_ivec

Function Documentation

arma::ivec convert_std_to_ivec(const std::vector<int> &vec)

Converts a standard C++ vector of integers to an Armadillo integer vector (arma::ivec).

This function creates an arma::ivec by copying all elements from the std::vector<int>.

Parameters:

vec – The input std::vector to convert.

Returns:

An Armadillo integer vector containing the same integer values.