Directory: | ./ |
---|---|
File: | include/pinocchio/utils/cast.hpp |
Date: | 2024-08-27 18:20:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 2 | 2 | 100.0% |
Branches: | 0 | 0 | -% |
Line | Branch | Exec | Source |
---|---|---|---|
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 | 1146 | NewScalar cast(const Scalar & value) | |
14 | { | ||
15 | 1146 | return Eigen::internal::cast_impl<Scalar, NewScalar>::run(value); | |
16 | } | ||
17 | } // namespace pinocchio | ||
18 | |||
19 | #endif // ifndef __pinocchio_utils_cast_hpp__ | ||
20 |