Basix
polyset.h
1// Copyright (c) 2020 Chris Richardson & Matthew Scroggs
2// FEniCS Project
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
7#include "cell.h"
8#include "mdspan.hpp"
9#include <array>
10#include <utility>
11#include <vector>
12
14
126{
164std::pair<std::vector<double>, std::array<std::size_t, 3>>
165tabulate(cell::type celltype, int d, int n,
166 std::experimental::mdspan<const double,
167 std::experimental::dextents<std::size_t, 2>>
168 x);
169
210void tabulate(
211 std::experimental::mdspan<double,
212 std::experimental::dextents<std::size_t, 3>>
213 P,
214 cell::type celltype, int d, int n,
215 std::experimental::mdspan<const double,
216 std::experimental::dextents<std::size_t, 2>>
217 x);
218
224int dim(cell::type cell, int d);
225
231int nderivs(cell::type cell, int d);
232
233} // namespace basix::polyset
type
Cell type.
Definition: cell.h:20
Polynomial expansion sets.
Definition: polyset.h:126
int nderivs(cell::type cell, int d)
Definition: polyset.cpp:1527
int dim(cell::type cell, int d)
Definition: polyset.cpp:1502
std::pair< std::vector< double >, std::array< std::size_t, 3 > > tabulate(cell::type celltype, int d, int n, std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 2 > > x)
Tabulate the orthonormal polynomial basis, and derivatives, at points on the reference cell.
Definition: polyset.cpp:1487