From f350f34560d1cc67a8c220d973b003226ff58892 Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Wed, 20 Mar 2013 18:38:22 +0100 Subject: Add complex support to dgmres and the unit test --- unsupported/test/dgmres.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 unsupported/test/dgmres.cpp (limited to 'unsupported/test/dgmres.cpp') diff --git a/unsupported/test/dgmres.cpp b/unsupported/test/dgmres.cpp new file mode 100644 index 000000000..2b11807c8 --- /dev/null +++ b/unsupported/test/dgmres.cpp @@ -0,0 +1,31 @@ +// This file is part of Eigen, a lightweight C++ template library +// for linear algebra. +// +// Copyright (C) 2011 Gael Guennebaud +// Copyright (C) 2012 desire Nuentsa + +template void test_dgmres_T() +{ + DGMRES, DiagonalPreconditioner > dgmres_colmajor_diag; + DGMRES, IdentityPreconditioner > dgmres_colmajor_I; + DGMRES, IncompleteLUT > dgmres_colmajor_ilut; + //GMRES, SSORPreconditioner > dgmres_colmajor_ssor; + + CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_diag) ); +// CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_I) ); + CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_ilut) ); + //CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_ssor) ); +} + +void test_dgmres() +{ + CALL_SUBTEST_1(test_dgmres_T()); + CALL_SUBTEST_2(test_dgmres_T >()); +} -- cgit v1.2.3