Mark simple min, max, abs methods as const

This commit is contained in:
Nate Weibley
2017-03-23 20:22:45 -07:00
committed by James Goppert
parent 66e1b406b8
commit 2ad3ec46b9
+3 -3
View File
@@ -413,7 +413,7 @@ public:
}
}
Matrix<Type, M, N> abs()
Matrix<Type, M, N> abs() const
{
Matrix<Type, M, N> r;
for (size_t i=0; i<M; i++) {
@@ -424,7 +424,7 @@ public:
return r;
}
Type max()
Type max() const
{
Type max_val = (*this)(0,0);
for (size_t i=0; i<M; i++) {
@@ -438,7 +438,7 @@ public:
return max_val;
}
Type min()
Type min() const
{
Type min_val = (*this)(0,0);
for (size_t i=0; i<M; i++) {