Skip to main content

RuntimeLinearOperator

Trait RuntimeLinearOperator 

Source
pub trait RuntimeLinearOperator<R>
where R: Runtime,
{ // Required methods fn runtime_shape(&self) -> (usize, usize); fn apply_on( &self, runtime: &R, input: &R::Buffer, output: &mut R::Buffer, ) -> Result<()>; }
Expand description

Runtime-aware action without changing the scientific operator contract.

Required Methods§

Source

fn runtime_shape(&self) -> (usize, usize)

Return (rows, columns) in runtime coordinates.

Source

fn apply_on( &self, runtime: &R, input: &R::Buffer, output: &mut R::Buffer, ) -> Result<()>

Apply this map to backend-owned buffers.

Implementors§