eigen.cpp
Go to the documentation of this file.
1 #include "eigen.h"
2 
3 #include <algorithm>
4 
6 {
7 
8  std::vector<Eigen::Vector3f> to3D(const std::vector<Eigen::Vector2f>& v)
9 
10  {
11  std::vector<Eigen::Vector3f> v3;
12  v3.reserve(v.size());
13 
15  v.begin(),
16  v.end(),
17  std::back_inserter(v3),
18  static_cast<Eigen::Vector3f (*)(const Eigen::Vector2f&)>(&to3D));
19 
20  return v3;
21  }
22 
23 } // namespace armarx::conversions
armarx::conversions::to3D
std::vector< Eigen::Vector3f > to3D(const std::vector< Eigen::Vector2f > &v)
Definition: eigen.cpp:8
eigen.h
armarx::conversions
Definition: eigen.cpp:5
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
armarx::transform
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT > >
Convenience function (with less typing) to transform a container of type InputT into the same contain...
Definition: algorithm.h:315