Trait coaster_blas::plugin::Swap
source · pub trait Swap<F> {
// Required method
fn swap(
&self,
x: &mut SharedTensor<F>,
y: &mut SharedTensor<F>
) -> Result<(), Error>;
}
Expand description
Provides the swap operation.
Required Methods§
sourcefn swap(
&self,
x: &mut SharedTensor<F>,
y: &mut SharedTensor<F>
) -> Result<(), Error>
fn swap( &self, x: &mut SharedTensor<F>, y: &mut SharedTensor<F> ) -> Result<(), Error>
Swaps the content of vector x
and vector y
with complete memory management.
Saves the resulting vector back into x
.
This is a Level 1 BLAS operation.