From a82554a9a802e8ca7a10367bbf4e533c25fe89db Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 9 Feb 2018 18:48:29 +0100 Subject: [PATCH] Add test. --- tests/base/polynomial_hermite_like.cc | 56 +++++++++++++++++++ ...omial_hermite_like.with_lapack=true.output | 24 ++++++++ 2 files changed, 80 insertions(+) create mode 100644 tests/base/polynomial_hermite_like.cc create mode 100644 tests/base/polynomial_hermite_like.with_lapack=true.output diff --git a/tests/base/polynomial_hermite_like.cc b/tests/base/polynomial_hermite_like.cc new file mode 100644 index 0000000000..a547bc58dd --- /dev/null +++ b/tests/base/polynomial_hermite_like.cc @@ -0,0 +1,56 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2018 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. +// +// --------------------------------------------------------------------- + + +#include "../tests.h" + +#include + +using namespace Polynomials; + +void plot(const std::vector > &polynomials) +{ + LogStream::Prefix("plot"); + const unsigned int n=8; + for (unsigned int i=0; i<=n; ++i) + { + const double x = 1.*i/n; + deallog << x; + for (unsigned int p=0; p > &polynomials) +{ + std::vector values(2); + for (unsigned int i=0; i