mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Pass div_ceil arguments by value.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
d9839718aa
commit
0c9526912c
@@ -1345,7 +1345,7 @@ double ceil(const double &x) { return ::ceil(x); }
|
||||
// T is assumed to be an integer type with a>=0, and b>0
|
||||
template<typename T>
|
||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE EIGEN_CONSTEXPR
|
||||
T div_ceil(const T &a, const T &b)
|
||||
T div_ceil(T a, T b)
|
||||
{
|
||||
EIGEN_STATIC_ASSERT((NumTraits<T>::IsInteger), THIS FUNCTION IS FOR INTEGER TYPES)
|
||||
eigen_assert(a >= 0);
|
||||
|
||||
Reference in New Issue
Block a user