Struct rcublas::Context [−][src]
pub struct Context { /* fields omitted */ }
Expand description
Provides a the low-level cuBLAS context.
Implementations
Create a new cuBLAS Context by calling the low-level API.
Context creation should done as sparely as possible. It is best to keep a context around as long as possible.
Create a new cuBLAS Context from its C type.
Returns the cuBLAS Context as its C type.
pub fn asum(
&self,
x: *mut f32,
result: *mut f32,
n: i32,
stride: Option<i32>
) -> Result<(), Error>
pub fn axpy(
&self,
alpha: *mut f32,
x: *mut f32,
y: *mut f32,
n: i32,
stride_x: Option<i32>,
stride_y: Option<i32>
) -> Result<(), Error>
pub fn copy(
&self,
x: *mut f32,
y: *mut f32,
n: i32,
stride_x: Option<i32>,
stride_y: Option<i32>
) -> Result<(), Error>
pub fn dot(
&self,
x: *mut f32,
y: *mut f32,
result: *mut f32,
n: i32,
stride_x: Option<i32>,
stride_y: Option<i32>
) -> Result<(), Error>
pub fn nrm2(
&self,
x: *mut f32,
result: *mut f32,
n: i32,
stride_x: Option<i32>
) -> Result<(), Error>
pub fn scal(
&self,
alpha: *mut f32,
x: *mut f32,
n: i32,
stride_x: Option<i32>
) -> Result<(), Error>
pub fn swap(
&self,
x: *mut f32,
y: *mut f32,
n: i32,
stride_x: Option<i32>,
stride_y: Option<i32>
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl UnwindSafe for Context
Blanket Implementations
Mutably borrows from an owned value. Read more