pub struct SobolevFunction<const P: usize, const Q: usize, const R: usize, const K: usize> { /* private fields */ }Expand description
A function in a Sobolev space with weak derivatives.
Stores the function and its weak derivatives up to order k.
Implementations§
Source§impl<const P: usize, const Q: usize, const R: usize, const K: usize> SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> SobolevFunction<P, Q, R, K>
Sourcepub fn new<F>(
func: F,
derivatives: Vec<Arc<dyn Fn(&[f64]) -> Multivector<P, Q, R> + Send + Sync>>,
spatial_dim: usize,
) -> Self
pub fn new<F>( func: F, derivatives: Vec<Arc<dyn Fn(&[f64]) -> Multivector<P, Q, R> + Send + Sync>>, spatial_dim: usize, ) -> Self
Create a new Sobolev function with its derivatives.
Sourcepub fn eval(&self, point: &[f64]) -> Multivector<P, Q, R>
pub fn eval(&self, point: &[f64]) -> Multivector<P, Q, R>
Evaluate the function at a point.
Sourcepub fn eval_derivative(
&self,
i: usize,
point: &[f64],
) -> Option<Multivector<P, Q, R>>
pub fn eval_derivative( &self, i: usize, point: &[f64], ) -> Option<Multivector<P, Q, R>>
Evaluate the i-th derivative at a point.
Sourcepub fn derivative_count(&self) -> usize
pub fn derivative_count(&self) -> usize
Get the number of derivatives stored.
Sourcepub fn spatial_dimension(&self) -> usize
pub fn spatial_dimension(&self) -> usize
Get the spatial dimension.
Trait Implementations§
Source§impl<const P: usize, const Q: usize, const R: usize, const K: usize> Clone for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> Clone for SobolevFunction<P, Q, R, K>
Source§fn clone(&self) -> SobolevFunction<P, Q, R, K>
fn clone(&self) -> SobolevFunction<P, Q, R, K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<const P: usize, const Q: usize, const R: usize, const K: usize> Freeze for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> !RefUnwindSafe for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> Send for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> Sync for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> Unpin for SobolevFunction<P, Q, R, K>
impl<const P: usize, const Q: usize, const R: usize, const K: usize> !UnwindSafe for SobolevFunction<P, Q, R, K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more