GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: include/pinocchio/utils/cast.hpp Lines: 2 2 100.0 %
Date: 2024-04-26 13:14:21 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
174
  NewScalar cast(const Scalar & value)
14
  {
15
174
    return Eigen::internal::cast_impl<Scalar,NewScalar>::run(value);
16
  }
17
} // namespace pinocchio
18
19
#endif // ifndef __pinocchio_utils_cast_hpp__