Source: tests/dense/bounds_Matrix.cpp
15 #include <tests/myratest.h> 19 ADD_TEST(
"bounds_Matrix",
"[dense]")
24 REQUIRE_EXCEPTION(
auto a = A.at(3,0); );
25 REQUIRE_EXCEPTION(
auto a = A.at(0,3); );
26 REQUIRE_EXCEPTION(
auto a = A.at(-1,0); );
27 REQUIRE_EXCEPTION(
auto a = A.at(0,-1); );
29 REQUIRE_EXCEPTION(
auto a = A.rows(0,4); );
30 REQUIRE_EXCEPTION(
auto a = A.rows(4,7); );
31 REQUIRE_EXCEPTION(
auto a = A.rows(-1,1); );
32 REQUIRE_EXCEPTION(
auto a = A.rows(2,-1); );
33 REQUIRE_EXCEPTION(
auto a = A.rows(2,1); );
35 REQUIRE_EXCEPTION(
auto a = A.columns(0,4); );
36 REQUIRE_EXCEPTION(
auto a = A.columns(4,7); );
37 REQUIRE_EXCEPTION(
auto a = A.columns(-1,1); );
38 REQUIRE_EXCEPTION(
auto a = A.columns(2,-1); );
39 REQUIRE_EXCEPTION(
auto a = A.columns(2,1); );
41 REQUIRE_EXCEPTION(
auto a = A.vector(-1); );
42 REQUIRE_EXCEPTION(
auto a = A.vector(3); );
static Matrix< Number > random(int I, int J)
Generates a random Matrix of specified size.
Definition: Matrix.cpp:353
General purpose dense matrix container, O(i*j) storage.
Results: [PASS]
Go back to Summary of /test programs.