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
add17ba7
Verified
Commit
add17ba7
authored
Dec 14, 2019
by
Justin Carpentier
Browse files
math/tensor: add cmp operators
parent
e4153348
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/math/tensor.hpp
View file @
add17ba7
...
...
@@ -253,6 +253,16 @@ namespace pinocchio
#endif
}
EIGEN_DEVICE_FUNC
bool
operator
==
(
const
Tensor
&
other
)
const
{
return
m_storage
==
other
.
m_storage
;
}
EIGEN_DEVICE_FUNC
bool
operator
!=
(
const
Tensor
&
other
)
const
{
return
m_storage
!=
other
.
m_storage
;
}
protected:
typedef
Eigen
::
Matrix
<
Scalar
,
Eigen
::
Dynamic
,
1
,
Options
>
StorageType
;
...
...
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