Template Function navtk::to_vec

Function Documentation

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

Converts an object of 1 dimension to a 1-D vector.

Template Parameters
  • T – An 1 dimensional 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.