Trait collenchyma_blas::plugin::Dot
[−]
[src]
pub trait Dot<F> { fn dot(&self, x: &mut SharedTensor<F>, y: &mut SharedTensor<F>, result: &mut SharedTensor<F>) -> Result<(), Error>; fn dot_plain(&self, x: &SharedTensor<F>, y: &SharedTensor<F>, result: &mut SharedTensor<F>) -> Result<(), Error>; }
Provides the dot operation.
Required Methods
fn dot(&self, x: &mut SharedTensor<F>, y: &mut SharedTensor<F>, result: &mut SharedTensor<F>) -> Result<(), Error>
Computes the dot product over x and y with complete memory management.
Saves the resulting value into result
.
This is a Level 1 BLAS operation.
For a no-memory managed version see dot_plain
.
fn dot_plain(&self, x: &SharedTensor<F>, y: &SharedTensor<F>, result: &mut SharedTensor<F>) -> Result<(), Error>
Computes the dot product over x and y without any memory management.
Saves the resulting value into result
.
This is a Level 1 BLAS operation.
Attention:
For a correct computation result, you need to manage the memory allocation and synchronization yourself.
For a memory managed version see dot
.