Note: this is documentation for an old release. View the latest documentation at
docs.fenicsproject.org/basix/v0.9.0/cpp/polynomials_8h_source.html
FEniCS 2022
Download
Documentation
Community
Citing
Donate
Basix 0.4.1
Home
Installation
Demos
C++ docs
Python docs
cpp
basix
polynomials.h
1
// Copyright (c) 2021 Matthew Scroggs
2
// FEniCS Project
3
// SPDX-License-Identifier: MIT
4
5
#pragma once
6
7
#include "cell.h"
8
#include <xtensor/xtensor.hpp>
9
11
namespace
basix::polynomials
12
{
14
enum class
type
15
{
16
legendre = 0,
17
};
18
28
xt::xtensor<double, 2>
tabulate
(
polynomials::type
polytype,
cell::type
celltype,
29
int
d,
const
xt::xtensor<double, 2>& x);
30
37
int
dim
(
polynomials::type
polytype,
cell::type
cell,
int
d);
38
39
}
// namespace basix::polynomials
basix::polynomials
Polynomials.
Definition:
polynomials.h:11
basix::cell::type
type
Cell type.
Definition:
cell.h:18
basix::polynomials::tabulate
xt::xtensor< double, 2 > tabulate(polynomials::type polytype, cell::type celltype, int d, const xt::xtensor< double, 2 > &x)
Definition:
polynomials.cpp:12
basix::polynomials::type
type
An enum defining the variants of a Lagrange space that can be created.
Definition:
polynomials.h:14
basix::polynomials::dim
int dim(polynomials::type polytype, cell::type cell, int d)
Definition:
polynomials.cpp:26