Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coal
coal
Commits
e1958185
Commit
e1958185
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Avoid returning nest FclOp. Fix infinite loop in FcpOp::isZero
parent
d6864c7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/fcl/eigen/vec_3fx.h
+8
-8
8 additions, 8 deletions
include/hpp/fcl/eigen/vec_3fx.h
with
8 additions
and
8 deletions
include/hpp/fcl/eigen/vec_3fx.h
+
8
−
8
View file @
e1958185
...
@@ -55,17 +55,17 @@
...
@@ -55,17 +55,17 @@
#define FCL_EIGEN_MAKE_CWISE_BINARY_OP(METHOD,FUNCTOR) \
#define FCL_EIGEN_MAKE_CWISE_BINARY_OP(METHOD,FUNCTOR) \
template <typename OtherDerived> \
template <typename OtherDerived> \
EIGEN_STRONG_INLINE const FclOp<const CwiseBinaryOp<FUNCTOR<Scalar>, const FCL_EIGEN_CURRENT_CLASS, const OtherDerived> > \
EIGEN_STRONG_INLINE const FclOp<const CwiseBinaryOp<FUNCTOR<Scalar>, const
typename
FCL_EIGEN_CURRENT_CLASS
::Base
, const OtherDerived> > \
(METHOD) (const MatrixBase<OtherDerived>& other) const \
(METHOD) (const MatrixBase<OtherDerived>& other) const \
{ \
{ \
return FclOp <const CwiseBinaryOp<FUNCTOR<Scalar>, const FCL_EIGEN_CURRENT_CLASS, const OtherDerived> > (*this, other.derived()); \
return FclOp <const CwiseBinaryOp<FUNCTOR<Scalar>, const
typename
FCL_EIGEN_CURRENT_CLASS
::Base
, const OtherDerived> > (*this, other.derived()); \
}
}
#define FCL_EIGEN_MAKE_CWISE_UNARY_OP(METHOD,FUNCTOR) \
#define FCL_EIGEN_MAKE_CWISE_UNARY_OP(METHOD,FUNCTOR) \
EIGEN_STRONG_INLINE const FclOp<const CwiseUnaryOp<FUNCTOR<Scalar>, const FCL_EIGEN_CURRENT_CLASS> > \
EIGEN_STRONG_INLINE const FclOp<const CwiseUnaryOp<FUNCTOR<Scalar>, const
typename
FCL_EIGEN_CURRENT_CLASS
::Base
> > \
(METHOD) (const Scalar& scalar) const \
(METHOD) (const Scalar& scalar) const \
{ \
{ \
return FclOp <const CwiseUnaryOp<FUNCTOR<Scalar>, const FCL_EIGEN_CURRENT_CLASS> > (*this, FUNCTOR<Scalar>(scalar)); \
return FclOp <const CwiseUnaryOp<FUNCTOR<Scalar>, const
typename
FCL_EIGEN_CURRENT_CLASS
::Base
> > (*this, FUNCTOR<Scalar>(scalar)); \
}
}
#define FCL_EIGEN_RENAME_PARENT_METHOD(OLD,NEW,RETTYPE) \
#define FCL_EIGEN_RENAME_PARENT_METHOD(OLD,NEW,RETTYPE) \
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
#define FCL_EIGEN_MAKE_CROSS() \
#define FCL_EIGEN_MAKE_CROSS() \
template<typename OtherDerived> \
template<typename OtherDerived> \
EIGEN_STRONG_INLINE typename BinaryReturnType<FCL_EIGEN_CURRENT_CLASS,OtherDerived>::Cross \
EIGEN_STRONG_INLINE typename BinaryReturnType<FCL_EIGEN_CURRENT_CLASS
::Base
,OtherDerived>::Cross \
cross (const MatrixBase<OtherDerived>& other) const { return this->Base::cross (other); }
cross (const MatrixBase<OtherDerived>& other) const { return this->Base::cross (other); }
#define FCL_EIGEN_MAKE_DOT() \
#define FCL_EIGEN_MAKE_DOT() \
...
@@ -528,10 +528,10 @@ public:
...
@@ -528,10 +528,10 @@ public:
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
+
,
internal
::
scalar_add_op
)
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
+
,
internal
::
scalar_add_op
)
// This operator cannot be implement with the macro
// This operator cannot be implement with the macro
// FCL_EIGEN_MAKE_CWISE_UNARY_OP(operator-,internal::scalar_difference_op)
// FCL_EIGEN_MAKE_CWISE_UNARY_OP(operator-,internal::scalar_difference_op)
EIGEN_STRONG_INLINE
const
FclOp
<
const
CwiseUnaryOp
<
internal
::
scalar_add_op
<
Scalar
>
,
const
FclOp
>
>
EIGEN_STRONG_INLINE
const
FclOp
<
const
CwiseUnaryOp
<
internal
::
scalar_add_op
<
Scalar
>
,
const
Base
>
>
operator
-
(
const
Scalar
&
scalar
)
const
operator
-
(
const
Scalar
&
scalar
)
const
{
{
return
FclOp
<
const
CwiseUnaryOp
<
internal
::
scalar_add_op
<
Scalar
>
,
const
FclOp
>
>
(
*
this
,
internal
::
scalar_add_op
<
Scalar
>
(
-
scalar
));
return
FclOp
<
const
CwiseUnaryOp
<
internal
::
scalar_add_op
<
Scalar
>
,
const
Base
>
>
(
*
this
,
internal
::
scalar_add_op
<
Scalar
>
(
-
scalar
));
}
}
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
*
,
internal
::
scalar_multiple_op
)
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
*
,
internal
::
scalar_multiple_op
)
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
/
,
internal
::
scalar_quotient1_op
)
FCL_EIGEN_MAKE_CWISE_UNARY_OP
(
operator
/
,
internal
::
scalar_quotient1_op
)
...
@@ -601,7 +601,7 @@ public:
...
@@ -601,7 +601,7 @@ public:
bool
isZero
()
const
bool
isZero
()
const
{
{
return
this
->
isZero
();
return
this
->
Base
::
isZero
();
}
}
const
FclOp
<
Transpose
<
const
FclOp
>
>
transpose
()
const
{
const
FclOp
<
Transpose
<
const
FclOp
>
>
transpose
()
const
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment