MultivectorL2

Struct MultivectorL2 

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

The L² space of multivector-valued functions.

This is a Hilbert space with the L² inner product.

§Type Parameters

  • P - Number of positive signature basis vectors
  • Q - Number of negative signature basis vectors
  • R - Number of zero signature basis vectors

Implementations§

Source§

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

Source

pub const CODOMAIN_DIM: usize

The dimension of the Clifford algebra codomain.

Source

pub fn new(domain: Domain<f64>) -> Self

Create a new L² space over a domain.

Source

pub fn unit_interval() -> Self

Create an L² space over the unit interval [0, 1].

Source

pub fn interval(a: f64, b: f64) -> Self

Create an L² space over [a, b].

Source

pub fn with_quadrature_points(self, n: usize) -> Self

Set the number of quadrature points for numerical integration.

Source

pub fn domain(&self) -> &Domain<f64>

Get the domain of the space.

Source

pub fn signature(&self) -> (usize, usize, usize)

Get the signature of the Clifford algebra.

Source

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

Compute the L² inner product of two functions.

Source

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

Compute the L² norm of a 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 MultivectorL2<P, Q, R>

Source§

fn clone(&self) -> MultivectorL2<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 MultivectorL2<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 MultivectorL2<P, Q, R>

§

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

§

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

§

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

§

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

§

impl<const P: usize, const Q: usize, const R: usize> UnwindSafe for MultivectorL2<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