Skip to content

Commit

Permalink
[unit] enabled tot x t test, does not compile @bimalgaudel will fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Nov 8, 2023
1 parent 498561d commit 4ceb416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/TiledArray/einsum/tiledarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ auto einsum(expressions::TsrExpr<T> A, expressions::TsrExpr<U> B) {
template <typename T, typename U, typename... Indices>
auto einsum(expressions::TsrExpr<T> A, expressions::TsrExpr<U> B,
const std::string &cs, World &world = get_default_world()) {
static_assert(std::is_same<const T, const U>::value);
using E = expressions::TsrExpr<const T>;
return Einsum::einsum(E(A), E(B), Einsum::idx<T>(cs), world);
using ECT = expressions::TsrExpr<const T>;
using ECU = expressions::TsrExpr<const U>;
return Einsum::einsum(ECT(A), ECU(B), Einsum::idx<T>(cs), world);
}

template <typename T, typename U, typename V>
Expand Down
2 changes: 1 addition & 1 deletion tests/einsum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ BOOST_AUTO_TEST_CASE(ikj_mn_eq_ij_mn_times_jk) {
// BOOST_REQUIRE_NO_THROW(result("i,k,j;m,n") = lhs("i,j;m,n") * rhs("j,k"));

// will try to make this work
// tot_type out = einsum(lhs("i,j;m,n"), rhs("j,k"), "i,j,k;m,n");
tot_type out = einsum(lhs("i,j;m,n"), rhs("j,k"), "i,j,k;m,n");
}

BOOST_AUTO_TEST_SUITE_END() // einsum_tot_t
Expand Down

0 comments on commit 4ceb416

Please sign in to comment.