9#include <xtensor/core/xtensor_forward.hpp>
11#include "oiseau/dg/nodal/ref_element.hpp"
13namespace oiseau::dg::nodal {
37 explicit RefLine(
unsigned order);
45 static xt::xarray<double>
basis_function(
const xt::xarray<double>& r,
int i);
62 xt::xarray<double> vandermonde(
const xt::xarray<double>& r)
const;
69 xt::xarray<double> grad_vandermonde(
const xt::xarray<double>& r)
const;
77 xt::xarray<double> grad_operator(
const xt::xarray<double>& v,
const xt::xarray<double>& gv)
const;
91xt::xarray<double> generate_line_nodes(
unsigned order);
static xt::xarray< double > basis_function(const xt::xarray< double > &r, int i)
Evaluates the i-th Lagrange basis function at the given reference points.
Definition ref_line.cpp:33
static xt::xarray< double > grad_basis_function(const xt::xarray< double > &r, int i)
Evaluates the gradient of the i-th Lagrange basis function at the given reference points.
Definition ref_line.cpp:37
RefLine(unsigned order)
Constructs a RefLine element of the given polynomial order.
Definition ref_line.cpp:24