diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-05 12:43:14 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-05 12:43:14 +0100 |
commit | 0e6c1170abab3aac8eb79b5662fdb9edae77e3cf (patch) | |
tree | b396fd25eb27e55ca033e55a9d9ed6a42aeff05a /test | |
parent | fe1353080ea5760daea332a8904edd78c0a9fb36 (diff) |
trsv: add support for inner-stride!=1, reduce code instanciation, move implementation to a new products/XX.h file
Diffstat (limited to 'test')
-rw-r--r-- | test/product_trsolve.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/product_trsolve.cpp b/test/product_trsolve.cpp index e7ada23a5..50aa37d45 100644 --- a/test/product_trsolve.cpp +++ b/test/product_trsolve.cpp @@ -73,6 +73,10 @@ template<typename Scalar,int Size, int Cols> void trsolve(int size=Size,int cols VERIFY_TRSM_ONTHERIGHT(rmLhs .template triangularView<Lower>(), cmRhs); VERIFY_TRSM_ONTHERIGHT(rmLhs.conjugate().template triangularView<UnitUpper>(), rmRhs); + + int c = internal::random<int>(0,cols-1); + VERIFY_TRSM(rmLhs.template triangularView<Lower>(), rmRhs.col(c)); + VERIFY_TRSM(cmLhs.template triangularView<Lower>(), rmRhs.col(c)); } void test_product_trsolve() @@ -86,6 +90,7 @@ void test_product_trsolve() CALL_SUBTEST_4((trsolve<std::complex<double>,Dynamic,Dynamic>(internal::random<int>(1,200),internal::random<int>(1,200)))); // vectors + CALL_SUBTEST_1((trsolve<float,Dynamic,1>(internal::random<int>(1,320)))); CALL_SUBTEST_5((trsolve<std::complex<double>,Dynamic,1>(internal::random<int>(1,320)))); CALL_SUBTEST_6((trsolve<float,1,1>())); CALL_SUBTEST_7((trsolve<float,1,2>())); |