mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Updated internal::is_arithmetic::value to be true for complex numbers
This commit is contained in:
parent
6e55284e51
commit
7b7df7b6b8
@ -67,6 +67,7 @@ template<> struct is_arithmetic<signed int> { enum { value = true }; };
|
||||
template<> struct is_arithmetic<unsigned int> { enum { value = true }; };
|
||||
template<> struct is_arithmetic<signed long> { enum { value = true }; };
|
||||
template<> struct is_arithmetic<unsigned long> { enum { value = true }; };
|
||||
template<typename T> struct is_arithmetic<std::complex<T> > { enum { value = true }; };
|
||||
|
||||
template <typename T> struct add_const { typedef const T type; };
|
||||
template <typename T> struct add_const<T&> { typedef T& type; };
|
||||
|
Loading…
Reference in New Issue
Block a user