mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Remove slow index check in Tensor::resize from release mode.
This commit is contained in:
@@ -55,12 +55,10 @@ template <>
|
||||
struct is_input_scalar<Sizes<>> {
|
||||
static const bool value = true;
|
||||
};
|
||||
#ifndef EIGEN_EMULATE_CXX11_META_H
|
||||
template <typename std::ptrdiff_t... Indices>
|
||||
struct is_input_scalar<Sizes<Indices...>> {
|
||||
static const bool value = (Sizes<Indices...>::total_size == 1);
|
||||
static constexpr bool value = (Sizes<Indices...>::total_size == 1);
|
||||
};
|
||||
#endif
|
||||
|
||||
} // end namespace internal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user