From 2a5105d5b89f83716e6baa2d210879286ab5cbd6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 18 Nov 2007 23:47:02 +0000 Subject: [PATCH] Add a set of tests where we store real values in complex storage. git-svn-id: https://svn.dealii.org/trunk@15519 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/Makefile | 1 + tests/bits/complex_real_full_matrix_01.cc | 35 ++ .../complex_real_full_matrix_01/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_02.cc | 40 +++ .../complex_real_full_matrix_02/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_03.cc | 41 +++ .../complex_real_full_matrix_03/cmp/generic | 11 + tests/bits/complex_real_full_matrix_04.cc | 41 +++ .../complex_real_full_matrix_04/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_05.cc | 34 ++ .../complex_real_full_matrix_05/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_06.cc | 39 +++ .../complex_real_full_matrix_06/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_07.cc | 36 +++ .../complex_real_full_matrix_07/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_08.cc | 39 +++ .../complex_real_full_matrix_08/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_09.cc | 35 ++ .../complex_real_full_matrix_09/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_10.cc | 38 +++ .../complex_real_full_matrix_10/cmp/generic | 201 ++++++++++++ tests/bits/complex_real_full_matrix_11.cc | 36 +++ .../complex_real_full_matrix_11/cmp/generic | 3 + tests/bits/complex_real_full_matrix_12.cc | 37 +++ .../complex_real_full_matrix_12/cmp/generic | 5 + tests/bits/complex_real_full_matrix_13.cc | 38 +++ .../complex_real_full_matrix_13/cmp/generic | 3 + tests/bits/complex_real_full_matrix_14.cc | 41 +++ .../complex_real_full_matrix_14/cmp/generic | 3 + tests/bits/complex_real_full_matrix_15.cc | 35 ++ .../complex_real_full_matrix_15/cmp/generic | 3 + tests/bits/complex_real_full_matrix_16.cc | 35 ++ .../complex_real_full_matrix_16/cmp/generic | 3 + tests/bits/complex_real_full_matrix_17.cc | 35 ++ .../complex_real_full_matrix_17/cmp/generic | 3 + tests/bits/complex_real_full_matrix_18.cc | 35 ++ .../complex_real_full_matrix_18/cmp/generic | 3 + tests/bits/complex_real_full_matrix_19.cc | 41 +++ .../complex_real_full_matrix_19/cmp/generic | 35 ++ tests/bits/complex_real_full_matrix_20.cc | 35 ++ .../complex_real_full_matrix_20/cmp/generic | 3 + tests/bits/complex_real_full_matrix_21.cc | 35 ++ .../complex_real_full_matrix_21/cmp/generic | 11 + tests/bits/complex_real_full_matrix_22.cc | 36 +++ .../complex_real_full_matrix_22/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_23.cc | 36 +++ .../complex_real_full_matrix_23/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_24.cc | 38 +++ .../complex_real_full_matrix_24/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_25.cc | 38 +++ .../complex_real_full_matrix_25/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_26.cc | 39 +++ .../complex_real_full_matrix_26/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_27.cc | 36 +++ .../complex_real_full_matrix_27/cmp/generic | 201 ++++++++++++ tests/bits/complex_real_full_matrix_28.cc | 36 +++ .../complex_real_full_matrix_28/cmp/generic | 201 ++++++++++++ tests/bits/complex_real_full_matrix_29.cc | 36 +++ .../complex_real_full_matrix_29/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_30.cc | 36 +++ .../complex_real_full_matrix_30/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_31.cc | 36 +++ .../complex_real_full_matrix_31/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_32.cc | 36 +++ .../complex_real_full_matrix_32/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_33.cc | 36 +++ .../complex_real_full_matrix_33/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_34.cc | 36 +++ .../complex_real_full_matrix_34/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_35.cc | 37 +++ .../complex_real_full_matrix_35/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_36.cc | 36 +++ .../complex_real_full_matrix_36/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_37.cc | 38 +++ .../complex_real_full_matrix_37/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_38.cc | 38 +++ .../complex_real_full_matrix_38/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_39.cc | 39 +++ .../complex_real_full_matrix_39/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_40.cc | 36 +++ .../complex_real_full_matrix_40/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_41.cc | 37 +++ .../complex_real_full_matrix_41/cmp/generic | 51 +++ tests/bits/complex_real_full_matrix_42.cc | 44 +++ .../complex_real_full_matrix_42/cmp/generic | 111 +++++++ tests/bits/complex_real_full_matrix_43.cc | 46 +++ .../complex_real_full_matrix_43/cmp/generic | 301 ++++++++++++++++++ tests/bits/complex_real_full_matrix_44.cc | 46 +++ .../complex_real_full_matrix_44/cmp/generic | 301 ++++++++++++++++++ tests/bits/complex_real_full_matrix_45.cc | 45 +++ .../complex_real_full_matrix_45/cmp/generic | 41 +++ tests/bits/complex_real_full_matrix_46.cc | 41 +++ .../complex_real_full_matrix_46/cmp/generic | 21 ++ tests/bits/complex_real_full_matrix_47.cc | 45 +++ .../complex_real_full_matrix_47/cmp/generic | 41 +++ tests/bits/complex_real_full_matrix_48.cc | 41 +++ .../complex_real_full_matrix_48/cmp/generic | 21 ++ tests/bits/complex_real_full_matrix_49.cc | 41 +++ .../complex_real_full_matrix_49/cmp/generic | 21 ++ tests/bits/complex_real_full_matrix_50.cc | 43 +++ .../complex_real_full_matrix_50/cmp/generic | 31 ++ tests/bits/complex_real_full_matrix_51.cc | 41 +++ .../complex_real_full_matrix_51/cmp/generic | 21 ++ tests/bits/complex_real_full_matrix_52.cc | 41 +++ .../complex_real_full_matrix_52/cmp/generic | 21 ++ tests/bits/full_matrix_13.cc | 2 +- tests/bits/full_matrix_14.cc | 2 +- tests/bits/full_matrix_45.cc | 2 +- tests/bits/full_matrix_46.cc | 2 +- tests/bits/full_matrix_47.cc | 2 +- tests/bits/full_matrix_48.cc | 2 +- tests/bits/full_matrix_49.cc | 2 +- tests/bits/full_matrix_50.cc | 2 +- tests/bits/full_matrix_51.cc | 2 +- tests/bits/full_matrix_52.cc | 2 +- tests/bits/full_matrix_vector_01.cc | 8 +- tests/bits/full_matrix_vector_02.cc | 8 +- tests/bits/full_matrix_vector_05.cc | 8 +- tests/bits/full_matrix_vector_06.cc | 4 +- tests/bits/full_matrix_vector_07.cc | 12 +- 120 files changed, 4968 insertions(+), 30 deletions(-) create mode 100644 tests/bits/complex_real_full_matrix_01.cc create mode 100644 tests/bits/complex_real_full_matrix_01/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_02.cc create mode 100644 tests/bits/complex_real_full_matrix_02/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_03.cc create mode 100644 tests/bits/complex_real_full_matrix_03/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_04.cc create mode 100644 tests/bits/complex_real_full_matrix_04/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_05.cc create mode 100644 tests/bits/complex_real_full_matrix_05/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_06.cc create mode 100644 tests/bits/complex_real_full_matrix_06/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_07.cc create mode 100644 tests/bits/complex_real_full_matrix_07/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_08.cc create mode 100644 tests/bits/complex_real_full_matrix_08/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_09.cc create mode 100644 tests/bits/complex_real_full_matrix_09/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_10.cc create mode 100644 tests/bits/complex_real_full_matrix_10/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_11.cc create mode 100644 tests/bits/complex_real_full_matrix_11/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_12.cc create mode 100644 tests/bits/complex_real_full_matrix_12/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_13.cc create mode 100644 tests/bits/complex_real_full_matrix_13/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_14.cc create mode 100644 tests/bits/complex_real_full_matrix_14/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_15.cc create mode 100644 tests/bits/complex_real_full_matrix_15/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_16.cc create mode 100644 tests/bits/complex_real_full_matrix_16/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_17.cc create mode 100644 tests/bits/complex_real_full_matrix_17/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_18.cc create mode 100644 tests/bits/complex_real_full_matrix_18/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_19.cc create mode 100644 tests/bits/complex_real_full_matrix_19/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_20.cc create mode 100644 tests/bits/complex_real_full_matrix_20/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_21.cc create mode 100644 tests/bits/complex_real_full_matrix_21/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_22.cc create mode 100644 tests/bits/complex_real_full_matrix_22/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_23.cc create mode 100644 tests/bits/complex_real_full_matrix_23/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_24.cc create mode 100644 tests/bits/complex_real_full_matrix_24/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_25.cc create mode 100644 tests/bits/complex_real_full_matrix_25/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_26.cc create mode 100644 tests/bits/complex_real_full_matrix_26/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_27.cc create mode 100644 tests/bits/complex_real_full_matrix_27/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_28.cc create mode 100644 tests/bits/complex_real_full_matrix_28/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_29.cc create mode 100644 tests/bits/complex_real_full_matrix_29/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_30.cc create mode 100644 tests/bits/complex_real_full_matrix_30/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_31.cc create mode 100644 tests/bits/complex_real_full_matrix_31/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_32.cc create mode 100644 tests/bits/complex_real_full_matrix_32/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_33.cc create mode 100644 tests/bits/complex_real_full_matrix_33/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_34.cc create mode 100644 tests/bits/complex_real_full_matrix_34/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_35.cc create mode 100644 tests/bits/complex_real_full_matrix_35/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_36.cc create mode 100644 tests/bits/complex_real_full_matrix_36/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_37.cc create mode 100644 tests/bits/complex_real_full_matrix_37/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_38.cc create mode 100644 tests/bits/complex_real_full_matrix_38/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_39.cc create mode 100644 tests/bits/complex_real_full_matrix_39/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_40.cc create mode 100644 tests/bits/complex_real_full_matrix_40/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_41.cc create mode 100644 tests/bits/complex_real_full_matrix_41/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_42.cc create mode 100644 tests/bits/complex_real_full_matrix_42/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_43.cc create mode 100644 tests/bits/complex_real_full_matrix_43/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_44.cc create mode 100644 tests/bits/complex_real_full_matrix_44/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_45.cc create mode 100644 tests/bits/complex_real_full_matrix_45/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_46.cc create mode 100644 tests/bits/complex_real_full_matrix_46/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_47.cc create mode 100644 tests/bits/complex_real_full_matrix_47/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_48.cc create mode 100644 tests/bits/complex_real_full_matrix_48/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_49.cc create mode 100644 tests/bits/complex_real_full_matrix_49/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_50.cc create mode 100644 tests/bits/complex_real_full_matrix_50/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_51.cc create mode 100644 tests/bits/complex_real_full_matrix_51/cmp/generic create mode 100644 tests/bits/complex_real_full_matrix_52.cc create mode 100644 tests/bits/complex_real_full_matrix_52/cmp/generic diff --git a/tests/bits/Makefile b/tests/bits/Makefile index 12eb6720e2..6e04691d35 100644 --- a/tests/bits/Makefile +++ b/tests/bits/Makefile @@ -25,6 +25,7 @@ tests_x = grid_generator_?? \ grid_in_* \ point_inside_? \ full_matrix_* \ + complex_real_full_matrix_* \ block_matrix_array_* \ data_out_0* \ data_out_faces_0* \ diff --git a/tests/bits/complex_real_full_matrix_01.cc b/tests/bits/complex_real_full_matrix_01.cc new file mode 100644 index 0000000000..e3bf176318 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_01.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check creation and output of a matrix. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_01/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_01/cmp/generic b/tests/bits/complex_real_full_matrix_01/cmp/generic new file mode 100644 index 0000000000..9decec3286 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_01/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_02.cc b/tests/bits/complex_real_full_matrix_02.cc new file mode 100644 index 0000000000..a93966cf51 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_02.cc @@ -0,0 +1,40 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check running over const iterators. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_02/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + + for (typename FullMatrix >::const_iterator + p = m.begin(); p!=m.end(); ++p) + deallog << p->row() << ' ' << p->column() << ' ' + << p->value() + << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_02/cmp/generic b/tests/bits/complex_real_full_matrix_02/cmp/generic new file mode 100644 index 0000000000..9decec3286 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_02/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_03.cc b/tests/bits/complex_real_full_matrix_03.cc new file mode 100644 index 0000000000..f0be1ffd85 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_03.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check running over const iterators starting at the second line. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_03/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + + + for (typename FullMatrix >::const_iterator + p = m.begin(1); p!=m.end(1); ++p) + deallog << p->row() << ' ' << p->column() << ' ' + << p->value() + << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_03/cmp/generic b/tests/bits/complex_real_full_matrix_03/cmp/generic new file mode 100644 index 0000000000..1234139f99 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_03/cmp/generic @@ -0,0 +1,11 @@ + +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) diff --git a/tests/bits/complex_real_full_matrix_04.cc b/tests/bits/complex_real_full_matrix_04.cc new file mode 100644 index 0000000000..230adb8752 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_04.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check creation and output of a matrix using an array. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_04/output"; + + +template +void +check () +{ + const std::complex array[] = { 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, + 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, + 1, 2, 3, 4, 5 }; + + FullMatrix > m (5,5,array); + + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_04/cmp/generic b/tests/bits/complex_real_full_matrix_04/cmp/generic new file mode 100644 index 0000000000..a0e80cc63f --- /dev/null +++ b/tests/bits/complex_real_full_matrix_04/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::0 2 (3.0,0.0) +DEAL::0 3 (4.0,0.0) +DEAL::0 4 (5.0,0.0) +DEAL::1 0 (6.0,0.0) +DEAL::1 1 (7.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (9.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (1.0,0.0) +DEAL::2 1 (2.0,0.0) +DEAL::2 2 (3.0,0.0) +DEAL::2 3 (4.0,0.0) +DEAL::2 4 (5.0,0.0) +DEAL::3 0 (6.0,0.0) +DEAL::3 1 (7.0,0.0) +DEAL::3 2 (8.0,0.0) +DEAL::3 3 (9.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (1.0,0.0) +DEAL::4 1 (2.0,0.0) +DEAL::4 2 (3.0,0.0) +DEAL::4 3 (4.0,0.0) +DEAL::4 4 (5.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::0 2 (3.0,0.0) +DEAL::0 3 (4.0,0.0) +DEAL::0 4 (5.0,0.0) +DEAL::1 0 (6.0,0.0) +DEAL::1 1 (7.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (9.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (1.0,0.0) +DEAL::2 1 (2.0,0.0) +DEAL::2 2 (3.0,0.0) +DEAL::2 3 (4.0,0.0) +DEAL::2 4 (5.0,0.0) +DEAL::3 0 (6.0,0.0) +DEAL::3 1 (7.0,0.0) +DEAL::3 2 (8.0,0.0) +DEAL::3 3 (9.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (1.0,0.0) +DEAL::4 1 (2.0,0.0) +DEAL::4 2 (3.0,0.0) +DEAL::4 3 (4.0,0.0) +DEAL::4 4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_05.cc b/tests/bits/complex_real_full_matrix_05.cc new file mode 100644 index 0000000000..2d19332cc3 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_05.cc @@ -0,0 +1,34 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check creation using IdentityMatrix. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_05/output"; + + +template +void +check () +{ + FullMatrix > m (IdentityMatrix(5)); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_05/cmp/generic b/tests/bits/complex_real_full_matrix_05/cmp/generic new file mode 100644 index 0000000000..e804e89061 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_05/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (1.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (1.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (1.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (1.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (1.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (1.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (1.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (1.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_06.cc b/tests/bits/complex_real_full_matrix_06.cc new file mode 100644 index 0000000000..d82a0e0671 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_06.cc @@ -0,0 +1,39 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check matrix assignment. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_06/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + + FullMatrix > n; + n = m; + + print_matrix (n); +} + diff --git a/tests/bits/complex_real_full_matrix_06/cmp/generic b/tests/bits/complex_real_full_matrix_06/cmp/generic new file mode 100644 index 0000000000..9decec3286 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_06/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_07.cc b/tests/bits/complex_real_full_matrix_07.cc new file mode 100644 index 0000000000..8db949aefc --- /dev/null +++ b/tests/bits/complex_real_full_matrix_07.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check matrix=0. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_07/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m = std::complex(0); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_07/cmp/generic b/tests/bits/complex_real_full_matrix_07/cmp/generic new file mode 100644 index 0000000000..5b6383b352 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_07/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (0.0,0.0) +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (0.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_08.cc b/tests/bits/complex_real_full_matrix_08.cc new file mode 100644 index 0000000000..3b5cd4c86e --- /dev/null +++ b/tests/bits/complex_real_full_matrix_08.cc @@ -0,0 +1,39 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::copy_from. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_08/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + + FullMatrix > n; + n.copy_from (m); + + print_matrix (n); +} + diff --git a/tests/bits/complex_real_full_matrix_08/cmp/generic b/tests/bits/complex_real_full_matrix_08/cmp/generic new file mode 100644 index 0000000000..9decec3286 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_08/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_09.cc b/tests/bits/complex_real_full_matrix_09.cc new file mode 100644 index 0000000000..fb1a7bb602 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_09.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check assignment from IdenityMatrix. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_09/output"; + + +template +void +check () +{ + FullMatrix > m; + m = IdentityMatrix(5); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_09/cmp/generic b/tests/bits/complex_real_full_matrix_09/cmp/generic new file mode 100644 index 0000000000..e804e89061 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_09/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (1.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (1.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (1.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (1.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (1.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (1.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (1.0,0.0) +DEAL::3 4 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (1.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_10.cc b/tests/bits/complex_real_full_matrix_10.cc new file mode 100644 index 0000000000..1e2df74720 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_10.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::fill. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_10/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + + FullMatrix > n (10, 10); + n.fill (m, 3, 4); + print_matrix (n); +} + diff --git a/tests/bits/complex_real_full_matrix_10/cmp/generic b/tests/bits/complex_real_full_matrix_10/cmp/generic new file mode 100644 index 0000000000..ec8fa95379 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_10/cmp/generic @@ -0,0 +1,201 @@ + +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (2.0,0.0) +DEAL::3 5 (3.0,0.0) +DEAL::3 6 (4.0,0.0) +DEAL::3 7 (5.0,0.0) +DEAL::3 8 (6.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (4.0,0.0) +DEAL::4 5 (6.0,0.0) +DEAL::4 6 (8.0,0.0) +DEAL::4 7 (10.,0.0) +DEAL::4 8 (12.,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (6.0,0.0) +DEAL::5 5 (9.0,0.0) +DEAL::5 6 (12.,0.0) +DEAL::5 7 (15.,0.0) +DEAL::5 8 (18.,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (8.0,0.0) +DEAL::6 5 (12.,0.0) +DEAL::6 6 (16.,0.0) +DEAL::6 7 (20.,0.0) +DEAL::6 8 (24.,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (10.,0.0) +DEAL::7 5 (15.,0.0) +DEAL::7 6 (20.,0.0) +DEAL::7 7 (25.,0.0) +DEAL::7 8 (30.,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (2.0,0.0) +DEAL::3 5 (3.0,0.0) +DEAL::3 6 (4.0,0.0) +DEAL::3 7 (5.0,0.0) +DEAL::3 8 (6.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (4.0,0.0) +DEAL::4 5 (6.0,0.0) +DEAL::4 6 (8.0,0.0) +DEAL::4 7 (10.,0.0) +DEAL::4 8 (12.,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (6.0,0.0) +DEAL::5 5 (9.0,0.0) +DEAL::5 6 (12.,0.0) +DEAL::5 7 (15.,0.0) +DEAL::5 8 (18.,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (8.0,0.0) +DEAL::6 5 (12.,0.0) +DEAL::6 6 (16.,0.0) +DEAL::6 7 (20.,0.0) +DEAL::6 8 (24.,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (10.,0.0) +DEAL::7 5 (15.,0.0) +DEAL::7 6 (20.,0.0) +DEAL::7 7 (25.,0.0) +DEAL::7 8 (30.,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_11.cc b/tests/bits/complex_real_full_matrix_11.cc new file mode 100644 index 0000000000..bff2bbc7c4 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_11.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check creation and output of a matrix. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_11/output"; + + +template +void +check () +{ + FullMatrix > m, n; + make_matrix (m); + make_matrix (n); + deallog << (m==n) << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_11/cmp/generic b/tests/bits/complex_real_full_matrix_11/cmp/generic new file mode 100644 index 0000000000..e46c0ac61e --- /dev/null +++ b/tests/bits/complex_real_full_matrix_11/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::1 +DEAL::1 diff --git a/tests/bits/complex_real_full_matrix_12.cc b/tests/bits/complex_real_full_matrix_12.cc new file mode 100644 index 0000000000..f2489e5680 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_12.cc @@ -0,0 +1,37 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::all_zero. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_12/output"; + + +template +void +check () +{ + FullMatrix > m(3,3); + deallog << m.all_zero() << std::endl; + + make_matrix (m); + deallog << m.all_zero() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_12/cmp/generic b/tests/bits/complex_real_full_matrix_12/cmp/generic new file mode 100644 index 0000000000..de01f2c730 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_12/cmp/generic @@ -0,0 +1,5 @@ + +DEAL::1 +DEAL::0 +DEAL::1 +DEAL::0 diff --git a/tests/bits/complex_real_full_matrix_13.cc b/tests/bits/complex_real_full_matrix_13.cc new file mode 100644 index 0000000000..186c792206 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_13.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::matrix_norm_square. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_13/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v; + make_vector (v); + + deallog << m.matrix_norm_square (v) << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_13/cmp/generic b/tests/bits/complex_real_full_matrix_13/cmp/generic new file mode 100644 index 0000000000..4a96c3359c --- /dev/null +++ b/tests/bits/complex_real_full_matrix_13/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::(3.8e+03,0.0) +DEAL::(3.8e+03,0.0) diff --git a/tests/bits/complex_real_full_matrix_14.cc b/tests/bits/complex_real_full_matrix_14.cc new file mode 100644 index 0000000000..3ba6af41be --- /dev/null +++ b/tests/bits/complex_real_full_matrix_14.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::matrix_scalar_product. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_14/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v,w; + make_vector (v); + make_vector (w); + for (unsigned int i=0; i(1.); + + deallog << m.matrix_scalar_product (v,w) << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_14/cmp/generic b/tests/bits/complex_real_full_matrix_14/cmp/generic new file mode 100644 index 0000000000..ba1c954bdb --- /dev/null +++ b/tests/bits/complex_real_full_matrix_14/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::(5.0e+03,0.0) +DEAL::(5.0e+03,0.0) diff --git a/tests/bits/complex_real_full_matrix_15.cc b/tests/bits/complex_real_full_matrix_15.cc new file mode 100644 index 0000000000..29311f8877 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_15.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::l1_norm. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_15/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + deallog << m.l1_norm() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_15/cmp/generic b/tests/bits/complex_real_full_matrix_15/cmp/generic new file mode 100644 index 0000000000..5219ffb481 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_15/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::90. +DEAL::90. diff --git a/tests/bits/complex_real_full_matrix_16.cc b/tests/bits/complex_real_full_matrix_16.cc new file mode 100644 index 0000000000..7f17d776aa --- /dev/null +++ b/tests/bits/complex_real_full_matrix_16.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::linfty_norm. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_16/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + deallog << m.linfty_norm() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_16/cmp/generic b/tests/bits/complex_real_full_matrix_16/cmp/generic new file mode 100644 index 0000000000..bf7e83ec97 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_16/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::1.0e+02 +DEAL::1.0e+02 diff --git a/tests/bits/complex_real_full_matrix_17.cc b/tests/bits/complex_real_full_matrix_17.cc new file mode 100644 index 0000000000..eea4fe07f3 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_17.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::frobenius_norm. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_17/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + deallog << m.frobenius_norm() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_17/cmp/generic b/tests/bits/complex_real_full_matrix_17/cmp/generic new file mode 100644 index 0000000000..d106e772eb --- /dev/null +++ b/tests/bits/complex_real_full_matrix_17/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::70. +DEAL::70. diff --git a/tests/bits/complex_real_full_matrix_18.cc b/tests/bits/complex_real_full_matrix_18.cc new file mode 100644 index 0000000000..d97b492064 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_18.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::relative_symmetry_norm2. like the full_matrix_* tests, +// but use complex-valued matrices and vectors, even though we only store real +// values in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_18/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + deallog << m.relative_symmetry_norm2() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_18/cmp/generic b/tests/bits/complex_real_full_matrix_18/cmp/generic new file mode 100644 index 0000000000..7a5d74ce5f --- /dev/null +++ b/tests/bits/complex_real_full_matrix_18/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::0.14 +DEAL::0.14 diff --git a/tests/bits/complex_real_full_matrix_19.cc b/tests/bits/complex_real_full_matrix_19.cc new file mode 100644 index 0000000000..7aa86a78f0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_19.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::determinant. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_19/output"; + + +template +void +check () +{ + for (unsigned int n=1; n<=3; ++n) + { + const std::complex array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; + + FullMatrix > m(n,n, array); + print_matrix (m); + deallog << m.determinant () << std::endl; + } +} + + diff --git a/tests/bits/complex_real_full_matrix_19/cmp/generic b/tests/bits/complex_real_full_matrix_19/cmp/generic new file mode 100644 index 0000000000..39f150c940 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_19/cmp/generic @@ -0,0 +1,35 @@ + +DEAL::0 0 (1.0,0.0) +DEAL::(1.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::1 0 (3.0,0.0) +DEAL::1 1 (4.0,0.0) +DEAL::(-2.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::0 2 (3.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (5.0,0.0) +DEAL::1 2 (6.0,0.0) +DEAL::2 0 (7.0,0.0) +DEAL::2 1 (8.0,0.0) +DEAL::2 2 (9.0,0.0) +DEAL::(0.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::(1.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::1 0 (3.0,0.0) +DEAL::1 1 (4.0,0.0) +DEAL::(-2.0,0.0) +DEAL::0 0 (1.0,0.0) +DEAL::0 1 (2.0,0.0) +DEAL::0 2 (3.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (5.0,0.0) +DEAL::1 2 (6.0,0.0) +DEAL::2 0 (7.0,0.0) +DEAL::2 1 (8.0,0.0) +DEAL::2 2 (9.0,0.0) +DEAL::(0.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_20.cc b/tests/bits/complex_real_full_matrix_20.cc new file mode 100644 index 0000000000..20c85cd10a --- /dev/null +++ b/tests/bits/complex_real_full_matrix_20.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::trace. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_20/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + deallog << m.trace() << std::endl; +} + diff --git a/tests/bits/complex_real_full_matrix_20/cmp/generic b/tests/bits/complex_real_full_matrix_20/cmp/generic new file mode 100644 index 0000000000..3ca88bcab9 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_20/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::(70.,0.0) +DEAL::(70.,0.0) diff --git a/tests/bits/complex_real_full_matrix_21.cc b/tests/bits/complex_real_full_matrix_21.cc new file mode 100644 index 0000000000..b175fb1bb2 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_21.cc @@ -0,0 +1,35 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::print. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_21/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.print (deallog.get_file_stream()); +} + diff --git a/tests/bits/complex_real_full_matrix_21/cmp/generic b/tests/bits/complex_real_full_matrix_21/cmp/generic new file mode 100644 index 0000000000..8c4940c9ea --- /dev/null +++ b/tests/bits/complex_real_full_matrix_21/cmp/generic @@ -0,0 +1,11 @@ + +(2.0,0.0)(3.0,0.0)(4.0,0.0)(5.0,0.0)(6.0,0.0) +(4.0,0.0)(6.0,0.0)(8.0,0.0)(10.,0.0)(12.,0.0) +(6.0,0.0)(9.0,0.0)(12.,0.0)(15.,0.0)(18.,0.0) +(8.0,0.0)(12.,0.0)(16.,0.0)(20.,0.0)(24.,0.0) +(10.,0.0)(15.,0.0)(20.,0.0)(25.,0.0)(30.,0.0) +(2.0,0.0)(3.0,0.0)(4.0,0.0)(5.0,0.0)(6.0,0.0) +(4.0,0.0)(6.0,0.0)(8.0,0.0)(10.,0.0)(12.,0.0) +(6.0,0.0)(9.0,0.0)(12.,0.0)(15.,0.0)(18.,0.0) +(8.0,0.0)(12.,0.0)(16.,0.0)(20.,0.0)(24.,0.0) +(10.,0.0)(15.,0.0)(20.,0.0)(25.,0.0)(30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_22.cc b/tests/bits/complex_real_full_matrix_22.cc new file mode 100644 index 0000000000..1c33d296af --- /dev/null +++ b/tests/bits/complex_real_full_matrix_22.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::operator*=. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_22/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m *= 3.1415; + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_22/cmp/generic b/tests/bits/complex_real_full_matrix_22/cmp/generic new file mode 100644 index 0000000000..570d6dd8c0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_22/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (6.3,0.0) +DEAL::0 1 (9.4,0.0) +DEAL::0 2 (13.,0.0) +DEAL::0 3 (16.,0.0) +DEAL::0 4 (19.,0.0) +DEAL::1 0 (13.,0.0) +DEAL::1 1 (19.,0.0) +DEAL::1 2 (25.,0.0) +DEAL::1 3 (31.,0.0) +DEAL::1 4 (38.,0.0) +DEAL::2 0 (19.,0.0) +DEAL::2 1 (28.,0.0) +DEAL::2 2 (38.,0.0) +DEAL::2 3 (47.,0.0) +DEAL::2 4 (57.,0.0) +DEAL::3 0 (25.,0.0) +DEAL::3 1 (38.,0.0) +DEAL::3 2 (50.,0.0) +DEAL::3 3 (63.,0.0) +DEAL::3 4 (75.,0.0) +DEAL::4 0 (31.,0.0) +DEAL::4 1 (47.,0.0) +DEAL::4 2 (63.,0.0) +DEAL::4 3 (79.,0.0) +DEAL::4 4 (94.,0.0) +DEAL::0 0 (6.3,0.0) +DEAL::0 1 (9.4,0.0) +DEAL::0 2 (13.,0.0) +DEAL::0 3 (16.,0.0) +DEAL::0 4 (19.,0.0) +DEAL::1 0 (13.,0.0) +DEAL::1 1 (19.,0.0) +DEAL::1 2 (25.,0.0) +DEAL::1 3 (31.,0.0) +DEAL::1 4 (38.,0.0) +DEAL::2 0 (19.,0.0) +DEAL::2 1 (28.,0.0) +DEAL::2 2 (38.,0.0) +DEAL::2 3 (47.,0.0) +DEAL::2 4 (57.,0.0) +DEAL::3 0 (25.,0.0) +DEAL::3 1 (38.,0.0) +DEAL::3 2 (50.,0.0) +DEAL::3 3 (63.,0.0) +DEAL::3 4 (75.,0.0) +DEAL::4 0 (31.,0.0) +DEAL::4 1 (47.,0.0) +DEAL::4 2 (63.,0.0) +DEAL::4 3 (79.,0.0) +DEAL::4 4 (94.,0.0) diff --git a/tests/bits/complex_real_full_matrix_23.cc b/tests/bits/complex_real_full_matrix_23.cc new file mode 100644 index 0000000000..1a1b26f485 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_23.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::operator/=. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_23/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m /= 3.1415926; + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_23/cmp/generic b/tests/bits/complex_real_full_matrix_23/cmp/generic new file mode 100644 index 0000000000..f5c61ce6bb --- /dev/null +++ b/tests/bits/complex_real_full_matrix_23/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (0.64,0.0) +DEAL::0 1 (0.95,0.0) +DEAL::0 2 (1.3,0.0) +DEAL::0 3 (1.6,0.0) +DEAL::0 4 (1.9,0.0) +DEAL::1 0 (1.3,0.0) +DEAL::1 1 (1.9,0.0) +DEAL::1 2 (2.5,0.0) +DEAL::1 3 (3.2,0.0) +DEAL::1 4 (3.8,0.0) +DEAL::2 0 (1.9,0.0) +DEAL::2 1 (2.9,0.0) +DEAL::2 2 (3.8,0.0) +DEAL::2 3 (4.8,0.0) +DEAL::2 4 (5.7,0.0) +DEAL::3 0 (2.5,0.0) +DEAL::3 1 (3.8,0.0) +DEAL::3 2 (5.1,0.0) +DEAL::3 3 (6.4,0.0) +DEAL::3 4 (7.6,0.0) +DEAL::4 0 (3.2,0.0) +DEAL::4 1 (4.8,0.0) +DEAL::4 2 (6.4,0.0) +DEAL::4 3 (8.0,0.0) +DEAL::4 4 (9.5,0.0) +DEAL::0 0 (0.64,0.0) +DEAL::0 1 (0.95,0.0) +DEAL::0 2 (1.3,0.0) +DEAL::0 3 (1.6,0.0) +DEAL::0 4 (1.9,0.0) +DEAL::1 0 (1.3,0.0) +DEAL::1 1 (1.9,0.0) +DEAL::1 2 (2.5,0.0) +DEAL::1 3 (3.2,0.0) +DEAL::1 4 (3.8,0.0) +DEAL::2 0 (1.9,0.0) +DEAL::2 1 (2.9,0.0) +DEAL::2 2 (3.8,0.0) +DEAL::2 3 (4.8,0.0) +DEAL::2 4 (5.7,0.0) +DEAL::3 0 (2.5,0.0) +DEAL::3 1 (3.8,0.0) +DEAL::3 2 (5.1,0.0) +DEAL::3 3 (6.4,0.0) +DEAL::3 4 (7.6,0.0) +DEAL::4 0 (3.2,0.0) +DEAL::4 1 (4.8,0.0) +DEAL::4 2 (6.4,0.0) +DEAL::4 3 (8.0,0.0) +DEAL::4 4 (9.5,0.0) diff --git a/tests/bits/complex_real_full_matrix_24.cc b/tests/bits/complex_real_full_matrix_24.cc new file mode 100644 index 0000000000..6e6b545781 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_24.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_24/output"; + + +template +void +check () +{ + FullMatrix > m,n; + make_matrix (m); + make_matrix (n); + m.add (3.14159, n); + + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_24/cmp/generic b/tests/bits/complex_real_full_matrix_24/cmp/generic new file mode 100644 index 0000000000..c538f0d30b --- /dev/null +++ b/tests/bits/complex_real_full_matrix_24/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (8.3,0.0) +DEAL::0 1 (12.,0.0) +DEAL::0 2 (17.,0.0) +DEAL::0 3 (21.,0.0) +DEAL::0 4 (25.,0.0) +DEAL::1 0 (17.,0.0) +DEAL::1 1 (25.,0.0) +DEAL::1 2 (33.,0.0) +DEAL::1 3 (41.,0.0) +DEAL::1 4 (50.,0.0) +DEAL::2 0 (25.,0.0) +DEAL::2 1 (37.,0.0) +DEAL::2 2 (50.,0.0) +DEAL::2 3 (62.,0.0) +DEAL::2 4 (75.,0.0) +DEAL::3 0 (33.,0.0) +DEAL::3 1 (50.,0.0) +DEAL::3 2 (66.,0.0) +DEAL::3 3 (83.,0.0) +DEAL::3 4 (99.,0.0) +DEAL::4 0 (41.,0.0) +DEAL::4 1 (62.,0.0) +DEAL::4 2 (83.,0.0) +DEAL::4 3 (1.0e+02,0.0) +DEAL::4 4 (1.2e+02,0.0) +DEAL::0 0 (8.3,0.0) +DEAL::0 1 (12.,0.0) +DEAL::0 2 (17.,0.0) +DEAL::0 3 (21.,0.0) +DEAL::0 4 (25.,0.0) +DEAL::1 0 (17.,0.0) +DEAL::1 1 (25.,0.0) +DEAL::1 2 (33.,0.0) +DEAL::1 3 (41.,0.0) +DEAL::1 4 (50.,0.0) +DEAL::2 0 (25.,0.0) +DEAL::2 1 (37.,0.0) +DEAL::2 2 (50.,0.0) +DEAL::2 3 (62.,0.0) +DEAL::2 4 (75.,0.0) +DEAL::3 0 (33.,0.0) +DEAL::3 1 (50.,0.0) +DEAL::3 2 (66.,0.0) +DEAL::3 3 (83.,0.0) +DEAL::3 4 (99.,0.0) +DEAL::4 0 (41.,0.0) +DEAL::4 1 (62.,0.0) +DEAL::4 2 (83.,0.0) +DEAL::4 3 (1.0e+02,0.0) +DEAL::4 4 (1.2e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_25.cc b/tests/bits/complex_real_full_matrix_25.cc new file mode 100644 index 0000000000..cf06c59d5a --- /dev/null +++ b/tests/bits/complex_real_full_matrix_25.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add(4). like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_25/output"; + + +template +void +check () +{ + FullMatrix > m,n,o; + make_matrix (m); + make_matrix (n); + make_matrix (o); + m.add (3.1415, n, 2.718, o); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_25/cmp/generic b/tests/bits/complex_real_full_matrix_25/cmp/generic new file mode 100644 index 0000000000..e14efd0faf --- /dev/null +++ b/tests/bits/complex_real_full_matrix_25/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (14.,0.0) +DEAL::0 1 (21.,0.0) +DEAL::0 2 (27.,0.0) +DEAL::0 3 (34.,0.0) +DEAL::0 4 (41.,0.0) +DEAL::1 0 (27.,0.0) +DEAL::1 1 (41.,0.0) +DEAL::1 2 (55.,0.0) +DEAL::1 3 (69.,0.0) +DEAL::1 4 (82.,0.0) +DEAL::2 0 (41.,0.0) +DEAL::2 1 (62.,0.0) +DEAL::2 2 (82.,0.0) +DEAL::2 3 (1.0e+02,0.0) +DEAL::2 4 (1.2e+02,0.0) +DEAL::3 0 (55.,0.0) +DEAL::3 1 (82.,0.0) +DEAL::3 2 (1.1e+02,0.0) +DEAL::3 3 (1.4e+02,0.0) +DEAL::3 4 (1.6e+02,0.0) +DEAL::4 0 (69.,0.0) +DEAL::4 1 (1.0e+02,0.0) +DEAL::4 2 (1.4e+02,0.0) +DEAL::4 3 (1.7e+02,0.0) +DEAL::4 4 (2.1e+02,0.0) +DEAL::0 0 (14.,0.0) +DEAL::0 1 (21.,0.0) +DEAL::0 2 (27.,0.0) +DEAL::0 3 (34.,0.0) +DEAL::0 4 (41.,0.0) +DEAL::1 0 (27.,0.0) +DEAL::1 1 (41.,0.0) +DEAL::1 2 (55.,0.0) +DEAL::1 3 (69.,0.0) +DEAL::1 4 (82.,0.0) +DEAL::2 0 (41.,0.0) +DEAL::2 1 (62.,0.0) +DEAL::2 2 (82.,0.0) +DEAL::2 3 (1.0e+02,0.0) +DEAL::2 4 (1.2e+02,0.0) +DEAL::3 0 (55.,0.0) +DEAL::3 1 (82.,0.0) +DEAL::3 2 (1.1e+02,0.0) +DEAL::3 3 (1.4e+02,0.0) +DEAL::3 4 (1.6e+02,0.0) +DEAL::4 0 (69.,0.0) +DEAL::4 1 (1.0e+02,0.0) +DEAL::4 2 (1.4e+02,0.0) +DEAL::4 3 (1.7e+02,0.0) +DEAL::4 4 (2.1e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_26.cc b/tests/bits/complex_real_full_matrix_26.cc new file mode 100644 index 0000000000..e5606373c0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_26.cc @@ -0,0 +1,39 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add (6). like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_26/output"; + + +template +void +check () +{ + FullMatrix > m,n,o,p; + make_matrix (m); + make_matrix (n); + make_matrix (o); + make_matrix (p); + m.add (3.1415, n, 2.718, o, 1.414, p); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_26/cmp/generic b/tests/bits/complex_real_full_matrix_26/cmp/generic new file mode 100644 index 0000000000..767c310dfa --- /dev/null +++ b/tests/bits/complex_real_full_matrix_26/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (17.,0.0) +DEAL::0 1 (25.,0.0) +DEAL::0 2 (33.,0.0) +DEAL::0 3 (41.,0.0) +DEAL::0 4 (50.,0.0) +DEAL::1 0 (33.,0.0) +DEAL::1 1 (50.,0.0) +DEAL::1 2 (66.,0.0) +DEAL::1 3 (83.,0.0) +DEAL::1 4 (99.,0.0) +DEAL::2 0 (50.,0.0) +DEAL::2 1 (74.,0.0) +DEAL::2 2 (99.,0.0) +DEAL::2 3 (1.2e+02,0.0) +DEAL::2 4 (1.5e+02,0.0) +DEAL::3 0 (66.,0.0) +DEAL::3 1 (99.,0.0) +DEAL::3 2 (1.3e+02,0.0) +DEAL::3 3 (1.7e+02,0.0) +DEAL::3 4 (2.0e+02,0.0) +DEAL::4 0 (83.,0.0) +DEAL::4 1 (1.2e+02,0.0) +DEAL::4 2 (1.7e+02,0.0) +DEAL::4 3 (2.1e+02,0.0) +DEAL::4 4 (2.5e+02,0.0) +DEAL::0 0 (17.,0.0) +DEAL::0 1 (25.,0.0) +DEAL::0 2 (33.,0.0) +DEAL::0 3 (41.,0.0) +DEAL::0 4 (50.,0.0) +DEAL::1 0 (33.,0.0) +DEAL::1 1 (50.,0.0) +DEAL::1 2 (66.,0.0) +DEAL::1 3 (83.,0.0) +DEAL::1 4 (99.,0.0) +DEAL::2 0 (50.,0.0) +DEAL::2 1 (74.,0.0) +DEAL::2 2 (99.,0.0) +DEAL::2 3 (1.2e+02,0.0) +DEAL::2 4 (1.5e+02,0.0) +DEAL::3 0 (66.,0.0) +DEAL::3 1 (99.,0.0) +DEAL::3 2 (1.3e+02,0.0) +DEAL::3 3 (1.7e+02,0.0) +DEAL::3 4 (2.0e+02,0.0) +DEAL::4 0 (83.,0.0) +DEAL::4 1 (1.2e+02,0.0) +DEAL::4 2 (1.7e+02,0.0) +DEAL::4 3 (2.1e+02,0.0) +DEAL::4 4 (2.5e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_27.cc b/tests/bits/complex_real_full_matrix_27.cc new file mode 100644 index 0000000000..3203b45d22 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_27.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_27/output"; + + +template +void +check () +{ + FullMatrix > m(10,10),n; + make_matrix (n); + m.add (n, 2., 3, 4, 2, 3); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_27/cmp/generic b/tests/bits/complex_real_full_matrix_27/cmp/generic new file mode 100644 index 0000000000..af1e79ecf0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_27/cmp/generic @@ -0,0 +1,201 @@ + +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (30.,0.0) +DEAL::3 5 (36.,0.0) +DEAL::3 6 (0.0,0.0) +DEAL::3 7 (0.0,0.0) +DEAL::3 8 (0.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (40.,0.0) +DEAL::4 5 (48.,0.0) +DEAL::4 6 (0.0,0.0) +DEAL::4 7 (0.0,0.0) +DEAL::4 8 (0.0,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (50.,0.0) +DEAL::5 5 (60.,0.0) +DEAL::5 6 (0.0,0.0) +DEAL::5 7 (0.0,0.0) +DEAL::5 8 (0.0,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (0.0,0.0) +DEAL::6 5 (0.0,0.0) +DEAL::6 6 (0.0,0.0) +DEAL::6 7 (0.0,0.0) +DEAL::6 8 (0.0,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (0.0,0.0) +DEAL::7 5 (0.0,0.0) +DEAL::7 6 (0.0,0.0) +DEAL::7 7 (0.0,0.0) +DEAL::7 8 (0.0,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (30.,0.0) +DEAL::3 5 (36.,0.0) +DEAL::3 6 (0.0,0.0) +DEAL::3 7 (0.0,0.0) +DEAL::3 8 (0.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (40.,0.0) +DEAL::4 5 (48.,0.0) +DEAL::4 6 (0.0,0.0) +DEAL::4 7 (0.0,0.0) +DEAL::4 8 (0.0,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (50.,0.0) +DEAL::5 5 (60.,0.0) +DEAL::5 6 (0.0,0.0) +DEAL::5 7 (0.0,0.0) +DEAL::5 8 (0.0,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (0.0,0.0) +DEAL::6 5 (0.0,0.0) +DEAL::6 6 (0.0,0.0) +DEAL::6 7 (0.0,0.0) +DEAL::6 8 (0.0,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (0.0,0.0) +DEAL::7 5 (0.0,0.0) +DEAL::7 6 (0.0,0.0) +DEAL::7 7 (0.0,0.0) +DEAL::7 8 (0.0,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_28.cc b/tests/bits/complex_real_full_matrix_28.cc new file mode 100644 index 0000000000..7be4a76640 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_28.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::Tadd. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_28/output"; + + +template +void +check () +{ + FullMatrix > m(10,10),n; + make_matrix (n); + m.Tadd (n, 2., 3, 4, 2, 3); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_28/cmp/generic b/tests/bits/complex_real_full_matrix_28/cmp/generic new file mode 100644 index 0000000000..c9644245ad --- /dev/null +++ b/tests/bits/complex_real_full_matrix_28/cmp/generic @@ -0,0 +1,201 @@ + +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (30.,0.0) +DEAL::3 5 (40.,0.0) +DEAL::3 6 (50.,0.0) +DEAL::3 7 (0.0,0.0) +DEAL::3 8 (0.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (36.,0.0) +DEAL::4 5 (48.,0.0) +DEAL::4 6 (60.,0.0) +DEAL::4 7 (0.0,0.0) +DEAL::4 8 (0.0,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (0.0,0.0) +DEAL::5 5 (0.0,0.0) +DEAL::5 6 (0.0,0.0) +DEAL::5 7 (0.0,0.0) +DEAL::5 8 (0.0,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (0.0,0.0) +DEAL::6 5 (0.0,0.0) +DEAL::6 6 (0.0,0.0) +DEAL::6 7 (0.0,0.0) +DEAL::6 8 (0.0,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (0.0,0.0) +DEAL::7 5 (0.0,0.0) +DEAL::7 6 (0.0,0.0) +DEAL::7 7 (0.0,0.0) +DEAL::7 8 (0.0,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) +DEAL::0 0 (0.0,0.0) +DEAL::0 1 (0.0,0.0) +DEAL::0 2 (0.0,0.0) +DEAL::0 3 (0.0,0.0) +DEAL::0 4 (0.0,0.0) +DEAL::0 5 (0.0,0.0) +DEAL::0 6 (0.0,0.0) +DEAL::0 7 (0.0,0.0) +DEAL::0 8 (0.0,0.0) +DEAL::0 9 (0.0,0.0) +DEAL::1 0 (0.0,0.0) +DEAL::1 1 (0.0,0.0) +DEAL::1 2 (0.0,0.0) +DEAL::1 3 (0.0,0.0) +DEAL::1 4 (0.0,0.0) +DEAL::1 5 (0.0,0.0) +DEAL::1 6 (0.0,0.0) +DEAL::1 7 (0.0,0.0) +DEAL::1 8 (0.0,0.0) +DEAL::1 9 (0.0,0.0) +DEAL::2 0 (0.0,0.0) +DEAL::2 1 (0.0,0.0) +DEAL::2 2 (0.0,0.0) +DEAL::2 3 (0.0,0.0) +DEAL::2 4 (0.0,0.0) +DEAL::2 5 (0.0,0.0) +DEAL::2 6 (0.0,0.0) +DEAL::2 7 (0.0,0.0) +DEAL::2 8 (0.0,0.0) +DEAL::2 9 (0.0,0.0) +DEAL::3 0 (0.0,0.0) +DEAL::3 1 (0.0,0.0) +DEAL::3 2 (0.0,0.0) +DEAL::3 3 (0.0,0.0) +DEAL::3 4 (30.,0.0) +DEAL::3 5 (40.,0.0) +DEAL::3 6 (50.,0.0) +DEAL::3 7 (0.0,0.0) +DEAL::3 8 (0.0,0.0) +DEAL::3 9 (0.0,0.0) +DEAL::4 0 (0.0,0.0) +DEAL::4 1 (0.0,0.0) +DEAL::4 2 (0.0,0.0) +DEAL::4 3 (0.0,0.0) +DEAL::4 4 (36.,0.0) +DEAL::4 5 (48.,0.0) +DEAL::4 6 (60.,0.0) +DEAL::4 7 (0.0,0.0) +DEAL::4 8 (0.0,0.0) +DEAL::4 9 (0.0,0.0) +DEAL::5 0 (0.0,0.0) +DEAL::5 1 (0.0,0.0) +DEAL::5 2 (0.0,0.0) +DEAL::5 3 (0.0,0.0) +DEAL::5 4 (0.0,0.0) +DEAL::5 5 (0.0,0.0) +DEAL::5 6 (0.0,0.0) +DEAL::5 7 (0.0,0.0) +DEAL::5 8 (0.0,0.0) +DEAL::5 9 (0.0,0.0) +DEAL::6 0 (0.0,0.0) +DEAL::6 1 (0.0,0.0) +DEAL::6 2 (0.0,0.0) +DEAL::6 3 (0.0,0.0) +DEAL::6 4 (0.0,0.0) +DEAL::6 5 (0.0,0.0) +DEAL::6 6 (0.0,0.0) +DEAL::6 7 (0.0,0.0) +DEAL::6 8 (0.0,0.0) +DEAL::6 9 (0.0,0.0) +DEAL::7 0 (0.0,0.0) +DEAL::7 1 (0.0,0.0) +DEAL::7 2 (0.0,0.0) +DEAL::7 3 (0.0,0.0) +DEAL::7 4 (0.0,0.0) +DEAL::7 5 (0.0,0.0) +DEAL::7 6 (0.0,0.0) +DEAL::7 7 (0.0,0.0) +DEAL::7 8 (0.0,0.0) +DEAL::7 9 (0.0,0.0) +DEAL::8 0 (0.0,0.0) +DEAL::8 1 (0.0,0.0) +DEAL::8 2 (0.0,0.0) +DEAL::8 3 (0.0,0.0) +DEAL::8 4 (0.0,0.0) +DEAL::8 5 (0.0,0.0) +DEAL::8 6 (0.0,0.0) +DEAL::8 7 (0.0,0.0) +DEAL::8 8 (0.0,0.0) +DEAL::8 9 (0.0,0.0) +DEAL::9 0 (0.0,0.0) +DEAL::9 1 (0.0,0.0) +DEAL::9 2 (0.0,0.0) +DEAL::9 3 (0.0,0.0) +DEAL::9 4 (0.0,0.0) +DEAL::9 5 (0.0,0.0) +DEAL::9 6 (0.0,0.0) +DEAL::9 7 (0.0,0.0) +DEAL::9 8 (0.0,0.0) +DEAL::9 9 (0.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_29.cc b/tests/bits/complex_real_full_matrix_29.cc new file mode 100644 index 0000000000..b6ebf2b4dc --- /dev/null +++ b/tests/bits/complex_real_full_matrix_29.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add_row. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_29/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.add_row (2, 3.141, 4); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_29/cmp/generic b/tests/bits/complex_real_full_matrix_29/cmp/generic new file mode 100644 index 0000000000..c1fb921742 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_29/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (37.,0.0) +DEAL::2 1 (56.,0.0) +DEAL::2 2 (75.,0.0) +DEAL::2 3 (94.,0.0) +DEAL::2 4 (1.1e+02,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (37.,0.0) +DEAL::2 1 (56.,0.0) +DEAL::2 2 (75.,0.0) +DEAL::2 3 (94.,0.0) +DEAL::2 4 (1.1e+02,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_30.cc b/tests/bits/complex_real_full_matrix_30.cc new file mode 100644 index 0000000000..67ae96ebe8 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_30.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add_row. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_30/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.add_row (2, 3.141, 4, 2.7182, 3); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_30/cmp/generic b/tests/bits/complex_real_full_matrix_30/cmp/generic new file mode 100644 index 0000000000..87889b0644 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_30/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (59.,0.0) +DEAL::2 1 (89.,0.0) +DEAL::2 2 (1.2e+02,0.0) +DEAL::2 3 (1.5e+02,0.0) +DEAL::2 4 (1.8e+02,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (59.,0.0) +DEAL::2 1 (89.,0.0) +DEAL::2 2 (1.2e+02,0.0) +DEAL::2 3 (1.5e+02,0.0) +DEAL::2 4 (1.8e+02,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_31.cc b/tests/bits/complex_real_full_matrix_31.cc new file mode 100644 index 0000000000..0b35d305cd --- /dev/null +++ b/tests/bits/complex_real_full_matrix_31.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add_col. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_31/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.add_col (2, 3.141, 4); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_31/cmp/generic b/tests/bits/complex_real_full_matrix_31/cmp/generic new file mode 100644 index 0000000000..cace4be3b9 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_31/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (23.,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (46.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (69.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (91.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (1.1e+02,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (23.,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (46.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (69.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (91.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (1.1e+02,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_32.cc b/tests/bits/complex_real_full_matrix_32.cc new file mode 100644 index 0000000000..ecbf69d9b0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_32.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add_col. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_32/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.add_col (2, 3.141, 4, 2.718, 3); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_32/cmp/generic b/tests/bits/complex_real_full_matrix_32/cmp/generic new file mode 100644 index 0000000000..4015cee3d5 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_32/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (36.,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (73.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (1.1e+02,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (1.5e+02,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (1.8e+02,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (36.,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (73.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (1.1e+02,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (1.5e+02,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (1.8e+02,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_33.cc b/tests/bits/complex_real_full_matrix_33.cc new file mode 100644 index 0000000000..e2cc745402 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_33.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::swap_row. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_33/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.swap_row (2, 4); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_33/cmp/generic b/tests/bits/complex_real_full_matrix_33/cmp/generic new file mode 100644 index 0000000000..feb3645f49 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_33/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (10.,0.0) +DEAL::2 1 (15.,0.0) +DEAL::2 2 (20.,0.0) +DEAL::2 3 (25.,0.0) +DEAL::2 4 (30.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (6.0,0.0) +DEAL::4 1 (9.0,0.0) +DEAL::4 2 (12.,0.0) +DEAL::4 3 (15.,0.0) +DEAL::4 4 (18.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (10.,0.0) +DEAL::2 1 (15.,0.0) +DEAL::2 2 (20.,0.0) +DEAL::2 3 (25.,0.0) +DEAL::2 4 (30.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (6.0,0.0) +DEAL::4 1 (9.0,0.0) +DEAL::4 2 (12.,0.0) +DEAL::4 3 (15.,0.0) +DEAL::4 4 (18.,0.0) diff --git a/tests/bits/complex_real_full_matrix_34.cc b/tests/bits/complex_real_full_matrix_34.cc new file mode 100644 index 0000000000..7f06486aad --- /dev/null +++ b/tests/bits/complex_real_full_matrix_34.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::swap_col. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_34/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.swap_col (2, 4); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_34/cmp/generic b/tests/bits/complex_real_full_matrix_34/cmp/generic new file mode 100644 index 0000000000..a60126c607 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_34/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (6.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (4.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (12.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (8.0,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (18.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (12.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (24.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (16.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (30.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (20.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (6.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (4.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (12.,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (8.0,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (18.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (12.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (24.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (16.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (30.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (20.,0.0) diff --git a/tests/bits/complex_real_full_matrix_35.cc b/tests/bits/complex_real_full_matrix_35.cc new file mode 100644 index 0000000000..357188993c --- /dev/null +++ b/tests/bits/complex_real_full_matrix_35.cc @@ -0,0 +1,37 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::add_diag. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_35/output"; + + +template +void +check () +{ + FullMatrix > m, n; + make_matrix (m); + make_matrix (n); + m.add_diag (3.141, m); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_35/cmp/generic b/tests/bits/complex_real_full_matrix_35/cmp/generic new file mode 100644 index 0000000000..c538f0d30b --- /dev/null +++ b/tests/bits/complex_real_full_matrix_35/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (8.3,0.0) +DEAL::0 1 (12.,0.0) +DEAL::0 2 (17.,0.0) +DEAL::0 3 (21.,0.0) +DEAL::0 4 (25.,0.0) +DEAL::1 0 (17.,0.0) +DEAL::1 1 (25.,0.0) +DEAL::1 2 (33.,0.0) +DEAL::1 3 (41.,0.0) +DEAL::1 4 (50.,0.0) +DEAL::2 0 (25.,0.0) +DEAL::2 1 (37.,0.0) +DEAL::2 2 (50.,0.0) +DEAL::2 3 (62.,0.0) +DEAL::2 4 (75.,0.0) +DEAL::3 0 (33.,0.0) +DEAL::3 1 (50.,0.0) +DEAL::3 2 (66.,0.0) +DEAL::3 3 (83.,0.0) +DEAL::3 4 (99.,0.0) +DEAL::4 0 (41.,0.0) +DEAL::4 1 (62.,0.0) +DEAL::4 2 (83.,0.0) +DEAL::4 3 (1.0e+02,0.0) +DEAL::4 4 (1.2e+02,0.0) +DEAL::0 0 (8.3,0.0) +DEAL::0 1 (12.,0.0) +DEAL::0 2 (17.,0.0) +DEAL::0 3 (21.,0.0) +DEAL::0 4 (25.,0.0) +DEAL::1 0 (17.,0.0) +DEAL::1 1 (25.,0.0) +DEAL::1 2 (33.,0.0) +DEAL::1 3 (41.,0.0) +DEAL::1 4 (50.,0.0) +DEAL::2 0 (25.,0.0) +DEAL::2 1 (37.,0.0) +DEAL::2 2 (50.,0.0) +DEAL::2 3 (62.,0.0) +DEAL::2 4 (75.,0.0) +DEAL::3 0 (33.,0.0) +DEAL::3 1 (50.,0.0) +DEAL::3 2 (66.,0.0) +DEAL::3 3 (83.,0.0) +DEAL::3 4 (99.,0.0) +DEAL::4 0 (41.,0.0) +DEAL::4 1 (62.,0.0) +DEAL::4 2 (83.,0.0) +DEAL::4 3 (1.0e+02,0.0) +DEAL::4 4 (1.2e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_36.cc b/tests/bits/complex_real_full_matrix_36.cc new file mode 100644 index 0000000000..58e071cd72 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_36.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::diag_add. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_36/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.diagadd (3.141); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_36/cmp/generic b/tests/bits/complex_real_full_matrix_36/cmp/generic new file mode 100644 index 0000000000..19f141dd65 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_36/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (5.1,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (9.1,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (15.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (23.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (33.,0.0) +DEAL::0 0 (5.1,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (9.1,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (15.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (23.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (33.,0.0) diff --git a/tests/bits/complex_real_full_matrix_37.cc b/tests/bits/complex_real_full_matrix_37.cc new file mode 100644 index 0000000000..3c7e3c76dc --- /dev/null +++ b/tests/bits/complex_real_full_matrix_37.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::equ. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_37/output"; + + +template +void +check () +{ + FullMatrix > m,n; + make_matrix (m); + make_matrix (n); + m.equ (3.14159, n); + + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_37/cmp/generic b/tests/bits/complex_real_full_matrix_37/cmp/generic new file mode 100644 index 0000000000..570d6dd8c0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_37/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (6.3,0.0) +DEAL::0 1 (9.4,0.0) +DEAL::0 2 (13.,0.0) +DEAL::0 3 (16.,0.0) +DEAL::0 4 (19.,0.0) +DEAL::1 0 (13.,0.0) +DEAL::1 1 (19.,0.0) +DEAL::1 2 (25.,0.0) +DEAL::1 3 (31.,0.0) +DEAL::1 4 (38.,0.0) +DEAL::2 0 (19.,0.0) +DEAL::2 1 (28.,0.0) +DEAL::2 2 (38.,0.0) +DEAL::2 3 (47.,0.0) +DEAL::2 4 (57.,0.0) +DEAL::3 0 (25.,0.0) +DEAL::3 1 (38.,0.0) +DEAL::3 2 (50.,0.0) +DEAL::3 3 (63.,0.0) +DEAL::3 4 (75.,0.0) +DEAL::4 0 (31.,0.0) +DEAL::4 1 (47.,0.0) +DEAL::4 2 (63.,0.0) +DEAL::4 3 (79.,0.0) +DEAL::4 4 (94.,0.0) +DEAL::0 0 (6.3,0.0) +DEAL::0 1 (9.4,0.0) +DEAL::0 2 (13.,0.0) +DEAL::0 3 (16.,0.0) +DEAL::0 4 (19.,0.0) +DEAL::1 0 (13.,0.0) +DEAL::1 1 (19.,0.0) +DEAL::1 2 (25.,0.0) +DEAL::1 3 (31.,0.0) +DEAL::1 4 (38.,0.0) +DEAL::2 0 (19.,0.0) +DEAL::2 1 (28.,0.0) +DEAL::2 2 (38.,0.0) +DEAL::2 3 (47.,0.0) +DEAL::2 4 (57.,0.0) +DEAL::3 0 (25.,0.0) +DEAL::3 1 (38.,0.0) +DEAL::3 2 (50.,0.0) +DEAL::3 3 (63.,0.0) +DEAL::3 4 (75.,0.0) +DEAL::4 0 (31.,0.0) +DEAL::4 1 (47.,0.0) +DEAL::4 2 (63.,0.0) +DEAL::4 3 (79.,0.0) +DEAL::4 4 (94.,0.0) diff --git a/tests/bits/complex_real_full_matrix_38.cc b/tests/bits/complex_real_full_matrix_38.cc new file mode 100644 index 0000000000..52d989573f --- /dev/null +++ b/tests/bits/complex_real_full_matrix_38.cc @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::equ(4). like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_38/output"; + + +template +void +check () +{ + FullMatrix > m,n,o; + make_matrix (m); + make_matrix (n); + make_matrix (o); + m.equ (3.1415, n, 2.718, o); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_38/cmp/generic b/tests/bits/complex_real_full_matrix_38/cmp/generic new file mode 100644 index 0000000000..9449cfbc33 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_38/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (12.,0.0) +DEAL::0 1 (18.,0.0) +DEAL::0 2 (23.,0.0) +DEAL::0 3 (29.,0.0) +DEAL::0 4 (35.,0.0) +DEAL::1 0 (23.,0.0) +DEAL::1 1 (35.,0.0) +DEAL::1 2 (47.,0.0) +DEAL::1 3 (59.,0.0) +DEAL::1 4 (70.,0.0) +DEAL::2 0 (35.,0.0) +DEAL::2 1 (53.,0.0) +DEAL::2 2 (70.,0.0) +DEAL::2 3 (88.,0.0) +DEAL::2 4 (1.1e+02,0.0) +DEAL::3 0 (47.,0.0) +DEAL::3 1 (70.,0.0) +DEAL::3 2 (94.,0.0) +DEAL::3 3 (1.2e+02,0.0) +DEAL::3 4 (1.4e+02,0.0) +DEAL::4 0 (59.,0.0) +DEAL::4 1 (88.,0.0) +DEAL::4 2 (1.2e+02,0.0) +DEAL::4 3 (1.5e+02,0.0) +DEAL::4 4 (1.8e+02,0.0) +DEAL::0 0 (12.,0.0) +DEAL::0 1 (18.,0.0) +DEAL::0 2 (23.,0.0) +DEAL::0 3 (29.,0.0) +DEAL::0 4 (35.,0.0) +DEAL::1 0 (23.,0.0) +DEAL::1 1 (35.,0.0) +DEAL::1 2 (47.,0.0) +DEAL::1 3 (59.,0.0) +DEAL::1 4 (70.,0.0) +DEAL::2 0 (35.,0.0) +DEAL::2 1 (53.,0.0) +DEAL::2 2 (70.,0.0) +DEAL::2 3 (88.,0.0) +DEAL::2 4 (1.1e+02,0.0) +DEAL::3 0 (47.,0.0) +DEAL::3 1 (70.,0.0) +DEAL::3 2 (94.,0.0) +DEAL::3 3 (1.2e+02,0.0) +DEAL::3 4 (1.4e+02,0.0) +DEAL::4 0 (59.,0.0) +DEAL::4 1 (88.,0.0) +DEAL::4 2 (1.2e+02,0.0) +DEAL::4 3 (1.5e+02,0.0) +DEAL::4 4 (1.8e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_39.cc b/tests/bits/complex_real_full_matrix_39.cc new file mode 100644 index 0000000000..c11f21293e --- /dev/null +++ b/tests/bits/complex_real_full_matrix_39.cc @@ -0,0 +1,39 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::equ (6). like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_39/output"; + + +template +void +check () +{ + FullMatrix > m,n,o,p; + make_matrix (m); + make_matrix (n); + make_matrix (o); + make_matrix (p); + m.equ (3.1415, n, 2.718, o, 1.414, p); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_39/cmp/generic b/tests/bits/complex_real_full_matrix_39/cmp/generic new file mode 100644 index 0000000000..f4c9095075 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_39/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (15.,0.0) +DEAL::0 1 (22.,0.0) +DEAL::0 2 (29.,0.0) +DEAL::0 3 (36.,0.0) +DEAL::0 4 (44.,0.0) +DEAL::1 0 (29.,0.0) +DEAL::1 1 (44.,0.0) +DEAL::1 2 (58.,0.0) +DEAL::1 3 (73.,0.0) +DEAL::1 4 (87.,0.0) +DEAL::2 0 (44.,0.0) +DEAL::2 1 (65.,0.0) +DEAL::2 2 (87.,0.0) +DEAL::2 3 (1.1e+02,0.0) +DEAL::2 4 (1.3e+02,0.0) +DEAL::3 0 (58.,0.0) +DEAL::3 1 (87.,0.0) +DEAL::3 2 (1.2e+02,0.0) +DEAL::3 3 (1.5e+02,0.0) +DEAL::3 4 (1.7e+02,0.0) +DEAL::4 0 (73.,0.0) +DEAL::4 1 (1.1e+02,0.0) +DEAL::4 2 (1.5e+02,0.0) +DEAL::4 3 (1.8e+02,0.0) +DEAL::4 4 (2.2e+02,0.0) +DEAL::0 0 (15.,0.0) +DEAL::0 1 (22.,0.0) +DEAL::0 2 (29.,0.0) +DEAL::0 3 (36.,0.0) +DEAL::0 4 (44.,0.0) +DEAL::1 0 (29.,0.0) +DEAL::1 1 (44.,0.0) +DEAL::1 2 (58.,0.0) +DEAL::1 3 (73.,0.0) +DEAL::1 4 (87.,0.0) +DEAL::2 0 (44.,0.0) +DEAL::2 1 (65.,0.0) +DEAL::2 2 (87.,0.0) +DEAL::2 3 (1.1e+02,0.0) +DEAL::2 4 (1.3e+02,0.0) +DEAL::3 0 (58.,0.0) +DEAL::3 1 (87.,0.0) +DEAL::3 2 (1.2e+02,0.0) +DEAL::3 3 (1.5e+02,0.0) +DEAL::3 4 (1.7e+02,0.0) +DEAL::4 0 (73.,0.0) +DEAL::4 1 (1.1e+02,0.0) +DEAL::4 2 (1.5e+02,0.0) +DEAL::4 3 (1.8e+02,0.0) +DEAL::4 4 (2.2e+02,0.0) diff --git a/tests/bits/complex_real_full_matrix_40.cc b/tests/bits/complex_real_full_matrix_40.cc new file mode 100644 index 0000000000..e4a83d426b --- /dev/null +++ b/tests/bits/complex_real_full_matrix_40.cc @@ -0,0 +1,36 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::symmetrize. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_40/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m.symmetrize (); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_40/cmp/generic b/tests/bits/complex_real_full_matrix_40/cmp/generic new file mode 100644 index 0000000000..fce83fff80 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_40/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.5,0.0) +DEAL::0 2 (5.0,0.0) +DEAL::0 3 (6.5,0.0) +DEAL::0 4 (8.0,0.0) +DEAL::1 0 (3.5,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.5,0.0) +DEAL::1 3 (11.,0.0) +DEAL::1 4 (14.,0.0) +DEAL::2 0 (5.0,0.0) +DEAL::2 1 (8.5,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (16.,0.0) +DEAL::2 4 (19.,0.0) +DEAL::3 0 (6.5,0.0) +DEAL::3 1 (11.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (8.0,0.0) +DEAL::4 1 (14.,0.0) +DEAL::4 2 (19.,0.0) +DEAL::4 3 (24.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.5,0.0) +DEAL::0 2 (5.0,0.0) +DEAL::0 3 (6.5,0.0) +DEAL::0 4 (8.0,0.0) +DEAL::1 0 (3.5,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.5,0.0) +DEAL::1 3 (11.,0.0) +DEAL::1 4 (14.,0.0) +DEAL::2 0 (5.0,0.0) +DEAL::2 1 (8.5,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (16.,0.0) +DEAL::2 4 (19.,0.0) +DEAL::3 0 (6.5,0.0) +DEAL::3 1 (11.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (8.0,0.0) +DEAL::4 1 (14.,0.0) +DEAL::4 2 (19.,0.0) +DEAL::4 3 (24.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_41.cc b/tests/bits/complex_real_full_matrix_41.cc new file mode 100644 index 0000000000..e122bf6757 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_41.cc @@ -0,0 +1,37 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::gauss_jordan. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_41/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + m(0,0) = m(1,1) = m(2,2) = m(3,3) = m(4,4) = 50; + m.gauss_jordan (); + print_matrix (m); +} + diff --git a/tests/bits/complex_real_full_matrix_41/cmp/generic b/tests/bits/complex_real_full_matrix_41/cmp/generic new file mode 100644 index 0000000000..649f30d0d3 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_41/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 (0.021,0.0) +DEAL::0 1 (0.00039,-0.0) +DEAL::0 2 (0.00060,0.0) +DEAL::0 3 (0.00095,0.0) +DEAL::0 4 (0.0017,0.0) +DEAL::1 0 (0.00052,0.0) +DEAL::1 1 (0.022,0.0) +DEAL::1 2 (0.0013,-0.0) +DEAL::1 3 (0.0021,0.0) +DEAL::1 4 (0.0037,0.0) +DEAL::2 0 (0.00090,0.0) +DEAL::2 1 (0.0015,0.0) +DEAL::2 2 (0.024,0.0) +DEAL::2 3 (0.0036,-0.0) +DEAL::2 4 (0.0065,0.0) +DEAL::3 0 (0.0015,0.0) +DEAL::3 1 (0.0025,0.0) +DEAL::3 2 (0.0038,0.0) +DEAL::3 3 (0.027,0.0) +DEAL::3 4 (-0.011,-0.0) +DEAL::4 0 (0.0028,-0.0) +DEAL::4 1 (0.0047,-0.0) +DEAL::4 2 (0.0072,-0.0) +DEAL::4 3 (-0.011,-0.0) +DEAL::4 4 (0.030,0.0) +DEAL::0 0 (0.021,0.0) +DEAL::0 1 (0.00039,-0.0) +DEAL::0 2 (0.00060,0.0) +DEAL::0 3 (0.00095,0.0) +DEAL::0 4 (0.0017,0.0) +DEAL::1 0 (0.00052,0.0) +DEAL::1 1 (0.022,0.0) +DEAL::1 2 (0.0013,-0.0) +DEAL::1 3 (0.0021,0.0) +DEAL::1 4 (0.0037,0.0) +DEAL::2 0 (0.00090,0.0) +DEAL::2 1 (0.0015,0.0) +DEAL::2 2 (0.024,0.0) +DEAL::2 3 (0.0036,-0.0) +DEAL::2 4 (0.0065,0.0) +DEAL::3 0 (0.0015,0.0) +DEAL::3 1 (0.0025,0.0) +DEAL::3 2 (0.0038,0.0) +DEAL::3 3 (0.027,0.0) +DEAL::3 4 (-0.011,-0.0) +DEAL::4 0 (0.0028,-0.0) +DEAL::4 1 (0.0047,-0.0) +DEAL::4 2 (0.0072,-0.0) +DEAL::4 3 (-0.011,-0.0) +DEAL::4 4 (0.030,0.0) diff --git a/tests/bits/complex_real_full_matrix_42.cc b/tests/bits/complex_real_full_matrix_42.cc new file mode 100644 index 0000000000..886806201d --- /dev/null +++ b/tests/bits/complex_real_full_matrix_42.cc @@ -0,0 +1,44 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::invert. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_42/output"; + + +template +void +check () +{ + for (unsigned int n=1; n<=5; ++n) + { + const std::complex array[] = { 50, 2, 3, 4, 5, + 6, 50, 8, 9, 0, + 1, 2, 50, 4, 5, + 6, 7, 8, 50, 0, + 1, 2, 3, 4, 50 }; + + FullMatrix > m (n,n,array), p(n,n); + p.invert (m); + print_matrix (p); + } +} + diff --git a/tests/bits/complex_real_full_matrix_42/cmp/generic b/tests/bits/complex_real_full_matrix_42/cmp/generic new file mode 100644 index 0000000000..47435b6391 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_42/cmp/generic @@ -0,0 +1,111 @@ + +DEAL::0 0 (0.020,0.0) +DEAL::0 0 (0.021,0.0) +DEAL::0 1 (-0.010,-0.0) +DEAL::1 0 (-0.015,-0.0) +DEAL::1 1 (0.26,0.0) +DEAL::0 0 (0.011,0.0) +DEAL::0 1 (-0.022,0.0) +DEAL::0 2 (0.011,0.0) +DEAL::1 0 (-0.96,0.0) +DEAL::1 1 (-1.1,-0.0) +DEAL::1 2 (1.0,0.0) +DEAL::2 0 (0.79,0.0) +DEAL::2 1 (1.1,0.0) +DEAL::2 2 (-0.88,-0.0) +DEAL::0 0 (0.049,0.0) +DEAL::0 1 (0.0,-0.0) +DEAL::0 2 (-0.024,0.0) +DEAL::0 3 (-0.024,-0.0) +DEAL::1 0 (-0.32,-0.0) +DEAL::1 1 (-0.012,0.0) +DEAL::1 2 (-0.60,-0.0) +DEAL::1 3 (0.43,0.0) +DEAL::2 0 (0.074,0.0) +DEAL::2 1 (0.023,0.0) +DEAL::2 2 (-0.026,0.0) +DEAL::2 3 (-0.072,-0.0) +DEAL::3 0 (-0.26,-0.0) +DEAL::3 1 (-0.012,0.0) +DEAL::3 2 (0.62,0.0) +DEAL::3 3 (0.15,0.0) +DEAL::0 0 (0.020,0.0) +DEAL::0 1 (0.00052,0.0) +DEAL::0 2 (0.00081,0.0) +DEAL::0 3 (0.0013,0.0) +DEAL::0 4 (0.0019,-0.0) +DEAL::1 0 (0.0020,0.0) +DEAL::1 1 (0.021,0.0) +DEAL::1 2 (0.0027,-0.0) +DEAL::1 3 (0.0034,0.0) +DEAL::1 4 (0.00047,0.0) +DEAL::2 0 (0.00014,0.0) +DEAL::2 1 (0.00054,0.0) +DEAL::2 2 (0.020,0.0) +DEAL::2 3 (0.0014,0.0) +DEAL::2 4 (0.0020,-0.0) +DEAL::3 0 (0.0021,-0.0) +DEAL::3 1 (0.0027,-0.0) +DEAL::3 2 (0.0028,-0.0) +DEAL::3 3 (0.021,0.0) +DEAL::3 4 (0.00049,0.0) +DEAL::4 0 (0.00015,-0.0) +DEAL::4 1 (0.00056,-0.0) +DEAL::4 2 (0.00088,-0.0) +DEAL::4 3 (0.0014,-0.0) +DEAL::4 4 (0.020,0.0) +DEAL::0 0 (0.020,0.0) +DEAL::0 0 (0.021,0.0) +DEAL::0 1 (-0.010,-0.0) +DEAL::1 0 (-0.015,-0.0) +DEAL::1 1 (0.26,0.0) +DEAL::0 0 (0.011,0.0) +DEAL::0 1 (-0.022,0.0) +DEAL::0 2 (0.011,0.0) +DEAL::1 0 (-0.96,0.0) +DEAL::1 1 (-1.1,-0.0) +DEAL::1 2 (1.0,0.0) +DEAL::2 0 (0.79,0.0) +DEAL::2 1 (1.1,0.0) +DEAL::2 2 (-0.88,-0.0) +DEAL::0 0 (0.049,0.0) +DEAL::0 1 (0.0,-0.0) +DEAL::0 2 (-0.024,0.0) +DEAL::0 3 (-0.024,-0.0) +DEAL::1 0 (-0.32,-0.0) +DEAL::1 1 (-0.012,0.0) +DEAL::1 2 (-0.60,-0.0) +DEAL::1 3 (0.43,0.0) +DEAL::2 0 (0.074,0.0) +DEAL::2 1 (0.023,0.0) +DEAL::2 2 (-0.026,0.0) +DEAL::2 3 (-0.072,-0.0) +DEAL::3 0 (-0.26,-0.0) +DEAL::3 1 (-0.012,0.0) +DEAL::3 2 (0.62,0.0) +DEAL::3 3 (0.15,0.0) +DEAL::0 0 (0.020,0.0) +DEAL::0 1 (0.00052,0.0) +DEAL::0 2 (0.00081,0.0) +DEAL::0 3 (0.0013,0.0) +DEAL::0 4 (0.0019,-0.0) +DEAL::1 0 (0.0020,0.0) +DEAL::1 1 (0.021,0.0) +DEAL::1 2 (0.0027,-0.0) +DEAL::1 3 (0.0034,0.0) +DEAL::1 4 (0.00047,0.0) +DEAL::2 0 (0.00014,0.0) +DEAL::2 1 (0.00054,0.0) +DEAL::2 2 (0.020,0.0) +DEAL::2 3 (0.0014,0.0) +DEAL::2 4 (0.0020,-0.0) +DEAL::3 0 (0.0021,-0.0) +DEAL::3 1 (0.0027,-0.0) +DEAL::3 2 (0.0028,-0.0) +DEAL::3 3 (0.021,0.0) +DEAL::3 4 (0.00049,0.0) +DEAL::4 0 (0.00015,-0.0) +DEAL::4 1 (0.00056,-0.0) +DEAL::4 2 (0.00088,-0.0) +DEAL::4 3 (0.0014,-0.0) +DEAL::4 4 (0.020,0.0) diff --git a/tests/bits/complex_real_full_matrix_43.cc b/tests/bits/complex_real_full_matrix_43.cc new file mode 100644 index 0000000000..80c40a0dd1 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_43.cc @@ -0,0 +1,46 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::mmult. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_43/output"; + + +template +void +check () +{ + FullMatrix > m, n, o; + make_matrix (m); + make_matrix (n); + make_matrix (o); + + m.mmult (n, o, true); + print_matrix (m); + print_matrix (n); + print_matrix (o); + + m.mmult (n, o, false); + print_matrix (m); + print_matrix (n); + print_matrix (o); +} + diff --git a/tests/bits/complex_real_full_matrix_43/cmp/generic b/tests/bits/complex_real_full_matrix_43/cmp/generic new file mode 100644 index 0000000000..c957cb8e00 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_43/cmp/generic @@ -0,0 +1,301 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (1.4e+02,0.0) +DEAL::0 1 (2.1e+02,0.0) +DEAL::0 2 (2.8e+02,0.0) +DEAL::0 3 (3.6e+02,0.0) +DEAL::0 4 (4.3e+02,0.0) +DEAL::1 0 (2.8e+02,0.0) +DEAL::1 1 (4.3e+02,0.0) +DEAL::1 2 (5.7e+02,0.0) +DEAL::1 3 (7.1e+02,0.0) +DEAL::1 4 (8.5e+02,0.0) +DEAL::2 0 (4.3e+02,0.0) +DEAL::2 1 (6.4e+02,0.0) +DEAL::2 2 (8.5e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.7e+02,0.0) +DEAL::3 1 (8.5e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (7.1e+02,0.0) +DEAL::4 1 (1.1e+03,0.0) +DEAL::4 2 (1.4e+03,0.0) +DEAL::4 3 (1.8e+03,0.0) +DEAL::4 4 (2.1e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (1.4e+02,0.0) +DEAL::0 1 (2.1e+02,0.0) +DEAL::0 2 (2.8e+02,0.0) +DEAL::0 3 (3.5e+02,0.0) +DEAL::0 4 (4.2e+02,0.0) +DEAL::1 0 (2.8e+02,0.0) +DEAL::1 1 (4.2e+02,0.0) +DEAL::1 2 (5.6e+02,0.0) +DEAL::1 3 (7.0e+02,0.0) +DEAL::1 4 (8.4e+02,0.0) +DEAL::2 0 (4.2e+02,0.0) +DEAL::2 1 (6.3e+02,0.0) +DEAL::2 2 (8.4e+02,0.0) +DEAL::2 3 (1.0e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.6e+02,0.0) +DEAL::3 1 (8.4e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (7.0e+02,0.0) +DEAL::4 1 (1.0e+03,0.0) +DEAL::4 2 (1.4e+03,0.0) +DEAL::4 3 (1.8e+03,0.0) +DEAL::4 4 (2.1e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (1.4e+02,0.0) +DEAL::0 1 (2.1e+02,0.0) +DEAL::0 2 (2.8e+02,0.0) +DEAL::0 3 (3.6e+02,0.0) +DEAL::0 4 (4.3e+02,0.0) +DEAL::1 0 (2.8e+02,0.0) +DEAL::1 1 (4.3e+02,0.0) +DEAL::1 2 (5.7e+02,0.0) +DEAL::1 3 (7.1e+02,0.0) +DEAL::1 4 (8.5e+02,0.0) +DEAL::2 0 (4.3e+02,0.0) +DEAL::2 1 (6.4e+02,0.0) +DEAL::2 2 (8.5e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.7e+02,0.0) +DEAL::3 1 (8.5e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (7.1e+02,0.0) +DEAL::4 1 (1.1e+03,0.0) +DEAL::4 2 (1.4e+03,0.0) +DEAL::4 3 (1.8e+03,0.0) +DEAL::4 4 (2.1e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (1.4e+02,0.0) +DEAL::0 1 (2.1e+02,0.0) +DEAL::0 2 (2.8e+02,0.0) +DEAL::0 3 (3.5e+02,0.0) +DEAL::0 4 (4.2e+02,0.0) +DEAL::1 0 (2.8e+02,0.0) +DEAL::1 1 (4.2e+02,0.0) +DEAL::1 2 (5.6e+02,0.0) +DEAL::1 3 (7.0e+02,0.0) +DEAL::1 4 (8.4e+02,0.0) +DEAL::2 0 (4.2e+02,0.0) +DEAL::2 1 (6.3e+02,0.0) +DEAL::2 2 (8.4e+02,0.0) +DEAL::2 3 (1.0e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.6e+02,0.0) +DEAL::3 1 (8.4e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (7.0e+02,0.0) +DEAL::4 1 (1.0e+03,0.0) +DEAL::4 2 (1.4e+03,0.0) +DEAL::4 3 (1.8e+03,0.0) +DEAL::4 4 (2.1e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_44.cc b/tests/bits/complex_real_full_matrix_44.cc new file mode 100644 index 0000000000..6c1dc9c3a0 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_44.cc @@ -0,0 +1,46 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::Tmmult. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_44/output"; + + +template +void +check () +{ + FullMatrix > m, n, o; + make_matrix (m); + make_matrix (n); + make_matrix (o); + + m.Tmmult (n, o, true); + print_matrix (m); + print_matrix (n); + print_matrix (o); + + m.Tmmult (n, o, false); + print_matrix (m); + print_matrix (n); + print_matrix (o); +} + diff --git a/tests/bits/complex_real_full_matrix_44/cmp/generic b/tests/bits/complex_real_full_matrix_44/cmp/generic new file mode 100644 index 0000000000..4e09c9d257 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_44/cmp/generic @@ -0,0 +1,301 @@ + +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.2e+02,0.0) +DEAL::0 1 (3.3e+02,0.0) +DEAL::0 2 (4.4e+02,0.0) +DEAL::0 3 (5.6e+02,0.0) +DEAL::0 4 (6.7e+02,0.0) +DEAL::1 0 (3.3e+02,0.0) +DEAL::1 1 (5.0e+02,0.0) +DEAL::1 2 (6.7e+02,0.0) +DEAL::1 3 (8.4e+02,0.0) +DEAL::1 4 (1.0e+03,0.0) +DEAL::2 0 (4.5e+02,0.0) +DEAL::2 1 (6.7e+02,0.0) +DEAL::2 2 (8.9e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.6e+02,0.0) +DEAL::3 1 (8.4e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (6.7e+02,0.0) +DEAL::4 1 (1.0e+03,0.0) +DEAL::4 2 (1.3e+03,0.0) +DEAL::4 3 (1.7e+03,0.0) +DEAL::4 4 (2.0e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.2e+02,0.0) +DEAL::0 1 (3.3e+02,0.0) +DEAL::0 2 (4.4e+02,0.0) +DEAL::0 3 (5.5e+02,0.0) +DEAL::0 4 (6.6e+02,0.0) +DEAL::1 0 (3.3e+02,0.0) +DEAL::1 1 (5.0e+02,0.0) +DEAL::1 2 (6.6e+02,0.0) +DEAL::1 3 (8.2e+02,0.0) +DEAL::1 4 (9.9e+02,0.0) +DEAL::2 0 (4.4e+02,0.0) +DEAL::2 1 (6.6e+02,0.0) +DEAL::2 2 (8.8e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.5e+02,0.0) +DEAL::3 1 (8.2e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.6e+03,0.0) +DEAL::4 0 (6.6e+02,0.0) +DEAL::4 1 (9.9e+02,0.0) +DEAL::4 2 (1.3e+03,0.0) +DEAL::4 3 (1.6e+03,0.0) +DEAL::4 4 (2.0e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.2e+02,0.0) +DEAL::0 1 (3.3e+02,0.0) +DEAL::0 2 (4.4e+02,0.0) +DEAL::0 3 (5.6e+02,0.0) +DEAL::0 4 (6.7e+02,0.0) +DEAL::1 0 (3.3e+02,0.0) +DEAL::1 1 (5.0e+02,0.0) +DEAL::1 2 (6.7e+02,0.0) +DEAL::1 3 (8.4e+02,0.0) +DEAL::1 4 (1.0e+03,0.0) +DEAL::2 0 (4.5e+02,0.0) +DEAL::2 1 (6.7e+02,0.0) +DEAL::2 2 (8.9e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.6e+02,0.0) +DEAL::3 1 (8.4e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.7e+03,0.0) +DEAL::4 0 (6.7e+02,0.0) +DEAL::4 1 (1.0e+03,0.0) +DEAL::4 2 (1.3e+03,0.0) +DEAL::4 3 (1.7e+03,0.0) +DEAL::4 4 (2.0e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) +DEAL::0 0 (2.2e+02,0.0) +DEAL::0 1 (3.3e+02,0.0) +DEAL::0 2 (4.4e+02,0.0) +DEAL::0 3 (5.5e+02,0.0) +DEAL::0 4 (6.6e+02,0.0) +DEAL::1 0 (3.3e+02,0.0) +DEAL::1 1 (5.0e+02,0.0) +DEAL::1 2 (6.6e+02,0.0) +DEAL::1 3 (8.2e+02,0.0) +DEAL::1 4 (9.9e+02,0.0) +DEAL::2 0 (4.4e+02,0.0) +DEAL::2 1 (6.6e+02,0.0) +DEAL::2 2 (8.8e+02,0.0) +DEAL::2 3 (1.1e+03,0.0) +DEAL::2 4 (1.3e+03,0.0) +DEAL::3 0 (5.5e+02,0.0) +DEAL::3 1 (8.2e+02,0.0) +DEAL::3 2 (1.1e+03,0.0) +DEAL::3 3 (1.4e+03,0.0) +DEAL::3 4 (1.6e+03,0.0) +DEAL::4 0 (6.6e+02,0.0) +DEAL::4 1 (9.9e+02,0.0) +DEAL::4 2 (1.3e+03,0.0) +DEAL::4 3 (1.6e+03,0.0) +DEAL::4 4 (2.0e+03,0.0) +DEAL::0 0 (2.0,0.0) +DEAL::0 1 (3.0,0.0) +DEAL::0 2 (4.0,0.0) +DEAL::0 3 (5.0,0.0) +DEAL::0 4 (6.0,0.0) +DEAL::1 0 (4.0,0.0) +DEAL::1 1 (6.0,0.0) +DEAL::1 2 (8.0,0.0) +DEAL::1 3 (10.,0.0) +DEAL::1 4 (12.,0.0) +DEAL::2 0 (6.0,0.0) +DEAL::2 1 (9.0,0.0) +DEAL::2 2 (12.,0.0) +DEAL::2 3 (15.,0.0) +DEAL::2 4 (18.,0.0) +DEAL::3 0 (8.0,0.0) +DEAL::3 1 (12.,0.0) +DEAL::3 2 (16.,0.0) +DEAL::3 3 (20.,0.0) +DEAL::3 4 (24.,0.0) +DEAL::4 0 (10.,0.0) +DEAL::4 1 (15.,0.0) +DEAL::4 2 (20.,0.0) +DEAL::4 3 (25.,0.0) +DEAL::4 4 (30.,0.0) diff --git a/tests/bits/complex_real_full_matrix_45.cc b/tests/bits/complex_real_full_matrix_45.cc new file mode 100644 index 0000000000..27b45cf9f8 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_45.cc @@ -0,0 +1,45 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::vmult. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_45/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w; + make_vector (v); + make_vector (w); + + m.vmult (v, w, true); + print_vector (v); + print_vector (w); + + m.vmult (v, w, false); + print_vector (v); + print_vector (w); +} + diff --git a/tests/bits/complex_real_full_matrix_45/cmp/generic b/tests/bits/complex_real_full_matrix_45/cmp/generic new file mode 100644 index 0000000000..ac31e794db --- /dev/null +++ b/tests/bits/complex_real_full_matrix_45/cmp/generic @@ -0,0 +1,41 @@ + +DEAL::0 (71.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.6e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (70.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.5e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (71.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.6e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (70.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.5e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_46.cc b/tests/bits/complex_real_full_matrix_46.cc new file mode 100644 index 0000000000..e850b96f89 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_46.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::vmult_add. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_46/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w; + make_vector (v); + make_vector (w); + + m.vmult_add (v, w); + print_vector (v); + print_vector (w); +} + diff --git a/tests/bits/complex_real_full_matrix_46/cmp/generic b/tests/bits/complex_real_full_matrix_46/cmp/generic new file mode 100644 index 0000000000..3b9b54ee47 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_46/cmp/generic @@ -0,0 +1,21 @@ + +DEAL::0 (71.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.6e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (71.,0.0) +DEAL::1 (1.4e+02,0.0) +DEAL::2 (2.1e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.6e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_47.cc b/tests/bits/complex_real_full_matrix_47.cc new file mode 100644 index 0000000000..983f3f63bb --- /dev/null +++ b/tests/bits/complex_real_full_matrix_47.cc @@ -0,0 +1,45 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::Tvmult. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_47/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w; + make_vector (v); + make_vector (w); + + m.Tvmult (v, w, true); + print_vector (v); + print_vector (w); + + m.Tvmult (v, w, false); + print_vector (v); + print_vector (w); +} + diff --git a/tests/bits/complex_real_full_matrix_47/cmp/generic b/tests/bits/complex_real_full_matrix_47/cmp/generic new file mode 100644 index 0000000000..5fd7d3f83e --- /dev/null +++ b/tests/bits/complex_real_full_matrix_47/cmp/generic @@ -0,0 +1,41 @@ + +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.7e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.6e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.3e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.7e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.6e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.3e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_48.cc b/tests/bits/complex_real_full_matrix_48.cc new file mode 100644 index 0000000000..8401962ea5 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_48.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::Tvmult_add. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_48/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w; + make_vector (v); + make_vector (w); + + m.Tvmult_add (v, w); + print_vector (v); + print_vector (w); +} + diff --git a/tests/bits/complex_real_full_matrix_48/cmp/generic b/tests/bits/complex_real_full_matrix_48/cmp/generic new file mode 100644 index 0000000000..4a337a72de --- /dev/null +++ b/tests/bits/complex_real_full_matrix_48/cmp/generic @@ -0,0 +1,21 @@ + +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.7e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.1e+02,0.0) +DEAL::1 (1.7e+02,0.0) +DEAL::2 (2.2e+02,0.0) +DEAL::3 (2.8e+02,0.0) +DEAL::4 (3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_49.cc b/tests/bits/complex_real_full_matrix_49.cc new file mode 100644 index 0000000000..85dbdf4f24 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_49.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::precondition_Jacobi. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_49/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w; + make_vector (v); + make_vector (w); + + m.precondition_Jacobi (v, w, 3.141); + print_vector (v); + print_vector (w); +} + diff --git a/tests/bits/complex_real_full_matrix_49/cmp/generic b/tests/bits/complex_real_full_matrix_49/cmp/generic new file mode 100644 index 0000000000..7d8270cde1 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_49/cmp/generic @@ -0,0 +1,21 @@ + +DEAL::0 (1.6,0.0) +DEAL::1 (1.0,0.0) +DEAL::2 (0.79,0.0) +DEAL::3 (0.63,0.0) +DEAL::4 (0.52,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.6,0.0) +DEAL::1 (1.0,0.0) +DEAL::2 (0.79,0.0) +DEAL::3 (0.63,0.0) +DEAL::4 (0.52,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_50.cc b/tests/bits/complex_real_full_matrix_50.cc new file mode 100644 index 0000000000..7ca464e828 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_50.cc @@ -0,0 +1,43 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::residual. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_50/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > v, w, x; + make_vector (v); + make_vector (w); + make_vector (x); + + m.residual (v, w, x); + print_vector (v); + print_vector (w); + print_vector (x); +} + diff --git a/tests/bits/complex_real_full_matrix_50/cmp/generic b/tests/bits/complex_real_full_matrix_50/cmp/generic new file mode 100644 index 0000000000..215ee596c8 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_50/cmp/generic @@ -0,0 +1,31 @@ + +DEAL::0 (-69.,0.0) +DEAL::1 (-1.4e+02,0.0) +DEAL::2 (-2.1e+02,0.0) +DEAL::3 (-2.8e+02,0.0) +DEAL::4 (-3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (-69.,0.0) +DEAL::1 (-1.4e+02,0.0) +DEAL::2 (-2.1e+02,0.0) +DEAL::3 (-2.8e+02,0.0) +DEAL::4 (-3.4e+02,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_51.cc b/tests/bits/complex_real_full_matrix_51.cc new file mode 100644 index 0000000000..bc6e3b11d4 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_51.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::forward. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_51/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > x, y; + make_vector (x); + make_vector (y); + + m.forward (x, y); + print_vector (x); + print_vector (y); +} + diff --git a/tests/bits/complex_real_full_matrix_51/cmp/generic b/tests/bits/complex_real_full_matrix_51/cmp/generic new file mode 100644 index 0000000000..4ee323373b --- /dev/null +++ b/tests/bits/complex_real_full_matrix_51/cmp/generic @@ -0,0 +1,21 @@ + +DEAL::0 (0.50,0.0) +DEAL::1 (0.0,0.0) +DEAL::2 (0.0,0.0) +DEAL::3 (0.0,0.0) +DEAL::4 (0.0,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (0.50,0.0) +DEAL::1 (0.0,0.0) +DEAL::2 (0.0,0.0) +DEAL::3 (0.0,0.0) +DEAL::4 (0.0,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/complex_real_full_matrix_52.cc b/tests/bits/complex_real_full_matrix_52.cc new file mode 100644 index 0000000000..32914bcb12 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_52.cc @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2007 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------------------------------------------------- + + +// check FullMatrix::backward. like the full_matrix_* tests, but use +// complex-valued matrices and vectors, even though we only store real values +// in them + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "complex_real_full_matrix_52/output"; + + +template +void +check () +{ + FullMatrix > m; + make_matrix (m); + Vector > x, y; + make_vector (x); + make_vector (y); + + m.backward (x, y); + print_vector (x); + print_vector (y); +} + diff --git a/tests/bits/complex_real_full_matrix_52/cmp/generic b/tests/bits/complex_real_full_matrix_52/cmp/generic new file mode 100644 index 0000000000..7864d6a667 --- /dev/null +++ b/tests/bits/complex_real_full_matrix_52/cmp/generic @@ -0,0 +1,21 @@ + +DEAL::0 (0.0,0.0) +DEAL::1 (0.0,0.0) +DEAL::2 (0.0,0.0) +DEAL::3 (0.0,0.0) +DEAL::4 (0.17,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) +DEAL::0 (0.0,0.0) +DEAL::1 (0.0,0.0) +DEAL::2 (0.0,0.0) +DEAL::3 (0.0,0.0) +DEAL::4 (0.17,0.0) +DEAL::0 (1.0,0.0) +DEAL::1 (2.0,0.0) +DEAL::2 (3.0,0.0) +DEAL::3 (4.0,0.0) +DEAL::4 (5.0,0.0) diff --git a/tests/bits/full_matrix_13.cc b/tests/bits/full_matrix_13.cc index b6a7b59fb4..ae2f986eec 100644 --- a/tests/bits/full_matrix_13.cc +++ b/tests/bits/full_matrix_13.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v; + Vector v; make_vector (v); deallog << m.matrix_norm_square (v) << std::endl; diff --git a/tests/bits/full_matrix_14.cc b/tests/bits/full_matrix_14.cc index 24569a620a..a181287719 100644 --- a/tests/bits/full_matrix_14.cc +++ b/tests/bits/full_matrix_14.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v,w; + Vector v,w; make_vector (v); make_vector (w); for (unsigned int i=0; i m; make_matrix (m); - Vector v, w; + Vector v, w; make_vector (v); make_vector (w); diff --git a/tests/bits/full_matrix_46.cc b/tests/bits/full_matrix_46.cc index b943470ad0..e936554635 100644 --- a/tests/bits/full_matrix_46.cc +++ b/tests/bits/full_matrix_46.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v, w; + Vector v, w; make_vector (v); make_vector (w); diff --git a/tests/bits/full_matrix_47.cc b/tests/bits/full_matrix_47.cc index 2add1958e4..45d2158ccf 100644 --- a/tests/bits/full_matrix_47.cc +++ b/tests/bits/full_matrix_47.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v, w; + Vector v, w; make_vector (v); make_vector (w); diff --git a/tests/bits/full_matrix_48.cc b/tests/bits/full_matrix_48.cc index 1f9bed89ab..2cc4af5b8a 100644 --- a/tests/bits/full_matrix_48.cc +++ b/tests/bits/full_matrix_48.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v, w; + Vector v, w; make_vector (v); make_vector (w); diff --git a/tests/bits/full_matrix_49.cc b/tests/bits/full_matrix_49.cc index 73020ba723..9bf58c62c3 100644 --- a/tests/bits/full_matrix_49.cc +++ b/tests/bits/full_matrix_49.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v, w; + Vector v, w; make_vector (v); make_vector (w); diff --git a/tests/bits/full_matrix_50.cc b/tests/bits/full_matrix_50.cc index f44a4a8375..8bdbee02ac 100644 --- a/tests/bits/full_matrix_50.cc +++ b/tests/bits/full_matrix_50.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector v, w, x; + Vector v, w, x; make_vector (v); make_vector (w); make_vector (x); diff --git a/tests/bits/full_matrix_51.cc b/tests/bits/full_matrix_51.cc index 39121d657a..f134d7d1bb 100644 --- a/tests/bits/full_matrix_51.cc +++ b/tests/bits/full_matrix_51.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector x, y; + Vector x, y; make_vector (x); make_vector (y); diff --git a/tests/bits/full_matrix_52.cc b/tests/bits/full_matrix_52.cc index 230ba3fa22..eaf1439fa7 100644 --- a/tests/bits/full_matrix_52.cc +++ b/tests/bits/full_matrix_52.cc @@ -28,7 +28,7 @@ check () { FullMatrix m; make_matrix (m); - Vector x, y; + Vector x, y; make_vector (x); make_vector (y); diff --git a/tests/bits/full_matrix_vector_01.cc b/tests/bits/full_matrix_vector_01.cc index a0278f51f0..d4268b1fbe 100644 --- a/tests/bits/full_matrix_vector_01.cc +++ b/tests/bits/full_matrix_vector_01.cc @@ -22,8 +22,8 @@ #include -void test (Vector &v, - Vector &w) +void test (Vector &v, + Vector &w) { FullMatrix m(v.size(), v.size()); for (unsigned int i=0; i v (100); - Vector w (100); + Vector v (100); + Vector w (100); test (v,w); } catch (std::exception &exc) diff --git a/tests/bits/full_matrix_vector_02.cc b/tests/bits/full_matrix_vector_02.cc index 3a493e427b..1b11b75abf 100644 --- a/tests/bits/full_matrix_vector_02.cc +++ b/tests/bits/full_matrix_vector_02.cc @@ -22,8 +22,8 @@ #include -void test (Vector &v, - Vector &w) +void test (Vector &v, + Vector &w) { FullMatrix m(v.size(), v.size()); for (unsigned int i=0; i v (100); - Vector w (100); + Vector v (100); + Vector w (100); test (v,w); } catch (std::exception &exc) diff --git a/tests/bits/full_matrix_vector_05.cc b/tests/bits/full_matrix_vector_05.cc index 0619f826f4..dd81350378 100644 --- a/tests/bits/full_matrix_vector_05.cc +++ b/tests/bits/full_matrix_vector_05.cc @@ -22,8 +22,8 @@ #include -void test (Vector &v, - Vector &w) +void test (Vector &v, + Vector &w) { FullMatrix m(v.size(), v.size()); for (unsigned int i=0; i v (100); - Vector w (100); + Vector v (100); + Vector w (100); test (v,w); } catch (std::exception &exc) diff --git a/tests/bits/full_matrix_vector_06.cc b/tests/bits/full_matrix_vector_06.cc index 2544ee0020..46bbb3ebed 100644 --- a/tests/bits/full_matrix_vector_06.cc +++ b/tests/bits/full_matrix_vector_06.cc @@ -22,7 +22,7 @@ #include -void test (Vector &v) +void test (Vector &v) { FullMatrix m(v.size(), v.size()); for (unsigned int i=0; i v (100); + Vector v (100); test (v); } catch (std::exception &exc) diff --git a/tests/bits/full_matrix_vector_07.cc b/tests/bits/full_matrix_vector_07.cc index 8115c35491..1e6b8db69e 100644 --- a/tests/bits/full_matrix_vector_07.cc +++ b/tests/bits/full_matrix_vector_07.cc @@ -22,9 +22,9 @@ #include -void test (Vector &v, - Vector &w, - Vector &x) +void test (Vector &v, + Vector &w, + Vector &x) { FullMatrix m(v.size(), v.size()); for (unsigned int i=0; i v (100); - Vector w (100); - Vector x (100); + Vector v (100); + Vector w (100); + Vector x (100); test (v,w,x); } catch (std::exception &exc) -- 2.39.5