mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Avoid unecessary type conversions
This commit is contained in:
parent
d2cba52015
commit
4d4211c04e
@ -206,7 +206,7 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < m_fft.size(); ++i) {
|
||||
int dim = m_fft[i];
|
||||
Index dim = m_fft[i];
|
||||
eigen_assert(dim >= 0 && dim < NumDims);
|
||||
Index line_len = m_dimensions[dim];
|
||||
eigen_assert(line_len >= 1);
|
||||
|
@ -192,7 +192,7 @@ static void test_fft_real_input_energy() {
|
||||
input.resize(arr);
|
||||
input.setRandom();
|
||||
|
||||
array<int, TensorRank> fft;
|
||||
array<ptrdiff_t, TensorRank> fft;
|
||||
for (int i = 0; i < TensorRank; ++i) {
|
||||
fft[i] = i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user