Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
1e5ba118
Commit
1e5ba118
authored
May 12, 2011
by
Sebastian Eichelbaum
Browse files
[FIX] - whoops. Forgot to make one of the constructors non-explicit.
parent
4c7c4c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
src/common/math/linearAlgebra/WMatrixFixed.h
src/common/math/linearAlgebra/WMatrixFixed.h
+1
-1
src/common/math/linearAlgebra/test/WMatrixFixed_test.h
src/common/math/linearAlgebra/test/WMatrixFixed_test.h
+15
-0
No files found.
src/common/math/linearAlgebra/WMatrixFixed.h
View file @
1e5ba118
...
...
@@ -252,7 +252,7 @@ public:
* \param m the matrix to copy
*/
template
<
typename
RHSValueT
,
ValueStoreTemplate
RHSValueStoreT
>
explicit
WMatrixFixed
(
const
WMatrixFixed
<
RHSValueT
,
Rows
,
Cols
,
RHSValueStoreT
>&
m
)
// NOLINT - we do not want it explicit
WMatrixFixed
(
const
WMatrixFixed
<
RHSValueT
,
Rows
,
Cols
,
RHSValueStoreT
>&
m
)
// NOLINT - we do not want it explicit
{
setValues
(
m
.
m_values
);
}
...
...
src/common/math/linearAlgebra/test/WMatrixFixed_test.h
View file @
1e5ba118
...
...
@@ -392,6 +392,21 @@ public:
}
}
void
testCoversion
()
{
WMatrixFixed
<
double
,
2
,
2
>
md
;
md
(
0
,
0
)
=
0.0
;
md
(
1
,
0
)
=
1.0
;
md
(
0
,
1
)
=
2.0
;
md
(
1
,
1
)
=
3.0
;
WMatrixFixed
<
int
,
2
,
2
>
mi
(
md
);
TS_ASSERT
(
mi
(
0
,
0
)
==
0
);
TS_ASSERT
(
mi
(
1
,
0
)
==
1
);
TS_ASSERT
(
mi
(
0
,
1
)
==
2
);
TS_ASSERT
(
mi
(
1
,
1
)
==
3
);
}
/**
* Test matrix multiplication.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment