From 77ee4f9b57db66b73efc279780849a536c116044 Mon Sep 17 00:00:00 2001 From: "Toby D. Young" Date: Thu, 10 Apr 2014 09:07:37 +0000 Subject: [PATCH] Chexk reinit() and m() and n() do not break. git-svn-id: https://svn.dealii.org/trunk@32755 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lapack/full_matrix_00.cc | 113 +++++++++++++++++++++++++++++ tests/lapack/full_matrix_00.output | 7 ++ 2 files changed, 120 insertions(+) create mode 100644 tests/lapack/full_matrix_00.cc create mode 100644 tests/lapack/full_matrix_00.output diff --git a/tests/lapack/full_matrix_00.cc b/tests/lapack/full_matrix_00.cc new file mode 100644 index 0000000000..ed28930476 --- /dev/null +++ b/tests/lapack/full_matrix_00.cc @@ -0,0 +1,113 @@ +// --------------------------------------------------------------------- +// $Id: full_matrix_00.cc $ +// +// Copyright (C) 2014 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// Tests reinitialisation of square and rectangle LAPACKFullMatrix + +#include "../tests.h" +#include +#include + +#include +#include + + +void test (const unsigned int size, + const bool reinit_square) +{ + // this test can not currently work with matrices smaller than + // 1\times2. + Assert (size>2, ExcInternalError()); + + // initialise a first matrix with the standard constructor and fill + // it with some numbers + LAPACKFullMatrix M (size, size); + + for (unsigned int i=0; i N (size+2, size-2); + + for (unsigned int i=0; i