pub struct FnOperator<F> {
nrows: usize,
ncols: usize,
f: F,
}Expand description
An operator from a closure f(x, y) writing y ← A x (PLAN L3.1’s
“operador-closure”). Build with from_fn.
Fields§
§nrows: usize§ncols: usize§f: FTrait Implementations§
Source§impl<F: Debug> Debug for FnOperator<F>
impl<F: Debug> Debug for FnOperator<F>
Source§impl<T: Real, F: FnMut(&[T], &mut [T]) -> Result<(), OperatorError>> LinearOperator<T> for FnOperator<F>
impl<T: Real, F: FnMut(&[T], &mut [T]) -> Result<(), OperatorError>> LinearOperator<T> for FnOperator<F>
Source§fn apply_block(
&mut self,
x: MatRef<'_, T>,
y: MatMut<'_, T>,
) -> Result<(), OperatorError>
fn apply_block( &mut self, x: MatRef<'_, T>, y: MatMut<'_, T>, ) -> Result<(), OperatorError>
Y ← A X for a block of columns; the default loops over
LinearOperator::apply. Dense and sparse implementations
override it (one pass over A for l columns — the cost that
matters in crate::rsvd()). Read moreAuto Trait Implementations§
impl<F> Freeze for FnOperator<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnOperator<F>where
F: RefUnwindSafe,
impl<F> Send for FnOperator<F>where
F: Send,
impl<F> Sync for FnOperator<F>where
F: Sync,
impl<F> Unpin for FnOperator<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnOperator<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnOperator<F>where
F: UnwindSafe,
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