Loading...
Searching...
No Matches
polyset.h
// Copyright (c) 2020 Chris Richardson & Matthew Scroggs
// FEniCS Project
// SPDX-License-Identifier: MIT
#pragma once
#include "cell.h"
#include "mdspan.hpp"
#include "types.h"
#include <array>
#include <concepts>
#include <utility>
#include <vector>
namespace basix::polyset
{
enum class type
{
standard = 0,
macroedge = 1,
};
template <std::floating_point T>
std::pair<std::vector<T>, std::array<std::size_t, 3>>
tabulate(cell::type celltype, polyset::type ptype, int d, int n,
md::mdspan<const T, md::dextents<std::size_t, 2>> x);
template <std::floating_point T>
void tabulate(md::mdspan<T, md::dextents<std::size_t, 3>> P,
cell::type celltype, polyset::type ptype, int d, int n,
md::mdspan<const T, md::dextents<std::size_t, 2>> x);
int dim(cell::type cell, polyset::type ptype, int d);
int nderivs(cell::type cell, int d);
polyset::type superset(cell::type cell, polyset::type type1,
polyset::type type2);
polyset::type restriction(polyset::type ptype, cell::type cell,
cell::type restriction_cell);
} // namespace basix::polyset
basix::cell
Information about reference cells.
Definition cell.h:17
basix::cell::type
type
Cell type.
Definition cell.h:21
basix::polyset
Polynomial expansion sets.
Definition polyset.h:133
basix::polyset::type
type
Cell type.
Definition polyset.h:137
basix::polyset::dim
int dim(cell::type cell, polyset::type ptype, int d)
Dimension of a polynomial space.
Definition polyset.cpp:3002
basix::polyset::nderivs
int nderivs(cell::type cell, int d)
Number of derivatives that the orthonormal basis will have on the given cell.
Definition polyset.cpp:3051
basix::polyset::tabulate
std::pair< std::vector< T >, std::array< std::size_t, 3 > > tabulate(cell::type celltype, polyset::type ptype, int d, int n, md::mdspan< const T, md::dextents< std::size_t, 2 > > x)
Tabulate the orthonormal polynomial basis, and derivatives, at points on the reference cell.
Definition polyset.cpp:2981
basix::polyset::superset
polyset::type superset(cell::type cell, polyset::type type1, polyset::type type2)
Get the polyset types that is a superset of two types on the given cell.
Definition polyset.cpp:3076
basix::polyset::restriction
polyset::type restriction(polyset::type ptype, cell::type cell, cell::type restriction_cell)
Get the polyset type that represents the restrictions of a type on a subentity.
Definition polyset.cpp:3088