use default constructors and skip unnecessary initialization

This commit is contained in:
Daniel Agar
2018-08-27 14:05:55 -04:00
committed by Beat Küng
parent 1bcf48bd82
commit f1bee775a0
11 changed files with 37 additions and 70 deletions
+1 -2
View File
@@ -97,8 +97,7 @@ int main()
TEST(fabs(m4.min() - 1) < 1e-5);
TEST(fabs((-m4).min() + 9) < 1e-5);
Scalar<float> s;
s = 1;
Scalar<float> s = 1;
const Vector<float, 1> & s_vect = s;
TEST(fabs(s - 1) < 1e-5);
TEST(fabs(s_vect(0) - 1.0f) < 1e-5);