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