Struct dzahui::solvers::fem::basis::single_variable::linear_basis::LinearBasis
source · pub(crate) struct LinearBasis {
pub(crate) basis: Vec<PiecewiseFirstDegreePolynomial>,
}
Expand description
General Information
A Linear Basis is a set composed entirely of linearly independent functions that also generate the space in which they are contained. In this case, functions are piecewise first degree polynomials
Fields
basis
- A vector ofPieceWiseFirstDegreePolynomial
.
Fields§
§basis: Vec<PiecewiseFirstDegreePolynomial>
Implementations§
source§impl LinearBasis
impl LinearBasis
sourcepub(crate) fn new(mesh: &Vec<f64>) -> Result<LinearBasis, Error>
pub(crate) fn new(mesh: &Vec<f64>) -> Result<LinearBasis, Error>
General information
Creation of a LinearBasis from a 1D mesh. Obtains every function from the reference interval [0,1] and a series of transformations. First and last functions are generated apart since they’re only defined in three intervals instead of four.
Parameters
mesh
- A reference to the original mesh of points (filtered to omit RGB values).