pub struct MklAdapter { /* private fields */ }Expand description
Mock implementation for Intel MKL adapter (demonstration)
Implementations§
Source§impl MklAdapter
impl MklAdapter
Trait Implementations§
Source§impl Clone for MklAdapter
impl Clone for MklAdapter
Source§fn clone(&self) -> MklAdapter
fn clone(&self) -> MklAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MklAdapter
impl Debug for MklAdapter
Source§impl Default for MklAdapter
impl Default for MklAdapter
Source§impl ExternalBlas for MklAdapter
impl ExternalBlas for MklAdapter
Source§fn scal(&self, alpha: f32, x: &mut [f32]) -> ExternalResult<()>
fn scal(&self, alpha: f32, x: &mut [f32]) -> ExternalResult<()>
Vector-scalar multiplication (SSCAL)
Source§fn axpy(&self, alpha: f32, x: &[f32], y: &mut [f32]) -> ExternalResult<()>
fn axpy(&self, alpha: f32, x: &[f32], y: &mut [f32]) -> ExternalResult<()>
Vector addition (SAXPY): y = alpha * x + y
Source§impl ExternalLibrary for MklAdapter
impl ExternalLibrary for MklAdapter
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the library is available on the system
Source§fn initialize(&mut self) -> ExternalResult<()>
fn initialize(&mut self) -> ExternalResult<()>
Initialize the library (if needed)
Source§fn supported_operations(&self) -> Vec<String>
fn supported_operations(&self) -> Vec<String>
Get supported operations
Source§fn supports_operation(&self, operation: &str) -> bool
fn supports_operation(&self, operation: &str) -> bool
Check if a specific operation is supported
Auto Trait Implementations§
impl Freeze for MklAdapter
impl RefUnwindSafe for MklAdapter
impl Send for MklAdapter
impl Sync for MklAdapter
impl Unpin for MklAdapter
impl UnsafeUnpin for MklAdapter
impl UnwindSafe for MklAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more