mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
minor compilation fixes for Sun CC and ICC
This commit is contained in:
parent
4c85fa8c73
commit
4375c043ac
2
Eigen/QR
2
Eigen/QR
@ -41,7 +41,7 @@ namespace Eigen {
|
|||||||
|
|
||||||
// declare all classes for a given matrix type
|
// declare all classes for a given matrix type
|
||||||
#define EIGEN_QR_MODULE_INSTANTIATE_TYPE(MATRIXTYPE,PREFIX) \
|
#define EIGEN_QR_MODULE_INSTANTIATE_TYPE(MATRIXTYPE,PREFIX) \
|
||||||
PREFIX template class QR<MATRIXTYPE>; \
|
PREFIX template class HouseholderQR<MATRIXTYPE>; \
|
||||||
PREFIX template class Tridiagonalization<MATRIXTYPE>; \
|
PREFIX template class Tridiagonalization<MATRIXTYPE>; \
|
||||||
PREFIX template class HessenbergDecomposition<MATRIXTYPE>; \
|
PREFIX template class HessenbergDecomposition<MATRIXTYPE>; \
|
||||||
PREFIX template class SelfAdjointEigenSolver<MATRIXTYPE>
|
PREFIX template class SelfAdjointEigenSolver<MATRIXTYPE>
|
||||||
|
@ -178,7 +178,14 @@ template<typename Derived> class MapBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
using Base::operator*=;
|
using Base::operator*=;
|
||||||
using Base::operator+=;
|
|
||||||
|
template<typename Lhs,typename Rhs>
|
||||||
|
Derived& operator+=(const Flagged<Product<Lhs,Rhs,CacheFriendlyProduct>, 0, EvalBeforeNestingBit | EvalBeforeAssigningBit>& other)
|
||||||
|
{ return Base::operator+=(other); }
|
||||||
|
|
||||||
|
template<typename Lhs,typename Rhs>
|
||||||
|
Derived& operator-=(const Flagged<Product<Lhs,Rhs,CacheFriendlyProduct>, 0, EvalBeforeNestingBit | EvalBeforeAssigningBit>& other)
|
||||||
|
{ return Base::operator-=(other); }
|
||||||
|
|
||||||
template<typename OtherDerived>
|
template<typename OtherDerived>
|
||||||
Derived& operator+=(const MatrixBase<OtherDerived>& other)
|
Derived& operator+=(const MatrixBase<OtherDerived>& other)
|
||||||
|
@ -82,7 +82,7 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
|
|||||||
void test_mixingtypes()
|
void test_mixingtypes()
|
||||||
{
|
{
|
||||||
// check that our operator new is indeed called:
|
// check that our operator new is indeed called:
|
||||||
CALL_SUBTEST(mixingtypes<3>());
|
CALL_SUBTEST(mixingtypes<3>(3));
|
||||||
CALL_SUBTEST(mixingtypes<4>());
|
CALL_SUBTEST(mixingtypes<4>(4));
|
||||||
CALL_SUBTEST(mixingtypes<Dynamic>(20));
|
CALL_SUBTEST(mixingtypes<Dynamic>(20));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user