Template Function navtk::to_vec

Function Documentation

template<class T, IfTensorOfDim<T, 0>* = nullptr>
Vector navtk::to_vec(const T &m)

Converts an xtensor container object of 0 dimensions to a 1-D vector.

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

1-D vector of the container object.