Template Function navtk::navutils::dcm_to_quat(const B&)

Function Documentation

template<typename B = Initializer<3, Scalar>, IfTensorOfDim<B, 3>* = nullptr>
Matrix navtk::navutils::dcm_to_quat(const B &dcm)

This is a batched version of dcm_to_quat.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

See also

dcm_to_quat

Template Parameters
  • B – Type of input, initializer list by default.

  • std::enable_if_t<> – Constrains B to be 3 dimensional.

Parameters

dcm – Direction cosine matrices, shape (N, 3, 3). Can accept initializer lists.

Returns

The equivalent quaternions, shape (N, 4).