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

math/tensor: add cmp operators

parent e4153348
......@@ -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;
......
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