pub struct ExternalLibraryRegistry { /* private fields */ }Expand description
External library registry and management
Implementations§
Source§impl ExternalLibraryRegistry
impl ExternalLibraryRegistry
Sourcepub fn register_blas<T: ExternalBlas + 'static>(&mut self, library: T)
pub fn register_blas<T: ExternalBlas + 'static>(&mut self, library: T)
Register a BLAS library
Sourcepub fn register_lapack<T: ExternalLapack + 'static>(&mut self, library: T)
pub fn register_lapack<T: ExternalLapack + 'static>(&mut self, library: T)
Register a LAPACK library
Sourcepub fn register_fft<T: ExternalFft + 'static>(&mut self, library: T)
pub fn register_fft<T: ExternalFft + 'static>(&mut self, library: T)
Register an FFT library
Sourcepub fn set_preference(
&mut self,
operation_type: &str,
library_name: &str,
) -> ExternalResult<()>
pub fn set_preference( &mut self, operation_type: &str, library_name: &str, ) -> ExternalResult<()>
Set preferred library for operation type
Sourcepub fn get_lapack(&self) -> Option<Arc<Mutex<dyn ExternalLapack>>>
pub fn get_lapack(&self) -> Option<Arc<Mutex<dyn ExternalLapack>>>
Get preferred LAPACK library
Sourcepub fn list_libraries(&self) -> Vec<String>
pub fn list_libraries(&self) -> Vec<String>
List all registered libraries
Sourcepub fn check_availability(&self) -> HashMap<String, bool>
pub fn check_availability(&self) -> HashMap<String, bool>
Check library availability
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExternalLibraryRegistry
impl RefUnwindSafe for ExternalLibraryRegistry
impl Send for ExternalLibraryRegistry
impl Sync for ExternalLibraryRegistry
impl Unpin for ExternalLibraryRegistry
impl UnsafeUnpin for ExternalLibraryRegistry
impl UnwindSafe for ExternalLibraryRegistry
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> 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