diff --git a/math/matrix.h b/math/matrix.h index 0614b53b530..90a2abd972e 100644 --- a/math/matrix.h +++ b/math/matrix.h @@ -206,6 +206,9 @@ Matrix operator-(const Matrix &m); template bool operator==(const Matrix &m1, const Matrix &m2); +template +bool operator!=(const Matrix &m1, const Matrix &m2); + // Constructors template @@ -457,9 +460,13 @@ bool operator==(const Matrix &m1, const Matrix &m2) { } } } - return false; + return true; } +template +bool operator!=(const Matrix &m1, const Matrix &m2) { + return !(m1 == m2); +} template Common::Debug &operator<<(Common::Debug dbg, const Math::Matrix &m) {