mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-10 18:59:01 +08:00
for dynamic size matrix (Rows|Cols)AtCompileTime is always EiDynamic and not
"(Rows|Cols)AtCompileTime - 1" which would be EiDynamic - 1 == -2
This commit is contained in:
parent
4241dddee9
commit
1d3743d2c5
@ -36,8 +36,11 @@ template<typename MatrixType> class EiMinor
|
|||||||
typedef EiMinor Ref;
|
typedef EiMinor Ref;
|
||||||
typedef EiMinor ConstRef;
|
typedef EiMinor ConstRef;
|
||||||
|
|
||||||
static const int RowsAtCompileTime = MatrixType::RowsAtCompileTime - 1,
|
static const int
|
||||||
ColsAtCompileTime = MatrixType::ColsAtCompileTime - 1;
|
RowsAtCompileTime = (MatrixType::RowsAtCompileTime != EiDynamic) ?
|
||||||
|
MatrixType::RowsAtCompileTime - 1 : EiDynamic,
|
||||||
|
ColsAtCompileTime = (MatrixType::ColsAtCompileTime != EiDynamic) ?
|
||||||
|
MatrixType::ColsAtCompileTime - 1 : EiDynamic;
|
||||||
|
|
||||||
EiMinor(const MatRef& matrix,
|
EiMinor(const MatRef& matrix,
|
||||||
int row, int col = 0)
|
int row, int col = 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user