Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::internal::round_impl< Scalar > Struct Template Reference

#include <src/eigen/Eigen/src/Core/MathFunctions.h>

Static Public Member Functions

static Scalar run (const Scalar &x)
 

Detailed Description

template<typename Scalar>
struct Eigen::internal::round_impl< Scalar >

Member Function Documentation

◆ run()

template<typename Scalar >
static Scalar Eigen::internal::round_impl< Scalar >::run ( const Scalar &  x)
inlinestatic
401 {
402 EIGEN_STATIC_ASSERT((!NumTraits<Scalar>::IsComplex), NUMERIC_TYPE_MUST_BE_REAL)
403 EIGEN_USING_STD_MATH(floor);
404 EIGEN_USING_STD_MATH(ceil);
405 return (x > Scalar(0)) ? floor(x + Scalar(0.5)) : ceil(x - Scalar(0.5));
406 }
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
Definition ArrayCwiseUnaryOps.h:388
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
Definition ArrayCwiseUnaryOps.h:402
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition StaticAssert.h:124
typename Traits< remove_cvref_t< L > >::Scalar Scalar
Definition Line.hpp:36
TCoord< P > x(const P &p)
Definition geometry_traits.hpp:297

References ceil(), EIGEN_STATIC_ASSERT, and floor().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: