fix compile errors with gcc 4.3: unresolved func call to

ei_cache_friendly_product, and undeclared memcpy
This commit is contained in:
Benoit Jacob 2008-08-03 15:44:06 +00:00
parent 6d11a07e5e
commit 49ae3fca89
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#include "CoreDeclarations" #include "CoreDeclarations"
#include <iostream> #include <iostream>
#include <cstring>
#ifdef EIGEN_VECTORIZE #ifdef EIGEN_VECTORIZE
// it seems we cannot assume posix_memalign is defined in the stdlib header // it seems we cannot assume posix_memalign is defined in the stdlib header

View File

@ -750,9 +750,9 @@ inline void Product<Lhs,Rhs,ProductMode>::_cacheFriendlyEvalAndAdd(DestDerived&
RhsCopy rhs(m_rhs); RhsCopy rhs(m_rhs);
ei_cache_friendly_product<Scalar>( ei_cache_friendly_product<Scalar>(
rows(), cols(), lhs.cols(), rows(), cols(), lhs.cols(),
_LhsCopy::Flags&RowMajorBit, &(lhs.const_cast_derived().coeffRef(0,0)), lhs.stride(), _LhsCopy::Flags&RowMajorBit, (const Scalar*)&(lhs.const_cast_derived().coeffRef(0,0)), lhs.stride(),
_RhsCopy::Flags&RowMajorBit, &(rhs.const_cast_derived().coeffRef(0,0)), rhs.stride(), _RhsCopy::Flags&RowMajorBit, (const Scalar*)&(rhs.const_cast_derived().coeffRef(0,0)), rhs.stride(),
Flags&RowMajorBit, &(res.coeffRef(0,0)), res.stride() Flags&RowMajorBit, (Scalar*)&(res.coeffRef(0,0)), res.stride()
); );
} }