mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Use the proper accessor to refer to the value of a scalar tensor
This commit is contained in:
parent
8e00ea9a92
commit
8d28a161b2
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user