Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
e4153348
Verified
Commit
e4153348
authored
Dec 14, 2019
by
Justin Carpentier
Browse files
math/tensor: add copy constructor
parent
9a84d5d4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/math/tensor.hpp
View file @
e4153348
...
...
@@ -145,6 +145,13 @@ namespace pinocchio
:
m_storage
()
{
}
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
Tensor
(
const
Tensor
&
other
)
:
m_storage
(
other
.
m_storage
)
,
m_dimensions
(
other
.
m_dimensions
)
{
}
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
explicit
Tensor
(
Index
dim1
)
:
m_storage
(
dim1
)
{
...
...
Write
Preview
Supports
Markdown
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