Template Function lupnt::EigenToArray

Function Documentation

template<typename T, int N, typename Derived>
std::array<T, N> lupnt::EigenToArray(const Eigen::Matrix<T, N, 1> &x)

Copy the elements of a fixed-size Eigen column vector into a std::array<T, / N>, converting element type via static_cast.

  @param x  Input fixed-size Eigen column vector (size N)
  @return   `std::array<T, N>` with the same elements, cast to `T`