From d21ee08da09633b5d83d48c066bea3cfca9166d2 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Mon, 22 Jan 2024 15:37:56 -0500 Subject: [PATCH] Print the rank to see when `compute_error` finishes --- unittest/ztensor_cp_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittest/ztensor_cp_test.cc b/unittest/ztensor_cp_test.cc index e68368b0..f5760001 100644 --- a/unittest/ztensor_cp_test.cc +++ b/unittest/ztensor_cp_test.cc @@ -105,12 +105,13 @@ TEST_CASE("ZCP") { double diff = A1.compute_error(conv, 1e-5, 1, 100, true, 57); std::cout << diff << std::endl; std::cout << epsilon << std::endl; + std::cout << A1.get_factor_matrices()[1].extent(1) << std::endl; CHECK(std::abs(diff) <= epsilon); } SECTION("ALS MODE = 4, Finite rank") { CP_ALS A1(Z4); conv.set_norm(norm4.real()); - double diff = A1.compute_rank(70, conv, 1, true, 70); + double diff = A1.compute_rank(80, conv, 1, true, 80); CHECK(std::abs(diff) <= epsilon); } #if BTAS_ENABLE_TUCKER_CP_UT