diff --git a/src/lib/mathlib/math/Matrix.hpp b/src/lib/mathlib/math/Matrix.hpp index f9cb5f08a1b..5b2cee931ff 100644 --- a/src/lib/mathlib/math/Matrix.hpp +++ b/src/lib/mathlib/math/Matrix.hpp @@ -217,7 +217,7 @@ public: /** * negation */ - Matrix operator -(void) const + Matrix operator -() const { Matrix res; @@ -351,7 +351,7 @@ public: /** * transpose the matrix */ - Matrix transposed(void) const + Matrix transposed() const { matrix::Matrix Me(this->arm_mat.pData); Matrix res(Me.transpose().data()); @@ -361,7 +361,7 @@ public: /** * invert the matrix */ - Matrix inversed(void) const + Matrix inversed() const { matrix::SquareMatrix Me = matrix::Matrix(this->arm_mat.pData); Matrix res(Me.I().data()); @@ -371,7 +371,7 @@ public: /** * set zero matrix */ - void zero(void) + void zero() { memset(data, 0, sizeof(data)); } @@ -379,7 +379,7 @@ public: /** * set identity matrix */ - void identity(void) + void identity() { memset(data, 0, sizeof(data)); unsigned int n = (M < N) ? M : N; @@ -389,7 +389,7 @@ public: } } - void print(void) + void print() { for (unsigned int i = 0; i < M; i++) { printf("[ "); diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp index 80370acbf20..2143b0486d0 100644 --- a/src/lib/mathlib/math/Vector.hpp +++ b/src/lib/mathlib/math/Vector.hpp @@ -175,7 +175,7 @@ public: /** * negation */ - const Vector operator -(void) const + const Vector operator -() const { Vector res; @@ -384,7 +384,7 @@ public: memset(data, 0, sizeof(data)); } - void print(void) + void print() { printf("[ ");