From: young Date: Thu, 10 Apr 2014 09:07:37 +0000 (+0000) Subject: Chexk reinit() and m() and n() do not break. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe7dff10cc2e4e471067664ab7fa070a5607c91;p=dealii-svn.git Chexk reinit() and m() and n() do not break. git-svn-id: https://svn.dealii.org/trunk@32755 0785d39b-7218-0410-832d-ea1e28bc413d --- 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