Verified Commit e4153348 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

math/tensor: add copy constructor

parent 9a84d5d4
...@@ -145,6 +145,13 @@ namespace pinocchio ...@@ -145,6 +145,13 @@ namespace pinocchio
: m_storage() : 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) EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE explicit Tensor(Index dim1)
: m_storage(dim1) : m_storage(dim1)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment