mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
apply Koldo's workaround for MSVC bug
This commit is contained in:
parent
1b257a7620
commit
13b191d94b
@ -130,7 +130,7 @@ class BandMatrix : public AnyMatrixBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs
|
|||||||
|
|
||||||
template<int Index> struct DiagonalIntReturnType {
|
template<int Index> struct DiagonalIntReturnType {
|
||||||
enum {
|
enum {
|
||||||
ReturnOpposite = (Options&SelfAdjoint) && ((Index>0 && Supers==0) || (Index<0 && Subs==0)),
|
ReturnOpposite = (Options&SelfAdjoint) && (((Index)>0 && Supers==0) || ((Index)<0 && Subs==0)),
|
||||||
Conjugate = ReturnOpposite && NumTraits<Scalar>::IsComplex,
|
Conjugate = ReturnOpposite && NumTraits<Scalar>::IsComplex,
|
||||||
ActualIndex = ReturnOpposite ? -Index : Index,
|
ActualIndex = ReturnOpposite ? -Index : Index,
|
||||||
DiagonalSize = (RowsAtCompileTime==Dynamic || ColsAtCompileTime==Dynamic)
|
DiagonalSize = (RowsAtCompileTime==Dynamic || ColsAtCompileTime==Dynamic)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user