From 0ca301bd425bf56a16510221442b91f41983058f Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 18 Nov 2007 04:36:22 +0000 Subject: [PATCH] Add a bunch of new tests git-svn-id: https://svn.dealii.org/trunk@15507 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/full_matrix_02.cc | 38 +++++ tests/bits/full_matrix_02/cmp/generic | 51 +++++++ tests/bits/full_matrix_03.cc | 39 +++++ tests/bits/full_matrix_03/cmp/generic | 11 ++ tests/bits/full_matrix_04.cc | 39 +++++ tests/bits/full_matrix_04/cmp/generic | 51 +++++++ tests/bits/full_matrix_05.cc | 32 ++++ tests/bits/full_matrix_05/cmp/generic | 51 +++++++ tests/bits/full_matrix_06.cc | 37 +++++ tests/bits/full_matrix_06/cmp/generic | 51 +++++++ tests/bits/full_matrix_07.cc | 34 +++++ tests/bits/full_matrix_07/cmp/generic | 51 +++++++ tests/bits/full_matrix_08.cc | 37 +++++ tests/bits/full_matrix_08/cmp/generic | 51 +++++++ tests/bits/full_matrix_09.cc | 33 +++++ tests/bits/full_matrix_09/cmp/generic | 51 +++++++ tests/bits/full_matrix_10.cc | 36 +++++ tests/bits/full_matrix_10/cmp/generic | 201 ++++++++++++++++++++++++++ tests/bits/full_matrix_11.cc | 34 +++++ tests/bits/full_matrix_11/cmp/generic | 3 + tests/bits/full_matrix_12.cc | 35 +++++ tests/bits/full_matrix_12/cmp/generic | 5 + tests/bits/full_matrix_13.cc | 36 +++++ tests/bits/full_matrix_13/cmp/generic | 3 + tests/bits/full_matrix_14.cc | 39 +++++ tests/bits/full_matrix_14/cmp/generic | 3 + tests/bits/full_matrix_15.cc | 33 +++++ tests/bits/full_matrix_15/cmp/generic | 3 + tests/bits/full_matrix_16.cc | 33 +++++ tests/bits/full_matrix_16/cmp/generic | 3 + tests/bits/full_matrix_17.cc | 33 +++++ tests/bits/full_matrix_17/cmp/generic | 3 + tests/bits/full_matrix_18.cc | 33 +++++ tests/bits/full_matrix_18/cmp/generic | 3 + tests/bits/full_matrix_19.cc | 39 +++++ tests/bits/full_matrix_19/cmp/generic | 35 +++++ tests/bits/full_matrix_20.cc | 33 +++++ tests/bits/full_matrix_20/cmp/generic | 3 + tests/bits/full_matrix_21.cc | 33 +++++ tests/bits/full_matrix_21/cmp/generic | 11 ++ tests/bits/full_matrix_22.cc | 34 +++++ tests/bits/full_matrix_22/cmp/generic | 51 +++++++ tests/bits/full_matrix_23.cc | 34 +++++ tests/bits/full_matrix_23/cmp/generic | 51 +++++++ 44 files changed, 1520 insertions(+) create mode 100644 tests/bits/full_matrix_02.cc create mode 100644 tests/bits/full_matrix_02/cmp/generic create mode 100644 tests/bits/full_matrix_03.cc create mode 100644 tests/bits/full_matrix_03/cmp/generic create mode 100644 tests/bits/full_matrix_04.cc create mode 100644 tests/bits/full_matrix_04/cmp/generic create mode 100644 tests/bits/full_matrix_05.cc create mode 100644 tests/bits/full_matrix_05/cmp/generic create mode 100644 tests/bits/full_matrix_06.cc create mode 100644 tests/bits/full_matrix_06/cmp/generic create mode 100644 tests/bits/full_matrix_07.cc create mode 100644 tests/bits/full_matrix_07/cmp/generic create mode 100644 tests/bits/full_matrix_08.cc create mode 100644 tests/bits/full_matrix_08/cmp/generic create mode 100644 tests/bits/full_matrix_09.cc create mode 100644 tests/bits/full_matrix_09/cmp/generic create mode 100644 tests/bits/full_matrix_10.cc create mode 100644 tests/bits/full_matrix_10/cmp/generic create mode 100644 tests/bits/full_matrix_11.cc create mode 100644 tests/bits/full_matrix_11/cmp/generic create mode 100644 tests/bits/full_matrix_12.cc create mode 100644 tests/bits/full_matrix_12/cmp/generic create mode 100644 tests/bits/full_matrix_13.cc create mode 100644 tests/bits/full_matrix_13/cmp/generic create mode 100644 tests/bits/full_matrix_14.cc create mode 100644 tests/bits/full_matrix_14/cmp/generic create mode 100644 tests/bits/full_matrix_15.cc create mode 100644 tests/bits/full_matrix_15/cmp/generic create mode 100644 tests/bits/full_matrix_16.cc create mode 100644 tests/bits/full_matrix_16/cmp/generic create mode 100644 tests/bits/full_matrix_17.cc create mode 100644 tests/bits/full_matrix_17/cmp/generic create mode 100644 tests/bits/full_matrix_18.cc create mode 100644 tests/bits/full_matrix_18/cmp/generic create mode 100644 tests/bits/full_matrix_19.cc create mode 100644 tests/bits/full_matrix_19/cmp/generic create mode 100644 tests/bits/full_matrix_20.cc create mode 100644 tests/bits/full_matrix_20/cmp/generic create mode 100644 tests/bits/full_matrix_21.cc create mode 100644 tests/bits/full_matrix_21/cmp/generic create mode 100644 tests/bits/full_matrix_22.cc create mode 100644 tests/bits/full_matrix_22/cmp/generic create mode 100644 tests/bits/full_matrix_23.cc create mode 100644 tests/bits/full_matrix_23/cmp/generic diff --git a/tests/bits/full_matrix_02.cc b/tests/bits/full_matrix_02.cc new file mode 100644 index 0000000000..d37950f9a4 --- /dev/null +++ b/tests/bits/full_matrix_02.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 running over const iterators + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_02/cmp/generic b/tests/bits/full_matrix_02/cmp/generic new file mode 100644 index 0000000000..a2ec8ef473 --- /dev/null +++ b/tests/bits/full_matrix_02/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. diff --git a/tests/bits/full_matrix_03.cc b/tests/bits/full_matrix_03.cc new file mode 100644 index 0000000000..4281a679cc --- /dev/null +++ b/tests/bits/full_matrix_03.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 running over const iterators starting at the second line + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_03/cmp/generic b/tests/bits/full_matrix_03/cmp/generic new file mode 100644 index 0000000000..bf62ee7781 --- /dev/null +++ b/tests/bits/full_matrix_03/cmp/generic @@ -0,0 +1,11 @@ + +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. diff --git a/tests/bits/full_matrix_04.cc b/tests/bits/full_matrix_04.cc new file mode 100644 index 0000000000..0c7d67e2ba --- /dev/null +++ b/tests/bits/full_matrix_04.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 creation and output of a matrix using an array + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_04/output"; + + +template +void +check () +{ + const number 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/full_matrix_04/cmp/generic b/tests/bits/full_matrix_04/cmp/generic new file mode 100644 index 0000000000..469fc1c24b --- /dev/null +++ b/tests/bits/full_matrix_04/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::0 2 3.0 +DEAL::0 3 4.0 +DEAL::0 4 5.0 +DEAL::1 0 6.0 +DEAL::1 1 7.0 +DEAL::1 2 8.0 +DEAL::1 3 9.0 +DEAL::1 4 0 +DEAL::2 0 1.0 +DEAL::2 1 2.0 +DEAL::2 2 3.0 +DEAL::2 3 4.0 +DEAL::2 4 5.0 +DEAL::3 0 6.0 +DEAL::3 1 7.0 +DEAL::3 2 8.0 +DEAL::3 3 9.0 +DEAL::3 4 0 +DEAL::4 0 1.0 +DEAL::4 1 2.0 +DEAL::4 2 3.0 +DEAL::4 3 4.0 +DEAL::4 4 5.0 +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::0 2 3.0 +DEAL::0 3 4.0 +DEAL::0 4 5.0 +DEAL::1 0 6.0 +DEAL::1 1 7.0 +DEAL::1 2 8.0 +DEAL::1 3 9.0 +DEAL::1 4 0.0 +DEAL::2 0 1.0 +DEAL::2 1 2.0 +DEAL::2 2 3.0 +DEAL::2 3 4.0 +DEAL::2 4 5.0 +DEAL::3 0 6.0 +DEAL::3 1 7.0 +DEAL::3 2 8.0 +DEAL::3 3 9.0 +DEAL::3 4 0.0 +DEAL::4 0 1.0 +DEAL::4 1 2.0 +DEAL::4 2 3.0 +DEAL::4 3 4.0 +DEAL::4 4 5.0 diff --git a/tests/bits/full_matrix_05.cc b/tests/bits/full_matrix_05.cc new file mode 100644 index 0000000000..82e8884bbf --- /dev/null +++ b/tests/bits/full_matrix_05.cc @@ -0,0 +1,32 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_05/output"; + + +template +void +check () +{ + FullMatrix m (IdentityMatrix(5)); + print_matrix (m); +} + diff --git a/tests/bits/full_matrix_05/cmp/generic b/tests/bits/full_matrix_05/cmp/generic new file mode 100644 index 0000000000..29c580fb2a --- /dev/null +++ b/tests/bits/full_matrix_05/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 1.0 +DEAL::0 1 0 +DEAL::0 2 0 +DEAL::0 3 0 +DEAL::0 4 0 +DEAL::1 0 0 +DEAL::1 1 1.0 +DEAL::1 2 0 +DEAL::1 3 0 +DEAL::1 4 0 +DEAL::2 0 0 +DEAL::2 1 0 +DEAL::2 2 1.0 +DEAL::2 3 0 +DEAL::2 4 0 +DEAL::3 0 0 +DEAL::3 1 0 +DEAL::3 2 0 +DEAL::3 3 1.0 +DEAL::3 4 0 +DEAL::4 0 0 +DEAL::4 1 0 +DEAL::4 2 0 +DEAL::4 3 0 +DEAL::4 4 1.0 +DEAL::0 0 1.0 +DEAL::0 1 0.0 +DEAL::0 2 0.0 +DEAL::0 3 0.0 +DEAL::0 4 0.0 +DEAL::1 0 0.0 +DEAL::1 1 1.0 +DEAL::1 2 0.0 +DEAL::1 3 0.0 +DEAL::1 4 0.0 +DEAL::2 0 0.0 +DEAL::2 1 0.0 +DEAL::2 2 1.0 +DEAL::2 3 0.0 +DEAL::2 4 0.0 +DEAL::3 0 0.0 +DEAL::3 1 0.0 +DEAL::3 2 0.0 +DEAL::3 3 1.0 +DEAL::3 4 0.0 +DEAL::4 0 0.0 +DEAL::4 1 0.0 +DEAL::4 2 0.0 +DEAL::4 3 0.0 +DEAL::4 4 1.0 diff --git a/tests/bits/full_matrix_06.cc b/tests/bits/full_matrix_06.cc new file mode 100644 index 0000000000..7117657df6 --- /dev/null +++ b/tests/bits/full_matrix_06.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 matrix assignment + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_06/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + + FullMatrix n; + n = m; + + print_matrix (n); +} + diff --git a/tests/bits/full_matrix_06/cmp/generic b/tests/bits/full_matrix_06/cmp/generic new file mode 100644 index 0000000000..a2ec8ef473 --- /dev/null +++ b/tests/bits/full_matrix_06/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. diff --git a/tests/bits/full_matrix_07.cc b/tests/bits/full_matrix_07.cc new file mode 100644 index 0000000000..91b11c07e8 --- /dev/null +++ b/tests/bits/full_matrix_07.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 matrix=0 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_07/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + m = 0; + print_matrix (m); +} + diff --git a/tests/bits/full_matrix_07/cmp/generic b/tests/bits/full_matrix_07/cmp/generic new file mode 100644 index 0000000000..022c6f3aba --- /dev/null +++ b/tests/bits/full_matrix_07/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 0 +DEAL::0 1 0 +DEAL::0 2 0 +DEAL::0 3 0 +DEAL::0 4 0 +DEAL::1 0 0 +DEAL::1 1 0 +DEAL::1 2 0 +DEAL::1 3 0 +DEAL::1 4 0 +DEAL::2 0 0 +DEAL::2 1 0 +DEAL::2 2 0 +DEAL::2 3 0 +DEAL::2 4 0 +DEAL::3 0 0 +DEAL::3 1 0 +DEAL::3 2 0 +DEAL::3 3 0 +DEAL::3 4 0 +DEAL::4 0 0 +DEAL::4 1 0 +DEAL::4 2 0 +DEAL::4 3 0 +DEAL::4 4 0 +DEAL::0 0 0.0 +DEAL::0 1 0.0 +DEAL::0 2 0.0 +DEAL::0 3 0.0 +DEAL::0 4 0.0 +DEAL::1 0 0.0 +DEAL::1 1 0.0 +DEAL::1 2 0.0 +DEAL::1 3 0.0 +DEAL::1 4 0.0 +DEAL::2 0 0.0 +DEAL::2 1 0.0 +DEAL::2 2 0.0 +DEAL::2 3 0.0 +DEAL::2 4 0.0 +DEAL::3 0 0.0 +DEAL::3 1 0.0 +DEAL::3 2 0.0 +DEAL::3 3 0.0 +DEAL::3 4 0.0 +DEAL::4 0 0.0 +DEAL::4 1 0.0 +DEAL::4 2 0.0 +DEAL::4 3 0.0 +DEAL::4 4 0.0 diff --git a/tests/bits/full_matrix_08.cc b/tests/bits/full_matrix_08.cc new file mode 100644 index 0000000000..60e7be2181 --- /dev/null +++ b/tests/bits/full_matrix_08.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::copy_from + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_08/cmp/generic b/tests/bits/full_matrix_08/cmp/generic new file mode 100644 index 0000000000..a2ec8ef473 --- /dev/null +++ b/tests/bits/full_matrix_08/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. +DEAL::0 0 2.0 +DEAL::0 1 3.0 +DEAL::0 2 4.0 +DEAL::0 3 5.0 +DEAL::0 4 6.0 +DEAL::1 0 4.0 +DEAL::1 1 6.0 +DEAL::1 2 8.0 +DEAL::1 3 10. +DEAL::1 4 12. +DEAL::2 0 6.0 +DEAL::2 1 9.0 +DEAL::2 2 12. +DEAL::2 3 15. +DEAL::2 4 18. +DEAL::3 0 8.0 +DEAL::3 1 12. +DEAL::3 2 16. +DEAL::3 3 20. +DEAL::3 4 24. +DEAL::4 0 10. +DEAL::4 1 15. +DEAL::4 2 20. +DEAL::4 3 25. +DEAL::4 4 30. diff --git a/tests/bits/full_matrix_09.cc b/tests/bits/full_matrix_09.cc new file mode 100644 index 0000000000..763d13a138 --- /dev/null +++ b/tests/bits/full_matrix_09.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_09/output"; + + +template +void +check () +{ + FullMatrix m; + m = IdentityMatrix(5); + print_matrix (m); +} + diff --git a/tests/bits/full_matrix_09/cmp/generic b/tests/bits/full_matrix_09/cmp/generic new file mode 100644 index 0000000000..29c580fb2a --- /dev/null +++ b/tests/bits/full_matrix_09/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 1.0 +DEAL::0 1 0 +DEAL::0 2 0 +DEAL::0 3 0 +DEAL::0 4 0 +DEAL::1 0 0 +DEAL::1 1 1.0 +DEAL::1 2 0 +DEAL::1 3 0 +DEAL::1 4 0 +DEAL::2 0 0 +DEAL::2 1 0 +DEAL::2 2 1.0 +DEAL::2 3 0 +DEAL::2 4 0 +DEAL::3 0 0 +DEAL::3 1 0 +DEAL::3 2 0 +DEAL::3 3 1.0 +DEAL::3 4 0 +DEAL::4 0 0 +DEAL::4 1 0 +DEAL::4 2 0 +DEAL::4 3 0 +DEAL::4 4 1.0 +DEAL::0 0 1.0 +DEAL::0 1 0.0 +DEAL::0 2 0.0 +DEAL::0 3 0.0 +DEAL::0 4 0.0 +DEAL::1 0 0.0 +DEAL::1 1 1.0 +DEAL::1 2 0.0 +DEAL::1 3 0.0 +DEAL::1 4 0.0 +DEAL::2 0 0.0 +DEAL::2 1 0.0 +DEAL::2 2 1.0 +DEAL::2 3 0.0 +DEAL::2 4 0.0 +DEAL::3 0 0.0 +DEAL::3 1 0.0 +DEAL::3 2 0.0 +DEAL::3 3 1.0 +DEAL::3 4 0.0 +DEAL::4 0 0.0 +DEAL::4 1 0.0 +DEAL::4 2 0.0 +DEAL::4 3 0.0 +DEAL::4 4 1.0 diff --git a/tests/bits/full_matrix_10.cc b/tests/bits/full_matrix_10.cc new file mode 100644 index 0000000000..f6d6c88060 --- /dev/null +++ b/tests/bits/full_matrix_10.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::fill + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_10/cmp/generic b/tests/bits/full_matrix_10/cmp/generic new file mode 100644 index 0000000000..dc1deb7b34 --- /dev/null +++ b/tests/bits/full_matrix_10/cmp/generic @@ -0,0 +1,201 @@ + +DEAL::0 0 0 +DEAL::0 1 0 +DEAL::0 2 0 +DEAL::0 3 0 +DEAL::0 4 0 +DEAL::0 5 0 +DEAL::0 6 0 +DEAL::0 7 0 +DEAL::0 8 0 +DEAL::0 9 0 +DEAL::1 0 0 +DEAL::1 1 0 +DEAL::1 2 0 +DEAL::1 3 0 +DEAL::1 4 0 +DEAL::1 5 0 +DEAL::1 6 0 +DEAL::1 7 0 +DEAL::1 8 0 +DEAL::1 9 0 +DEAL::2 0 0 +DEAL::2 1 0 +DEAL::2 2 0 +DEAL::2 3 0 +DEAL::2 4 0 +DEAL::2 5 0 +DEAL::2 6 0 +DEAL::2 7 0 +DEAL::2 8 0 +DEAL::2 9 0 +DEAL::3 0 0 +DEAL::3 1 0 +DEAL::3 2 0 +DEAL::3 3 0 +DEAL::3 4 2.0 +DEAL::3 5 3.0 +DEAL::3 6 4.0 +DEAL::3 7 5.0 +DEAL::3 8 6.0 +DEAL::3 9 0 +DEAL::4 0 0 +DEAL::4 1 0 +DEAL::4 2 0 +DEAL::4 3 0 +DEAL::4 4 4.0 +DEAL::4 5 6.0 +DEAL::4 6 8.0 +DEAL::4 7 10. +DEAL::4 8 12. +DEAL::4 9 0 +DEAL::5 0 0 +DEAL::5 1 0 +DEAL::5 2 0 +DEAL::5 3 0 +DEAL::5 4 6.0 +DEAL::5 5 9.0 +DEAL::5 6 12. +DEAL::5 7 15. +DEAL::5 8 18. +DEAL::5 9 0 +DEAL::6 0 0 +DEAL::6 1 0 +DEAL::6 2 0 +DEAL::6 3 0 +DEAL::6 4 8.0 +DEAL::6 5 12. +DEAL::6 6 16. +DEAL::6 7 20. +DEAL::6 8 24. +DEAL::6 9 0 +DEAL::7 0 0 +DEAL::7 1 0 +DEAL::7 2 0 +DEAL::7 3 0 +DEAL::7 4 10. +DEAL::7 5 15. +DEAL::7 6 20. +DEAL::7 7 25. +DEAL::7 8 30. +DEAL::7 9 0 +DEAL::8 0 0 +DEAL::8 1 0 +DEAL::8 2 0 +DEAL::8 3 0 +DEAL::8 4 0 +DEAL::8 5 0 +DEAL::8 6 0 +DEAL::8 7 0 +DEAL::8 8 0 +DEAL::8 9 0 +DEAL::9 0 0 +DEAL::9 1 0 +DEAL::9 2 0 +DEAL::9 3 0 +DEAL::9 4 0 +DEAL::9 5 0 +DEAL::9 6 0 +DEAL::9 7 0 +DEAL::9 8 0 +DEAL::9 9 0 +DEAL::0 0 0.0 +DEAL::0 1 0.0 +DEAL::0 2 0.0 +DEAL::0 3 0.0 +DEAL::0 4 0.0 +DEAL::0 5 0.0 +DEAL::0 6 0.0 +DEAL::0 7 0.0 +DEAL::0 8 0.0 +DEAL::0 9 0.0 +DEAL::1 0 0.0 +DEAL::1 1 0.0 +DEAL::1 2 0.0 +DEAL::1 3 0.0 +DEAL::1 4 0.0 +DEAL::1 5 0.0 +DEAL::1 6 0.0 +DEAL::1 7 0.0 +DEAL::1 8 0.0 +DEAL::1 9 0.0 +DEAL::2 0 0.0 +DEAL::2 1 0.0 +DEAL::2 2 0.0 +DEAL::2 3 0.0 +DEAL::2 4 0.0 +DEAL::2 5 0.0 +DEAL::2 6 0.0 +DEAL::2 7 0.0 +DEAL::2 8 0.0 +DEAL::2 9 0.0 +DEAL::3 0 0.0 +DEAL::3 1 0.0 +DEAL::3 2 0.0 +DEAL::3 3 0.0 +DEAL::3 4 2.0 +DEAL::3 5 3.0 +DEAL::3 6 4.0 +DEAL::3 7 5.0 +DEAL::3 8 6.0 +DEAL::3 9 0.0 +DEAL::4 0 0.0 +DEAL::4 1 0.0 +DEAL::4 2 0.0 +DEAL::4 3 0.0 +DEAL::4 4 4.0 +DEAL::4 5 6.0 +DEAL::4 6 8.0 +DEAL::4 7 10. +DEAL::4 8 12. +DEAL::4 9 0.0 +DEAL::5 0 0.0 +DEAL::5 1 0.0 +DEAL::5 2 0.0 +DEAL::5 3 0.0 +DEAL::5 4 6.0 +DEAL::5 5 9.0 +DEAL::5 6 12. +DEAL::5 7 15. +DEAL::5 8 18. +DEAL::5 9 0.0 +DEAL::6 0 0.0 +DEAL::6 1 0.0 +DEAL::6 2 0.0 +DEAL::6 3 0.0 +DEAL::6 4 8.0 +DEAL::6 5 12. +DEAL::6 6 16. +DEAL::6 7 20. +DEAL::6 8 24. +DEAL::6 9 0.0 +DEAL::7 0 0.0 +DEAL::7 1 0.0 +DEAL::7 2 0.0 +DEAL::7 3 0.0 +DEAL::7 4 10. +DEAL::7 5 15. +DEAL::7 6 20. +DEAL::7 7 25. +DEAL::7 8 30. +DEAL::7 9 0.0 +DEAL::8 0 0.0 +DEAL::8 1 0.0 +DEAL::8 2 0.0 +DEAL::8 3 0.0 +DEAL::8 4 0.0 +DEAL::8 5 0.0 +DEAL::8 6 0.0 +DEAL::8 7 0.0 +DEAL::8 8 0.0 +DEAL::8 9 0.0 +DEAL::9 0 0.0 +DEAL::9 1 0.0 +DEAL::9 2 0.0 +DEAL::9 3 0.0 +DEAL::9 4 0.0 +DEAL::9 5 0.0 +DEAL::9 6 0.0 +DEAL::9 7 0.0 +DEAL::9 8 0.0 +DEAL::9 9 0.0 diff --git a/tests/bits/full_matrix_11.cc b/tests/bits/full_matrix_11.cc new file mode 100644 index 0000000000..bf719e0c25 --- /dev/null +++ b/tests/bits/full_matrix_11.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 and output of a matrix + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_11/cmp/generic b/tests/bits/full_matrix_11/cmp/generic new file mode 100644 index 0000000000..e46c0ac61e --- /dev/null +++ b/tests/bits/full_matrix_11/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::1 +DEAL::1 diff --git a/tests/bits/full_matrix_12.cc b/tests/bits/full_matrix_12.cc new file mode 100644 index 0000000000..ff788055c5 --- /dev/null +++ b/tests/bits/full_matrix_12.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::all_zero + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_12/cmp/generic b/tests/bits/full_matrix_12/cmp/generic new file mode 100644 index 0000000000..de01f2c730 --- /dev/null +++ b/tests/bits/full_matrix_12/cmp/generic @@ -0,0 +1,5 @@ + +DEAL::1 +DEAL::0 +DEAL::1 +DEAL::0 diff --git a/tests/bits/full_matrix_13.cc b/tests/bits/full_matrix_13.cc new file mode 100644 index 0000000000..b6a7b59fb4 --- /dev/null +++ b/tests/bits/full_matrix_13.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::matrix_norm_square + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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/full_matrix_13/cmp/generic b/tests/bits/full_matrix_13/cmp/generic new file mode 100644 index 0000000000..6293fc5065 --- /dev/null +++ b/tests/bits/full_matrix_13/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::3.8e+03 +DEAL::3.8e+03 diff --git a/tests/bits/full_matrix_14.cc b/tests/bits/full_matrix_14.cc new file mode 100644 index 0000000000..24569a620a --- /dev/null +++ b/tests/bits/full_matrix_14.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::matrix_scalar_product + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "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 +void +check () +{ + FullMatrix m; + make_matrix (m); + deallog << m.l1_norm() << std::endl; +} + diff --git a/tests/bits/full_matrix_15/cmp/generic b/tests/bits/full_matrix_15/cmp/generic new file mode 100644 index 0000000000..5219ffb481 --- /dev/null +++ b/tests/bits/full_matrix_15/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::90. +DEAL::90. diff --git a/tests/bits/full_matrix_16.cc b/tests/bits/full_matrix_16.cc new file mode 100644 index 0000000000..aebb1b3a2d --- /dev/null +++ b/tests/bits/full_matrix_16.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_16/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + deallog << m.linfty_norm() << std::endl; +} + diff --git a/tests/bits/full_matrix_16/cmp/generic b/tests/bits/full_matrix_16/cmp/generic new file mode 100644 index 0000000000..bf7e83ec97 --- /dev/null +++ b/tests/bits/full_matrix_16/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::1.0e+02 +DEAL::1.0e+02 diff --git a/tests/bits/full_matrix_17.cc b/tests/bits/full_matrix_17.cc new file mode 100644 index 0000000000..b99ddbf75f --- /dev/null +++ b/tests/bits/full_matrix_17.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_17/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + deallog << m.frobenius_norm() << std::endl; +} + diff --git a/tests/bits/full_matrix_17/cmp/generic b/tests/bits/full_matrix_17/cmp/generic new file mode 100644 index 0000000000..d106e772eb --- /dev/null +++ b/tests/bits/full_matrix_17/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::70. +DEAL::70. diff --git a/tests/bits/full_matrix_18.cc b/tests/bits/full_matrix_18.cc new file mode 100644 index 0000000000..0a8f1755a6 --- /dev/null +++ b/tests/bits/full_matrix_18.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_18/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + deallog << m.relative_symmetry_norm2() << std::endl; +} + diff --git a/tests/bits/full_matrix_18/cmp/generic b/tests/bits/full_matrix_18/cmp/generic new file mode 100644 index 0000000000..7a5d74ce5f --- /dev/null +++ b/tests/bits/full_matrix_18/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::0.14 +DEAL::0.14 diff --git a/tests/bits/full_matrix_19.cc b/tests/bits/full_matrix_19.cc new file mode 100644 index 0000000000..28fa88836e --- /dev/null +++ b/tests/bits/full_matrix_19.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::determinant + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_19/output"; + + +template +void +check () +{ + for (unsigned int n=1; n<=3; ++n) + { + const number 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/full_matrix_19/cmp/generic b/tests/bits/full_matrix_19/cmp/generic new file mode 100644 index 0000000000..553cdb6803 --- /dev/null +++ b/tests/bits/full_matrix_19/cmp/generic @@ -0,0 +1,35 @@ + +DEAL::0 0 1.0 +DEAL::1.0 +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::1 0 3.0 +DEAL::1 1 4.0 +DEAL::-2.0 +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::0 2 3.0 +DEAL::1 0 4.0 +DEAL::1 1 5.0 +DEAL::1 2 6.0 +DEAL::2 0 7.0 +DEAL::2 1 8.0 +DEAL::2 2 9.0 +DEAL::0 +DEAL::0 0 1.0 +DEAL::1.0 +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::1 0 3.0 +DEAL::1 1 4.0 +DEAL::-2.0 +DEAL::0 0 1.0 +DEAL::0 1 2.0 +DEAL::0 2 3.0 +DEAL::1 0 4.0 +DEAL::1 1 5.0 +DEAL::1 2 6.0 +DEAL::2 0 7.0 +DEAL::2 1 8.0 +DEAL::2 2 9.0 +DEAL::0.0 diff --git a/tests/bits/full_matrix_20.cc b/tests/bits/full_matrix_20.cc new file mode 100644 index 0000000000..77fc7eeaad --- /dev/null +++ b/tests/bits/full_matrix_20.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_20/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + deallog << m.trace() << std::endl; +} + diff --git a/tests/bits/full_matrix_20/cmp/generic b/tests/bits/full_matrix_20/cmp/generic new file mode 100644 index 0000000000..d106e772eb --- /dev/null +++ b/tests/bits/full_matrix_20/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::70. +DEAL::70. diff --git a/tests/bits/full_matrix_21.cc b/tests/bits/full_matrix_21.cc new file mode 100644 index 0000000000..c635af8d0a --- /dev/null +++ b/tests/bits/full_matrix_21.cc @@ -0,0 +1,33 @@ +//---------------------------------------------------------------------- +// $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 + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_21/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + m.print (deallog.get_file_stream()); +} + diff --git a/tests/bits/full_matrix_21/cmp/generic b/tests/bits/full_matrix_21/cmp/generic new file mode 100644 index 0000000000..e6da357911 --- /dev/null +++ b/tests/bits/full_matrix_21/cmp/generic @@ -0,0 +1,11 @@ + +2.0 3.0 4.0 5.0 6.0 +4.0 6.0 8.0 10. 12. +6.0 9.0 12. 15. 18. +8.0 12. 16. 20. 24. +10. 15. 20. 25. 30. +2.0 3.0 4.0 5.0 6.0 +4.0 6.0 8.0 10. 12. +6.0 9.0 12. 15. 18. +8.0 12. 16. 20. 24. +10. 15. 20. 25. 30. diff --git a/tests/bits/full_matrix_22.cc b/tests/bits/full_matrix_22.cc new file mode 100644 index 0000000000..360282a538 --- /dev/null +++ b/tests/bits/full_matrix_22.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 FullMatrix::operator*= + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_22/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + m *= 3.1415; + print_matrix (m); +} + diff --git a/tests/bits/full_matrix_22/cmp/generic b/tests/bits/full_matrix_22/cmp/generic new file mode 100644 index 0000000000..f94e065a5b --- /dev/null +++ b/tests/bits/full_matrix_22/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 6.3 +DEAL::0 1 9.4 +DEAL::0 2 13. +DEAL::0 3 16. +DEAL::0 4 19. +DEAL::1 0 13. +DEAL::1 1 19. +DEAL::1 2 25. +DEAL::1 3 31. +DEAL::1 4 38. +DEAL::2 0 19. +DEAL::2 1 28. +DEAL::2 2 38. +DEAL::2 3 47. +DEAL::2 4 57. +DEAL::3 0 25. +DEAL::3 1 38. +DEAL::3 2 50. +DEAL::3 3 63. +DEAL::3 4 75. +DEAL::4 0 31. +DEAL::4 1 47. +DEAL::4 2 63. +DEAL::4 3 79. +DEAL::4 4 94. +DEAL::0 0 6.3 +DEAL::0 1 9.4 +DEAL::0 2 13. +DEAL::0 3 16. +DEAL::0 4 19. +DEAL::1 0 13. +DEAL::1 1 19. +DEAL::1 2 25. +DEAL::1 3 31. +DEAL::1 4 38. +DEAL::2 0 19. +DEAL::2 1 28. +DEAL::2 2 38. +DEAL::2 3 47. +DEAL::2 4 57. +DEAL::3 0 25. +DEAL::3 1 38. +DEAL::3 2 50. +DEAL::3 3 63. +DEAL::3 4 75. +DEAL::4 0 31. +DEAL::4 1 47. +DEAL::4 2 63. +DEAL::4 3 79. +DEAL::4 4 94. diff --git a/tests/bits/full_matrix_23.cc b/tests/bits/full_matrix_23.cc new file mode 100644 index 0000000000..e7ecf75bda --- /dev/null +++ b/tests/bits/full_matrix_23.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 FullMatrix::operator/= + + +#include "../tests.h" +#include "full_matrix_common.h" + + +std::string output_file_name = "full_matrix_23/output"; + + +template +void +check () +{ + FullMatrix m; + make_matrix (m); + m /= 3.1415926; + print_matrix (m); +} + diff --git a/tests/bits/full_matrix_23/cmp/generic b/tests/bits/full_matrix_23/cmp/generic new file mode 100644 index 0000000000..5e543a6f91 --- /dev/null +++ b/tests/bits/full_matrix_23/cmp/generic @@ -0,0 +1,51 @@ + +DEAL::0 0 0.64 +DEAL::0 1 0.95 +DEAL::0 2 1.3 +DEAL::0 3 1.6 +DEAL::0 4 1.9 +DEAL::1 0 1.3 +DEAL::1 1 1.9 +DEAL::1 2 2.5 +DEAL::1 3 3.2 +DEAL::1 4 3.8 +DEAL::2 0 1.9 +DEAL::2 1 2.9 +DEAL::2 2 3.8 +DEAL::2 3 4.8 +DEAL::2 4 5.7 +DEAL::3 0 2.5 +DEAL::3 1 3.8 +DEAL::3 2 5.1 +DEAL::3 3 6.4 +DEAL::3 4 7.6 +DEAL::4 0 3.2 +DEAL::4 1 4.8 +DEAL::4 2 6.4 +DEAL::4 3 8.0 +DEAL::4 4 9.5 +DEAL::0 0 0.64 +DEAL::0 1 0.95 +DEAL::0 2 1.3 +DEAL::0 3 1.6 +DEAL::0 4 1.9 +DEAL::1 0 1.3 +DEAL::1 1 1.9 +DEAL::1 2 2.5 +DEAL::1 3 3.2 +DEAL::1 4 3.8 +DEAL::2 0 1.9 +DEAL::2 1 2.9 +DEAL::2 2 3.8 +DEAL::2 3 4.8 +DEAL::2 4 5.7 +DEAL::3 0 2.5 +DEAL::3 1 3.8 +DEAL::3 2 5.1 +DEAL::3 3 6.4 +DEAL::3 4 7.6 +DEAL::4 0 3.2 +DEAL::4 1 4.8 +DEAL::4 2 6.4 +DEAL::4 3 8.0 +DEAL::4 4 9.5 -- 2.39.5