Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
ndpolynomial.hpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
//
3
// Copyright (C) 2024 - 2025 by the Vulpes authors.
4
// This file is part of Vulpes.
5
//
6
// Vulpes is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// Vulpes is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with Vulpes. If not, see <http://www.gnu.org/licenses/>.
18
//
19
// ----------------------------------------------------------------------
20
21
// Author: Matteo Caldana <matteo.caldana@polimi.it>
22
23
#ifndef VULPES_POLYNOMIALS_NDPOLYNOMIAL_HPP_
24
#define VULPES_POLYNOMIALS_NDPOLYNOMIAL_HPP_
25
26
#include "
vulpes/polynomials/polynomial1d.hpp
"
27
#include "
vulpes/polynomials/polynomial2d.hpp
"
28
#include "
vulpes/polynomials/polynomial3d.hpp
"
29
30
namespace
vulpes
{
31
namespace
polynomial
{
32
36
template
<
37
typename
T,
38
std::size_t Dim,
39
bool
IsSpaceP =
true
,
40
typename
= std::enable_if_t<(Dim < 4)>>
41
using
NdPolynomial
= std::conditional_t<
42
Dim == 1,
43
Polynomial<T>
,
44
std::conditional_t<
45
Dim == 2,
46
Polynomial2D<T, IsSpaceP>
,
47
Polynomial3D<T, IsSpaceP>
>>;
48
49
}
// namespace polynomial
50
}
// namespace vulpes
51
52
#endif
// VULPES_POLYNOMIALS_NDPOLYNOMIAL_HPP_
vulpes::polynomial::Polynomial2D
Template class to represent and operate on polynomials in 2D.
Definition
polynomial2d.hpp:53
vulpes::polynomial::Polynomial3D
Template class to represent and operate on polynomials in 3D.
Definition
polynomial3d.hpp:52
vulpes::polynomial::Polynomial
Template class to represent and operate on polynomials.
Definition
polynomial1d.hpp:44
vulpes::polynomial
Definition
monomial.hpp:39
vulpes::polynomial::NdPolynomial
std::conditional_t< Dim==1, Polynomial< T >, std::conditional_t< Dim==2, Polynomial2D< T, IsSpaceP >, Polynomial3D< T, IsSpaceP > > > NdPolynomial
wrapper for dense polynomials in 1D, 2D and 3D
Definition
ndpolynomial.hpp:41
vulpes
Definition
cell_manager.hpp:38
polynomial1d.hpp
polynomial2d.hpp
polynomial3d.hpp
vulpes
polynomials
ndpolynomial.hpp
Generated on
for Vulpes by
1.15.0