From 40705d7c26ce7a00cd620f0cceac25010aaccfc9 Mon Sep 17 00:00:00 2001 From: Bimal Gaudel Date: Thu, 16 May 2024 11:18:33 -0400 Subject: [PATCH] Avoid using deprecated `TA::Array` typedef. --- tests/einsum.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/einsum.cpp b/tests/einsum.cpp index 6ca0a611ff..d1afaf74e6 100644 --- a/tests/einsum.cpp +++ b/tests/einsum.cpp @@ -117,7 +117,7 @@ bool check_manual_eval(std::string const& annot, il_trange trangeA, } BOOST_AUTO_TEST_CASE(contract) { - using Array = TA::Array; + using Array = TA::TArrayI; BOOST_REQUIRE(check_manual_eval("ij,j->i", {{0, 2, 4}, {0, 4, 8}}, // A's trange @@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE(contract) { } BOOST_AUTO_TEST_CASE(hadamard) { - using Array = TA::Array; + using Array = TA::TArrayI; BOOST_REQUIRE(check_manual_eval("i,i->i", // {{0, 1}}, // {{0, 1}} // @@ -153,13 +153,11 @@ BOOST_AUTO_TEST_CASE(hadamard) { } BOOST_AUTO_TEST_CASE(general) { - using Array = TA::Array; + using Array = TA::TArrayI; BOOST_REQUIRE(check_manual_eval("ijk,kil->ijl", // {{0, 2}, {0, 3, 5}, {0, 2, 4}}, // {{0, 2, 4}, {0, 2}, {0, 1}} // )); - - using Array = TA::Array; using Tensor = typename Array::value_type; using namespace std::string_literals;