mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-30 16:52:01 +08:00
Fix unamed type as template parametre issue.
This commit is contained in:
parent
25a1703579
commit
251ad3e04f
@ -94,10 +94,9 @@ template<typename MatrixType> void block(const MatrixType& m)
|
|||||||
m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1);
|
m1.block(r1,c1,r2-r1+1,c2-c1+1) = s1 * m2.block(0, 0, r2-r1+1,c2-c1+1);
|
||||||
m1.block(r1,c1,r2-r1+1,c2-c1+1)(r2-r1,c2-c1) = m2.block(0, 0, r2-r1+1,c2-c1+1)(0,0);
|
m1.block(r1,c1,r2-r1+1,c2-c1+1)(r2-r1,c2-c1) = m2.block(0, 0, r2-r1+1,c2-c1+1)(0,0);
|
||||||
|
|
||||||
enum {
|
const Index BlockRows = 2;
|
||||||
BlockRows = 2,
|
const Index BlockCols = 5;
|
||||||
BlockCols = 5
|
|
||||||
};
|
|
||||||
if (rows>=5 && cols>=8)
|
if (rows>=5 && cols>=8)
|
||||||
{
|
{
|
||||||
// test fixed block() as lvalue
|
// test fixed block() as lvalue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user