Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
third-party
moab
Commits
f7e9c090
Commit
f7e9c090
authored
Oct 19, 2016
by
Iulian Grindeanu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add back a matrix3 constructor with 3 row vectors
this will be deprecated in future versions
parent
4b21dabb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/moab/Matrix3.hpp
src/moab/Matrix3.hpp
+10
-0
No files found.
src/moab/Matrix3.hpp
View file @
f7e9c090
...
...
@@ -346,6 +346,16 @@ public:
}
}
// will be deprecated in future versions
// assumes that the input vectors are rows
template
<
typename
Vector
>
inline
Matrix3
(
const
Vector
&
row0
,
const
Vector
&
row1
,
const
Vector
&
row2
)
{
_mat
<<
row0
[
0
],
row0
[
1
],
row0
[
2
],
row1
[
0
],
row1
[
1
],
row1
[
2
],
row2
[
0
],
row2
[
1
],
row2
[
2
];
}
inline
Matrix3
(
const
double
v
[
9
]
){
_mat
<<
v
[
0
],
v
[
1
],
v
[
2
],
v
[
3
],
v
[
4
],
v
[
5
],
...
...
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