mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Silenced a compilation warning
This commit is contained in:
parent
f1f480b116
commit
6021b68d8b
@ -381,7 +381,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
|
|||||||
void resize(const Sizes<Indices...>& dimensions) {
|
void resize(const Sizes<Indices...>& dimensions) {
|
||||||
array<Index, NumIndices> dims;
|
array<Index, NumIndices> dims;
|
||||||
for (std::size_t i = 0; i < NumIndices; ++i) {
|
for (std::size_t i = 0; i < NumIndices; ++i) {
|
||||||
dims[i] = dimensions[i];
|
dims[i] = static_cast<Index>(dimensions[i]);
|
||||||
}
|
}
|
||||||
resize(dims);
|
resize(dims);
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
|
|||||||
void resize(const Sizes<V1, V2, V3, V4, V5>& dimensions) {
|
void resize(const Sizes<V1, V2, V3, V4, V5>& dimensions) {
|
||||||
array<Index, NumIndices> dims;
|
array<Index, NumIndices> dims;
|
||||||
for (std::size_t i = 0; i < NumIndices; ++i) {
|
for (std::size_t i = 0; i < NumIndices; ++i) {
|
||||||
dims[i] = dimensions[i];
|
dims[i] = static_cast<Index>(dimensions[i]);
|
||||||
}
|
}
|
||||||
resize(dims);
|
resize(dims);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user