mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use DenseIndex in the MeanReducer to avoid overflows when processing very large tensors.
This commit is contained in:
@@ -158,8 +158,8 @@ template <typename T> struct MeanReducer
|
||||
}
|
||||
|
||||
protected:
|
||||
int scalarCount_;
|
||||
int packetCount_;
|
||||
DenseIndex scalarCount_;
|
||||
DenseIndex packetCount_;
|
||||
};
|
||||
|
||||
template <typename T> struct MaxReducer
|
||||
|
||||
Reference in New Issue
Block a user