Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Namespaces | Functions
polynomials.hpp File Reference

Definitions of 1D quadrature weights and node locations and polynomial basis functions. More...

#include "tensor.hpp"
#include "geometry.hpp"
Include dependency graph for polynomials.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 smith
 Accelerator functionality.
 

Functions

template<int n, typename T = double>
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::GaussLobattoNodes (T a=T(0), T b=T(1))
 The positions (in 1D space) of Gauss-Lobatto points. More...
 
template<int n, mfem::Geometry::Type geom>
constexpr SMITH_HOST_DEVICE auto smith::GaussLegendreNodes ()
 The positions of Gauss-Legendre points for different geometries. More...
 
template<int n, mfem::Geometry::Type geom>
constexpr SMITH_HOST_DEVICE auto smith::GaussLegendreWeights ()
 The weights associated with each Gauss-Legendre point. More...
 
constexpr SMITH_HOST_DEVICE int smith::factorial (int n)
 compute n! More...
 
template<int n, typename T >
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::powers (T x)
 compute the first n powers of x More...
 
template<int n, typename S >
constexpr SMITH_HOST_DEVICE tensor< S, n > smith::ChebyshevT (S x)
 Chebyshev polynomials of the first kind Satisfying: T_n(cos(t)) == cos(n*t) More...
 
template<int n, typename T >
SMITH_HOST_DEVICE tensor< T, n > smith::ChebyshevU (T x)
 Chebyshev polynomials of the second kind Satisfying: sin(t) U_n(cos(t)) == sin((n+1)*t) More...
 
template<int n, typename T >
SMITH_HOST_DEVICE tensor< T, n > smith::Legendre (T x)
 Legendre Polynomials, orthogonal on the domain (-1, 1) with unit weight function. More...
 
template<int n, typename T >
SMITH_HOST_DEVICE tensor< T, n > smith::Bernstein (T s)
 Bernstein Polynomials on the domain [0, 1]. More...
 
template<int n, typename T >
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::GaussLobattoInterpolation ([[maybe_unused]] T x)
 Lagrange Interpolating polynomials for nodes at Gauss-Lobatto points on the interval [0, 1]. More...
 
template<int n, typename T >
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::GaussLobattoInterpolationDerivative ([[maybe_unused]] T x)
 Derivatives of the Lagrange Interpolating polynomials for nodes at Gauss-Lobatto points on the interval [0, 1]. More...
 
template<int n, typename T >
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::GaussLegendreInterpolation ([[maybe_unused]] T x)
 Lagrange Interpolating polynomials for nodes at Gauss-Legendre points on the interval [0, 1]. More...
 
template<int n, typename T >
constexpr SMITH_HOST_DEVICE tensor< T, n > smith::GaussLegendreInterpolationDerivative ([[maybe_unused]] T x)
 Derivatives of the Lagrange Interpolating polynomials for nodes at Gauss-Legendre points on the interval [-1, 1]. More...
 

Detailed Description

Definitions of 1D quadrature weights and node locations and polynomial basis functions.

Definition in file polynomials.hpp.