|
Metis 2.0.0
High-performance C++20 dual-mode numerical framework
|
Orthogonal polynomial evaluation, spectral nodes, weights, and differentiation matrices. More...
#include "metis/core/MetisError.hpp"#include "metis/core/MetisTypes.hpp"#include <cmath>#include <limits>#include <utility>

Go to the source code of this file.
Namespaces | |
| namespace | metis |
| namespace | metis::detail |
| Smooth approximation of ReLU function: softplus(x) = (1/beta) * log(1 + exp(beta * x)). | |
Functions | |
| std::pair< double, double > | metis::legendre_poly (int n, double x) |
| Evaluate Legendre polynomial P_n(x) and derivative P'_n(x). | |
| std::pair< NumericVector, NumericVector > | metis::detail::gauss_legendre_rule (int n) |
| std::pair< NumericVector, NumericVector > | metis::gauss_legendre_rule (int n) |
| Gauss-Legendre nodes and weights on [-1, 1]. | |
| NumericVector | metis::legendre_poly_vec (int n, const NumericVector &x) |
| Evaluate P_n(x) at each x in vector. | |
| NumericVector | metis::lgl_nodes (int N) |
| Compute Legendre-Gauss-Lobatto nodes on [-1, 1]. | |
| NumericVector | metis::cgl_nodes (int N) |
| Compute Chebyshev-Gauss-Lobatto nodes on [-1, 1]. | |
| NumericVector | metis::lgl_weights (int N, const NumericVector &nodes) |
| LGL quadrature weights. | |
| NumericVector | metis::cgl_weights (int N, const NumericVector &nodes) |
| CGL (Clenshaw-Curtis) quadrature weights on [-1, 1]. | |
| NumericVector | metis::barycentric_weights (const NumericVector &nodes) |
| Compute barycentric interpolation weights for the given nodes. | |
| double | metis::barycentric_basis_eval (const NumericVector &nodes, const NumericVector &bary_w, int j, double s) |
| Evaluate the j-th Lagrange basis polynomial at s using barycentric form. | |
| NumericMatrix | metis::birkhoff_integration_matrix (const NumericVector &nodes) |
| Compute Birkhoff integration matrix B^a for the node set. | |
| NumericMatrix | metis::spectral_diff_matrix (const NumericVector &nodes) |
| Spectral differentiation matrix using barycentric weights. | |
Variables | |
| constexpr double | metis::detail::polynomial_root_tolerance = 1e-15 |
| Tolerance for zero-length integration intervals in Birkhoff matrix. | |
Orthogonal polynomial evaluation, spectral nodes, weights, and differentiation matrices.