Skip to content
Snippets Groups Projects
Commit 6e1113ae authored by Daniel Agar's avatar Daniel Agar
Browse files

clang-tidy mathlib remove redundant void

parent e112161a
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ public:
/**
* negation
*/
Matrix<M, N> operator -(void) const
Matrix<M, N> operator -() const
{
Matrix<M, N> res;
......@@ -351,7 +351,7 @@ public:
/**
* transpose the matrix
*/
Matrix<N, M> transposed(void) const
Matrix<N, M> transposed() const
{
matrix::Matrix<float, M, N> Me(this->arm_mat.pData);
Matrix<N, M> res(Me.transpose().data());
......@@ -361,7 +361,7 @@ public:
/**
* invert the matrix
*/
Matrix<M, N> inversed(void) const
Matrix<M, N> inversed() const
{
matrix::SquareMatrix<float, M> Me = matrix::Matrix<float, M, N>(this->arm_mat.pData);
Matrix<M, N> 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("[ ");
......
......@@ -175,7 +175,7 @@ public:
/**
* negation
*/
const Vector<N> operator -(void) const
const Vector<N> operator -() const
{
Vector<N> res;
......@@ -384,7 +384,7 @@ public:
memset(data, 0, sizeof(data));
}
void print(void)
void print()
{
printf("[ ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment