Template Function navtk::to_matrix
Defined in File factory.hpp
Function Documentation
-
template<class T, IfTensorOfDim<T, 0>* = nullptr>
Matrix navtk::to_matrix(const T &m, std::size_t = 1) Converts an xtensor container object of 0 dimensions to a 2-D matrix.
- Template Parameters
T – An xtensor container object.
IfTensorOfDim<> – Invalidates the template for non-matching types. (Has no effect on the function).
- Parameters
m – Input object containing coefficients.
- Returns
2-D matrix of the container object.