mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use the proper accessor to refer to the value of a scalar tensor
This commit is contained in:
@@ -18,7 +18,7 @@ static void test_comparison_sugar() {
|
||||
|
||||
#define TEST_TENSOR_EQUAL(e1, e2) \
|
||||
b = ((e1) == (e2)).all(); \
|
||||
VERIFY(b(0))
|
||||
VERIFY(b())
|
||||
|
||||
#define TEST_OP(op) TEST_TENSOR_EQUAL(t op 0, t op t.constant(0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user