Remove direct access to internal data

This commit is contained in:
Julian Kent
2019-09-16 10:29:48 +02:00
committed by Daniel Agar
parent 18218c8f9c
commit 51d2f9f0dc
5 changed files with 18 additions and 28 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ int main()
SquareMatrix<float, 3> A(data);
for(int i=0; i<6; i++) {
TEST(fabs(urt[i] - A.upper_right_triangle().data()[i]) < FLT_EPSILON);
for(size_t i=0; i<6; i++) {
TEST(fabs(urt[i] - A.upper_right_triangle()(i)) < FLT_EPSILON);
}
return 0;