We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03ec02 commit 4232c6eCopy full SHA for 4232c6e
src/TiledArray/tensor/tensor.h
@@ -186,7 +186,7 @@ class Tensor {
186
size_t size = range_.volume() * nbatch;
187
allocator_type allocator;
188
#if EIGEN_HAS_MAJOR_VERSION_5
189
- // Eigen 3.5.x returns nullptr if size=0
+ // Eigen >=3.5.0 returns nullptr if size=0
190
auto* ptr = (!size && range_.rank())
191
? static_cast<pointer>(std::malloc(size))
192
: allocator.allocate(size);
0 commit comments