cast.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 INRIA
3 //
4 
5 #ifndef __pinocchio_utils_cast_hpp__
6 #define __pinocchio_utils_cast_hpp__
7 
8 #include <Eigen/Core>
9 
10 namespace pinocchio
11 {
12  template<typename NewScalar, typename Scalar>
13  NewScalar cast(const Scalar & value)
14  {
15  return Eigen::internal::cast_impl<Scalar,NewScalar>::run(value);
16  }
17 } // namespace pinocchio
18 
19 #endif // ifndef __pinocchio_utils_cast_hpp__
NewScalar cast(const Scalar &value)
Definition: cast.hpp:13
SE3::Scalar Scalar
Definition: conversions.cpp:13
Main pinocchio namespace.
Definition: timings.cpp:30


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:02