Skip to content

Commit

Permalink
Avoid using deprecated TA::Array typedef.
Browse files Browse the repository at this point in the history
  • Loading branch information
bimalgaudel committed May 16, 2024
1 parent ec51ab0 commit 40705d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/einsum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ bool check_manual_eval(std::string const& annot, il_trange trangeA,
}

BOOST_AUTO_TEST_CASE(contract) {
using Array = TA::Array<int>;
using Array = TA::TArrayI;

BOOST_REQUIRE(check_manual_eval<Array>("ij,j->i",
{{0, 2, 4}, {0, 4, 8}}, // A's trange
Expand All @@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE(contract) {
}

BOOST_AUTO_TEST_CASE(hadamard) {
using Array = TA::Array<int>;
using Array = TA::TArrayI;
BOOST_REQUIRE(check_manual_eval<Array>("i,i->i", //
{{0, 1}}, //
{{0, 1}} //
Expand All @@ -153,13 +153,11 @@ BOOST_AUTO_TEST_CASE(hadamard) {
}

BOOST_AUTO_TEST_CASE(general) {
using Array = TA::Array<int>;
using Array = TA::TArrayI;
BOOST_REQUIRE(check_manual_eval<Array>("ijk,kil->ijl", //
{{0, 2}, {0, 3, 5}, {0, 2, 4}}, //
{{0, 2, 4}, {0, 2}, {0, 1}} //
));

using Array = TA::Array<int>;
using Tensor = typename Array::value_type;
using namespace std::string_literals;

Expand Down

0 comments on commit 40705d7

Please sign in to comment.