Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
6e1113ae
Commit
6e1113ae
authored
8 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
clang-tidy mathlib remove redundant void
parent
e112161a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/mathlib/math/Matrix.hpp
+6
-6
6 additions, 6 deletions
src/lib/mathlib/math/Matrix.hpp
src/lib/mathlib/math/Vector.hpp
+2
-2
2 additions, 2 deletions
src/lib/mathlib/math/Vector.hpp
with
8 additions
and
8 deletions
src/lib/mathlib/math/Matrix.hpp
+
6
−
6
View file @
6e1113ae
...
...
@@ -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
(
"[ "
);
...
...
This diff is collapsed.
Click to expand it.
src/lib/mathlib/math/Vector.hpp
+
2
−
2
View file @
6e1113ae
...
...
@@ -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
(
"[ "
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment