pub trait AdjointOperator<T: Real = f64>: LinearOperator<T> {
// Required method
fn apply_t(&mut self, x: &[T], y: &mut [T]) -> Result<(), OperatorError>;
// Provided method
fn apply_t_block(
&mut self,
x: MatRef<'_, T>,
y: MatMut<'_, T>,
) -> Result<(), OperatorError> { ... }
}Expand description
An operator that also applies its transpose: y ← Aᵀ x. Needed by
crate::rsvd() and crate::svds().
Required Methods§
Provided Methods§
Sourcefn apply_t_block(
&mut self,
x: MatRef<'_, T>,
y: MatMut<'_, T>,
) -> Result<(), OperatorError>
fn apply_t_block( &mut self, x: MatRef<'_, T>, y: MatMut<'_, T>, ) -> Result<(), OperatorError>
Block version; default loops over AdjointOperator::apply_t.
§Errors
Whatever the operator reports; an OperatorError if the shapes
do not match.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".