From 92da574ec291b32b6f0b645a1d82045eb280437a Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 21 Mar 2010 11:28:03 -0400 Subject: * allow matrix dimensions to be 0 (also at compile time) and provide a specialization of ei_matrix_array for size 0 * adapt many xprs to have the right storage order, now that it matters * add static assert on expressions to check that vector xprs have the righ storage order * adapt ei_plain_matrix_type_(column|row)_major * implement assignment of selfadjointview to matrix (was before failing to compile) and add nestedExpression() methods * expand product_symm test * in ei_gemv_selector, use the PlainObject type instead of a custom Matrix<...> type * fix VectorBlock and Block mistakes --- test/product_trsolve.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/product_trsolve.cpp') diff --git a/test/product_trsolve.cpp b/test/product_trsolve.cpp index 7a8068c35..5bdcb5623 100644 --- a/test/product_trsolve.cpp +++ b/test/product_trsolve.cpp @@ -43,8 +43,9 @@ template void trsolve(int size=Size,int cols Matrix cmLhs(size,size); Matrix rmLhs(size,size); - Matrix cmRhs(size,cols), ref(size,cols); - Matrix rmRhs(size,cols); + enum { order = Size==1 ? RowMajor : ColMajor }; + Matrix cmRhs(size,cols), ref(size,cols); + Matrix rmRhs(size,cols); cmLhs.setRandom(); cmLhs *= static_cast(0.1); cmLhs.diagonal().array() += static_cast(1); rmLhs.setRandom(); rmLhs *= static_cast(0.1); rmLhs.diagonal().array() += static_cast(1); -- cgit v1.2.3