mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-05 04:35:46 +08:00
Use DenseIndex in the MeanReducer to avoid overflows when processing very large tensors.
This commit is contained in:
parent
84543c8be2
commit
50968a0a3e
@ -158,8 +158,8 @@ template <typename T> struct MeanReducer
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int scalarCount_;
|
DenseIndex scalarCount_;
|
||||||
int packetCount_;
|
DenseIndex packetCount_;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T> struct MaxReducer
|
template <typename T> struct MaxReducer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user