KASKADE 7 development version
bsplines.hh
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the library KASKADE 7 */
4/* https://www.zib.de/research/projects/kaskade7-finite-element-toolbox */
5/* */
6/* Copyright (C) 2012-2012 Zuse Institute Berlin */
7/* */
8/* KASKADE 7 is distributed under the terms of the ZIB Academic License. */
9/* see $KASKADE/academic.txt */
10/* */
11/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12
13#ifndef BSPLINES_HH
14#define BSPLINES_HH
15
16#include "dune/common/dynmatrix.hh"
17#include "dune/common/dynvector.hh"
18
19namespace Kaskade {
20
37 template <class Scalar>
38 void bsplineDifferentiationMatrix(Dune::DynamicVector<Scalar> const& t, Dune::DynamicVector<Scalar> const& s, int p,
39 Dune::DynamicMatrix<Scalar>& d);
40
56 template <class Scalar>
57 void bsplineEvaluationMatrix(Dune::DynamicVector<Scalar> const& t, Dune::DynamicVector<Scalar> const& s, int p,
58 Dune::DynamicMatrix<Scalar>& e);
59}
60
61#endif
62
void bsplineEvaluationMatrix(Dune::DynamicVector< Scalar > const &t, Dune::DynamicVector< Scalar > const &s, int p, Dune::DynamicMatrix< Scalar > &e)
computes the evaluation on s matrix for bspline interpolation of order p on t
void bsplineDifferentiationMatrix(Dune::DynamicVector< Scalar > const &t, Dune::DynamicVector< Scalar > const &s, int p, Dune::DynamicMatrix< Scalar > &d)
computes the differentiation matrix for bspline interpolation of order p on t