Template Function navtk::utils::repr(const xt::xexpression<E>&)
Defined in File human_readable.hpp
Function Documentation
-
template<class E>
std::string navtk::utils::repr(const xt::xexpression<E> &expr) Returns a
std::stringrepresentation of the given xtensor expression.Unlike the overloads for concrete types, this version deliberately returns output that is not valid source code. This is to help us notice when values we expect to be concrete are actually lazy-eval.
- Parameters
expr – The xtensor expression to inspect.
- Returns
A string representation of the matrix, prefixed by “(expr)”.