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
People of FEniCS
Roadmap 2021-
FEniCS 2022
Download
Documentation
Community
Governance
Citing
Donate
Basix 0.4.0
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/xarray.hpp>
9
#include <xtensor/xtensor.hpp>
10
12
namespace
basix::polynomials
13
{
15
enum class
type
16
{
17
legendre = 0,
18
};
19
29
xt::xtensor<double, 2>
tabulate
(
polynomials::type
polytype,
cell::type
celltype,
30
int
d,
const
xt::xarray<double>& x);
31
38
int
dim
(
polynomials::type
polytype,
cell::type
cell,
int
d);
39
40
}
// namespace basix::polynomials
basix::polynomials
Polynomials.
Definition:
polynomials.h:12
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::xarray< double > &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:15
basix::polynomials::dim
int dim(polynomials::type polytype, cell::type cell, int d)
Definition:
polynomials.cpp:26