mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Added sanity check
This commit is contained in:
parent
1e1755352d
commit
f1fbd74db9
@ -119,6 +119,9 @@ struct TensorEvaluator<const TensorReverseOp<ReverseDimensions, ArgType>, Device
|
||||
const Device& device)
|
||||
: m_impl(op.expression(), device), m_reverse(op.reverse())
|
||||
{
|
||||
// Reversing a scalar isn't supported yet. It would be a no-op anyway.
|
||||
EIGEN_STATIC_ASSERT(NumDims > 0, YOU_MADE_A_PROGRAMMING_MISTAKE);
|
||||
|
||||
// Compute strides
|
||||
m_dimensions = m_impl.dimensions();
|
||||
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user