pub trait LinearOperator<V, W = V> {
// Required methods
fn apply(&self, x: &V) -> Result<W>;
fn domain_dimension(&self) -> Option<usize>;
fn codomain_dimension(&self) -> Option<usize>;
}Expand description
A linear operator between vector spaces.
A linear operator T: V → W satisfies:
- T(x + y) = T(x) + T(y)
- T(αx) = αT(x)
§Type Parameters
V- Domain space element typeW- Codomain space element type
Required Methods§
Sourcefn domain_dimension(&self) -> Option<usize>
fn domain_dimension(&self) -> Option<usize>
Get the domain dimension (None if infinite).
Sourcefn codomain_dimension(&self) -> Option<usize>
fn codomain_dimension(&self) -> Option<usize>
Get the codomain dimension (None if infinite).