pub struct Blas;
Expand description

Binding to blas with cblas-sys as a slas backend.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Dot product for two complex vectors. Also has support for multiple (and mixed) types.

Dot product for two complex vectors. Also has support for multiple (and mixed) types.

Thin wrapper around blas for the various dot product functions that works for multiple different (and mixed) vector types.

Example
use slas::prelude::*;
assert!(slas_backend::Blas.dot(&[1., 2., 3.], &moo![f32: -1, 2, -1]) == 0.);

Thin wrapper around blas for the various dot product functions that works for multiple different (and mixed) vector types.

Example
use slas::prelude::*;
assert!(slas_backend::Blas.dot(&[1., 2., 3.], &moo![f32: -1, 2, -1]) == 0.);

This is matrix multiplication, NOT element wise multiplication. Take a look at wiki, 3Blue1Brown at yt and/or Khan Academy for more information.

It’s notable that your left hand matrix needs to be as wide as the right hand matrix is tall.

Matrix-vector multiplication using gemv.

This is matrix multiplication, NOT element wise multiplication. Take a look at wiki, 3Blue1Brown at yt and/or Khan Academy for more information.

It’s notable that your left hand matrix needs to be as wide as the right hand matrix is tall.

Matrix-vector multiplication using gemv.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.