mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +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:
|
||||
int scalarCount_;
|
||||
int packetCount_;
|
||||
DenseIndex scalarCount_;
|
||||
DenseIndex packetCount_;
|
||||
};
|
||||
|
||||
template <typename T> struct MaxReducer
|
||||
|
Loading…
Reference in New Issue
Block a user