mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Allow Tensor trace to be passed to a TensorRef.
This commit is contained in:
@@ -41,6 +41,9 @@ static void test_simple_lvalue_ref() {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
VERIFY_IS_EQUAL(input(i), -i * 2);
|
||||
}
|
||||
|
||||
TensorRef<const Tensor<int, 1>> ref5(input.trace());
|
||||
VERIFY_IS_EQUAL(ref5[0], input[0]);
|
||||
}
|
||||
|
||||
static void test_simple_rvalue_ref() {
|
||||
|
||||
Reference in New Issue
Block a user