Trait BLAS2

Source
pub trait BLAS2<C: BLASContext>: Sized + Copy {
    // Required method
    unsafe fn gemv(
        ctx: C,
        trans: MatrixOp,
        m: i32,
        n: i32,
        alpha: Self,
        a: DPtr<Self, C::Device>,
        lda: i32,
        x: DPtr<Self, C::Device>,
        incx: i32,
        beta: Self,
        y: DPtr<Self, C::Device>,
        incy: i32,
    );
}
Expand description

BLAS Level 2 operations (Matrix-Vector)

Required Methods§

Source

unsafe fn gemv( ctx: C, trans: MatrixOp, m: i32, n: i32, alpha: Self, a: DPtr<Self, C::Device>, lda: i32, x: DPtr<Self, C::Device>, incx: i32, beta: Self, y: DPtr<Self, C::Device>, incy: i32, )

Compute the Generalised Matrix-Vector multiplication:

y = alpha * Ax + beta * y

§Safety

This is often a call across an FFI barrier, so the links or devices need to be running and may perform UB unchecked by rust

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§