Function convert_vector_to_arma_vector
Defined in File arma_conversions.hpp
Function Documentation
-
std::vector<arma::vec2> convert_vector_to_arma_vector(const std::vector<std::array<float, 2>> &array_vector)
Converts a std::vector of std::array<float, 2> to a std::vector of arma::vec2.
This function creates a std::vector of arma::vec2 by copying all elements from the input std::vector of std::array<float, 2>. Each std::array is converted into an arma::vec2, preserving the order of elements.
- Parameters:
array_vector – The input std::vector of std::array<float, 2> to convert.
- Returns:
A std::vector of arma::vec2 containing the converted elements.