aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lscg.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-06-08 15:06:27 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-06-08 15:06:27 +0200
commit682b2ef17ee360ac11cebbe7286dc4edd9accfa3 (patch)
tree32711f0ce5bf53ecb87d0578fcd3ea61fa4b6c36 /test/lscg.cpp
parent4bbc32046810f65bb0f77f6dbe538abad51de281 (diff)
bug #1423: fix LSCG\'s Jacobi preconditioner for row-major matrices.
Diffstat (limited to 'test/lscg.cpp')
-rw-r--r--test/lscg.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lscg.cpp b/test/lscg.cpp
index daa62a954..d49ee00c3 100644
--- a/test/lscg.cpp
+++ b/test/lscg.cpp
@@ -14,12 +14,20 @@ template<typename T> void test_lscg_T()
{
LeastSquaresConjugateGradient<SparseMatrix<T> > lscg_colmajor_diag;
LeastSquaresConjugateGradient<SparseMatrix<T>, IdentityPreconditioner> lscg_colmajor_I;
+ LeastSquaresConjugateGradient<SparseMatrix<T,RowMajor> > lscg_rowmajor_diag;
+ LeastSquaresConjugateGradient<SparseMatrix<T,RowMajor>, IdentityPreconditioner> lscg_rowmajor_I;
CALL_SUBTEST( check_sparse_square_solving(lscg_colmajor_diag) );
CALL_SUBTEST( check_sparse_square_solving(lscg_colmajor_I) );
CALL_SUBTEST( check_sparse_leastsquare_solving(lscg_colmajor_diag) );
CALL_SUBTEST( check_sparse_leastsquare_solving(lscg_colmajor_I) );
+
+ CALL_SUBTEST( check_sparse_square_solving(lscg_rowmajor_diag) );
+ CALL_SUBTEST( check_sparse_square_solving(lscg_rowmajor_I) );
+
+ CALL_SUBTEST( check_sparse_leastsquare_solving(lscg_rowmajor_diag) );
+ CALL_SUBTEST( check_sparse_leastsquare_solving(lscg_rowmajor_I) );
}
void test_lscg()