L2Function

Struct L2Function 

Source
pub struct L2Function<const P: usize, const Q: usize, const R: usize> { /* private fields */ }
Expand description

A square-integrable multivector-valued function.

This represents an element of L²(Ω, Cl(P,Q,R)) - a function from domain Ω to the Clifford algebra that is square-integrable.

Implementations§

Source§

impl<const P: usize, const Q: usize, const R: usize> L2Function<P, Q, R>

Source

pub fn new<F>(f: F) -> Self
where F: Fn(&[f64]) -> Multivector<P, Q, R> + Send + Sync + 'static,

Create a new L² function from a closure.

Source

pub fn eval(&self, point: &[f64]) -> Multivector<P, Q, R>

Evaluate the function at a point.

Source

pub fn zero_function() -> Self

Create the zero function.

Source

pub fn constant(value: Multivector<P, Q, R>) -> Self

Create a constant function.

Trait Implementations§

Source§

impl<const P: usize, const Q: usize, const R: usize> BanachSpace<L2Function<P, Q, R>> for MultivectorL2<P, Q, R>

Source§

fn is_cauchy_sequence( &self, sequence: &[L2Function<P, Q, R>], tolerance: f64, ) -> bool

Check if a sequence appears to be Cauchy. Read more
Source§

fn sequence_limit( &self, sequence: &[L2Function<P, Q, R>], tolerance: f64, ) -> Result<L2Function<P, Q, R>>

Compute the limit of a Cauchy sequence if it exists.
Source§

impl<const P: usize, const Q: usize, const R: usize> Clone for L2Function<P, Q, R>

Source§

fn clone(&self) -> L2Function<P, Q, R>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const P: usize, const Q: usize, const R: usize> Debug for L2Function<P, Q, R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const P: usize, const Q: usize, const R: usize> HilbertSpace<L2Function<P, Q, R>> for MultivectorL2<P, Q, R>

Source§

fn riesz_representative<F>(&self, _functional: F) -> Result<L2Function<P, Q, R>>
where F: Fn(&L2Function<P, Q, R>) -> f64,

Apply the Riesz representation theorem. Read more
Source§

fn orthogonal_complement_projection(&self, x: &V, subspace_basis: &[V]) -> V
where S: Into<f64> + From<f64>, V: Clone,

Compute the orthogonal complement projection. Read more
Source§

fn best_approximation(&self, x: &V, subspace_basis: &[V]) -> V
where S: Into<f64> + From<f64>, V: Clone,

Compute the best approximation to x from a subspace. Read more
Source§

fn is_orthonormal(&self, vectors: &[V], tolerance: f64) -> bool
where S: Into<f64>,

Check if a set of vectors forms an orthonormal system.
Source§

impl<const P: usize, const Q: usize, const R: usize> InnerProductSpace<L2Function<P, Q, R>> for MultivectorL2<P, Q, R>

Source§

fn inner_product(&self, f: &L2Function<P, Q, R>, g: &L2Function<P, Q, R>) -> f64

Compute the inner product of two vectors.
Source§

fn project( &self, f: &L2Function<P, Q, R>, g: &L2Function<P, Q, R>, ) -> L2Function<P, Q, R>

Project x onto y. Read more
Source§

fn gram_schmidt( &self, functions: &[L2Function<P, Q, R>], ) -> Vec<L2Function<P, Q, R>>

Gram-Schmidt orthogonalization of a set of vectors.
Source§

fn are_orthogonal(&self, x: &V, y: &V, tolerance: f64) -> bool
where S: Into<f64>,

Check if two vectors are orthogonal.
Source§

impl<const P: usize, const Q: usize, const R: usize> NormedSpace<L2Function<P, Q, R>> for MultivectorL2<P, Q, R>

Source§

fn norm(&self, f: &L2Function<P, Q, R>) -> f64

Compute the norm of a vector.
Source§

fn normalize(&self, f: &L2Function<P, Q, R>) -> Option<L2Function<P, Q, R>>

Normalize a vector to unit length. Read more
Source§

fn distance(&self, x: &V, y: &V) -> f64

Compute the distance between two vectors.
Source§

impl<const P: usize, const Q: usize, const R: usize> VectorSpace<L2Function<P, Q, R>> for MultivectorL2<P, Q, R>

Source§

fn add( &self, f: &L2Function<P, Q, R>, g: &L2Function<P, Q, R>, ) -> L2Function<P, Q, R>

Add two vectors.
Source§

fn sub( &self, f: &L2Function<P, Q, R>, g: &L2Function<P, Q, R>, ) -> L2Function<P, Q, R>

Subtract two vectors.
Source§

fn scale(&self, scalar: f64, f: &L2Function<P, Q, R>) -> L2Function<P, Q, R>

Multiply a vector by a scalar.
Source§

fn zero(&self) -> L2Function<P, Q, R>

Return the zero vector.
Source§

fn dimension(&self) -> Option<usize>

Return the dimension of the space (may be infinite).

Auto Trait Implementations§

§

impl<const P: usize, const Q: usize, const R: usize> Freeze for L2Function<P, Q, R>

§

impl<const P: usize, const Q: usize, const R: usize> !RefUnwindSafe for L2Function<P, Q, R>

§

impl<const P: usize, const Q: usize, const R: usize> Send for L2Function<P, Q, R>

§

impl<const P: usize, const Q: usize, const R: usize> Sync for L2Function<P, Q, R>

§

impl<const P: usize, const Q: usize, const R: usize> Unpin for L2Function<P, Q, R>

§

impl<const P: usize, const Q: usize, const R: usize> !UnwindSafe for L2Function<P, Q, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V