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
29
30namespace vulpes {
31namespace polynomial {
32
36template <
37 typename T,
38 std::size_t Dim,
39 bool IsSpaceP = true,
40 typename = std::enable_if_t<(Dim < 4)>>
41using NdPolynomial = std::conditional_t<
42 Dim == 1,
44 std::conditional_t<
45 Dim == 2,
48
49} // namespace polynomial
50} // namespace vulpes
51
52#endif // VULPES_POLYNOMIALS_NDPOLYNOMIAL_HPP_
Template class to represent and operate on polynomials in 2D.
Definition polynomial2d.hpp:53
Template class to represent and operate on polynomials in 3D.
Definition polynomial3d.hpp:52
Template class to represent and operate on polynomials.
Definition polynomial1d.hpp:44
Definition monomial.hpp:39
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
Definition cell_manager.hpp:38