pub struct BoundedOp {
pub matrix: Vec<Vec<f64>>,
pub domain_dim: usize,
pub range_dim: usize,
}Fields§
§matrix: Vec<Vec<f64>>§domain_dim: usize§range_dim: usizeImplementations§
Source§impl BoundedOp
impl BoundedOp
pub fn new(matrix: Vec<Vec<f64>>) -> Self
pub fn identity(n: usize) -> Self
pub fn diagonal(entries: &[f64]) -> Self
pub fn zero_op(m: usize, n: usize) -> Self
pub fn apply(&self, v: &RnVector) -> RnVector
pub fn operator_norm(&self) -> f64
pub fn operator_norm_power_iter(&self, iterations: usize) -> f64
pub fn transpose(&self) -> Self
pub fn compose(&self, other: &Self) -> Option<Self>
pub fn op_add(&self, other: &Self) -> Option<Self>
pub fn scalar_mul(&self, c: f64) -> Self
pub fn is_symmetric(&self) -> bool
pub fn is_positive_definite(&self) -> bool
pub fn eigenvalues_2x2(&self) -> Option<(f64, f64)>
pub fn power_iteration(&self, iterations: usize) -> Option<(f64, RnVector)>
pub fn trace(&self) -> f64
pub fn frobenius_norm(&self) -> f64
pub fn determinant(&self) -> Option<f64>
pub fn solve(&self, b: &RnVector) -> Option<RnVector>
pub fn rank(&self) -> usize
pub fn nullity(&self) -> usize
pub fn is_injective(&self) -> bool
pub fn is_surjective(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoundedOp
impl RefUnwindSafe for BoundedOp
impl Send for BoundedOp
impl Sync for BoundedOp
impl Unpin for BoundedOp
impl UnsafeUnpin for BoundedOp
impl UnwindSafe for BoundedOp
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