deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
polynomials_bernstein.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2015 - 2025 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_polynomials_bernstein_h
14#define dealii_polynomials_bernstein_h
15
16
17#include <deal.II/base/config.h>
18
20
21#include <fstream>
22#include <iostream>
23
24
26
37template <typename number>
39{
40public:
59 PolynomialsBernstein(const unsigned int index, const unsigned int degree);
60};
61
62
63template <typename number>
64std::vector<Polynomials::Polynomial<number>>
65generate_complete_bernstein_basis(const unsigned int degree)
66{
67 std::vector<Polynomials::Polynomial<number>> v;
68 v.reserve(degree + 1);
69 for (unsigned int i = 0; i < degree + 1; ++i)
70 v.push_back(PolynomialsBernstein<number>(i, degree));
71 return v;
72}
73
75
76#endif
unsigned int degree() const
Definition polynomial.h:918
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::vector< Polynomials::Polynomial< number > > generate_complete_bernstein_basis(const unsigned int degree)