Fix cwiseProduct compile error when building with Eigen

This commit is contained in:
rdb 2014-10-29 12:20:22 +00:00
parent 5d5150c5aa
commit 52a4278b80
2 changed files with 47 additions and 47 deletions

View File

@ -951,7 +951,7 @@ operator /= (FLOATTYPE scalar) {
INLINE_LINMATH void FLOATNAME(LMatrix3):: INLINE_LINMATH void FLOATNAME(LMatrix3)::
componentwise_mult(const FLOATNAME(LMatrix3) &other) { componentwise_mult(const FLOATNAME(LMatrix3) &other) {
#ifdef HAVE_EIGEN #ifdef HAVE_EIGEN
_v = _v.cwiseProduct(other._v); _m = _m.cwiseProduct(other._m);
#else #else
_m(0, 0) *= other._m(0, 0); _m(0, 0) *= other._m(0, 0);
_m(0, 1) *= other._m(0, 1); _m(0, 1) *= other._m(0, 1);

View File

@ -1253,7 +1253,7 @@ operator /= (FLOATTYPE scalar) {
INLINE_LINMATH void FLOATNAME(LMatrix4):: INLINE_LINMATH void FLOATNAME(LMatrix4)::
componentwise_mult(const FLOATNAME(LMatrix4) &other) { componentwise_mult(const FLOATNAME(LMatrix4) &other) {
#ifdef HAVE_EIGEN #ifdef HAVE_EIGEN
_v = _v.cwiseProduct(other._v); _m = _m.cwiseProduct(other._m);
#else #else
_m(0, 0) *= other._m(0, 0); _m(0, 0) *= other._m(0, 0);
_m(0, 1) *= other._m(0, 1); _m(0, 1) *= other._m(0, 1);