Template Function navtk::utils::repr(const xt::xexpression<E>&)

Function Documentation

template<class E>
std::string navtk::utils::repr(const xt::xexpression<E> &expr)

Returns a std::string representation 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)”.