Function convert_fmat_to_std

Function Documentation

std::vector<std::vector<float>> convert_fmat_to_std(const arma::fmat &mat)

Converts an Armadillo floating-point matrix (arma::fmat) to a standard C++ 2D vector.

This function iterates over the elements of the arma::fmat and copies them into a std::vector<std::vector<float>> of the same dimensions.

Parameters:

mat – The input Armadillo matrix to convert.

Returns:

A 2D std::vector representing the same matrix data.