Skip to content

Commit 4232c6e

Browse files
[ci skip] [copilot] fix comment, Eigen >=3.5.0
1 parent d03ec02 commit 4232c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TiledArray/tensor/tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Tensor {
186186
size_t size = range_.volume() * nbatch;
187187
allocator_type allocator;
188188
#if EIGEN_HAS_MAJOR_VERSION_5
189-
// Eigen 3.5.x returns nullptr if size=0
189+
// Eigen >=3.5.0 returns nullptr if size=0
190190
auto* ptr = (!size && range_.rank())
191191
? static_cast<pointer>(std::malloc(size))
192192
: allocator.allocate(size);

0 commit comments

Comments
 (0)