diff --git a/test/serial/MatrixTest/MatrixMultiplication.cc b/test/serial/MatrixTest/MatrixMultiplication.cc index de958ea..739ba10 100644 --- a/test/serial/MatrixTest/MatrixMultiplication.cc +++ b/test/serial/MatrixTest/MatrixMultiplication.cc @@ -20,7 +20,7 @@ TEST_CASE("Test scalar product between two vector matrices") { nnhep::Matrix product{m1 * m2}; - CHECK(product.get(0, 0) == 735); + CHECK(product(0, 0) == 735); } TEST_CASE("Test matrix product between two 2x2 matrices") { @@ -37,10 +37,10 @@ TEST_CASE("Test matrix product between two 2x2 matrices") { nnhep::Matrix product(2, 2); product = m1 * m2; - CHECK(product.get(0, 0) == 14); - CHECK(product.get(1, 0) == 30); - CHECK(product.get(0, 1) == 20); - CHECK(product.get(1, 1) == 44); + CHECK(product(0, 0) == 14); + CHECK(product(1, 0) == 30); + CHECK(product(0, 1) == 20); + CHECK(product(1, 1) == 44); CHECK(product[0] == 14); CHECK(product[1] == 20); CHECK(product[2] == 30); diff --git a/test/serial/MatrixTest/MatrixSum.cc b/test/serial/MatrixTest/MatrixSum.cc index 23f01dd..70e255d 100644 --- a/test/serial/MatrixTest/MatrixSum.cc +++ b/test/serial/MatrixTest/MatrixSum.cc @@ -39,10 +39,10 @@ TEST_CASE("Test matrix product between two 2x2 matrices") { nnhep::Matrix sum_matrix(2, 2); sum_matrix = m1 + m2; - CHECK(sum_matrix.get(0, 0) == 3); - CHECK(sum_matrix.get(1, 0) == 9); - CHECK(sum_matrix.get(0, 1) == 6); - CHECK(sum_matrix.get(1, 1) == 12); + CHECK(sum_matrix(0, 0) == 3); + CHECK(sum_matrix(1, 0) == 9); + CHECK(sum_matrix(0, 1) == 6); + CHECK(sum_matrix(1, 1) == 12); CHECK(sum_matrix[0] == 3); CHECK(sum_matrix[1] == 6); CHECK(sum_matrix[2] == 9); diff --git a/test/serial/MatrixTest/MatrixTransposition.cc b/test/serial/MatrixTest/MatrixTransposition.cc index 63be09d..263c3e1 100644 --- a/test/serial/MatrixTest/MatrixTransposition.cc +++ b/test/serial/MatrixTest/MatrixTransposition.cc @@ -42,7 +42,7 @@ TEST_CASE("Test the transposition of a square matrix") { CHECK(m2.ncols() == 4); for (int i{}; i < m2.nrows(); ++i) { for (int j{}; j < m2.ncols(); ++j) { - CHECK(m2.get(i, j) == m1.get(j, i)); + CHECK(m2(i, j) == m1(j, i)); } } } @@ -62,7 +62,7 @@ TEST_CASE("Test the transposition of a rectangular matrix") { CHECK(m2.ncols() == 2); for (int i{}; i < m2.nrows(); ++i) { for (int j{}; j < m2.ncols(); ++j) { - CHECK(m2.get(i, j) == m1.get(j, i)); + CHECK(m2(i, j) == m1(j, i)); } } }