Template Function lupnt::EigenToVector(const Eigen::DenseBase<Derived>&)¶
Defined in File math_utils.h
Function Documentation¶
-
template<typename T, typename Derived>
std::vector<T> lupnt::EigenToVector(const Eigen::DenseBase<Derived> &x)¶ Copy the elements of an Eigen dense vector/array into a
std::vector<T>, converting element type viastatic_cast.- Parameters:
x – Input Eigen dense vector/array
- Returns:
std::vector<T>with the same elements, cast toT