pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn init( mode: Mode, matrix_storage_format: MatrixStorageFormat, ) -> Result<Arc<Self>, SparseLinearAlgebraError>
Sourcepub fn init_default() -> Result<Arc<Self>, SparseLinearAlgebraError>
pub fn init_default() -> Result<Arc<Self>, SparseLinearAlgebraError>
Sets MatrixStorageFormat::ByRow
Sourcepub unsafe fn init_with_allocator(
mode: Mode,
matrix_storage_format: MatrixStorageFormat,
allocator: MemoryAllocator,
) -> Result<Arc<Self>, SparseLinearAlgebraError>
pub unsafe fn init_with_allocator( mode: Mode, matrix_storage_format: MatrixStorageFormat, allocator: MemoryAllocator, ) -> Result<Arc<Self>, SparseLinearAlgebraError>
Initialise GraphBLAS with a custom memory allocator.
§Panics / UB
The allocator passed here must be the same allocator that is set as the Rust global allocator. Mixing them will cause heap corruption.
pub fn call_without_detailed_error_information<F>( &self, function_to_call: F, ) -> Result<Status, SparseLinearAlgebraError>
Trait Implementations§
Source§impl CallGraphBlasContext<*mut GB_BinaryOp_opaque> for Context
impl CallGraphBlasContext<*mut GB_BinaryOp_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_BinaryOp, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Descriptor_opaque> for Context
impl CallGraphBlasContext<*mut GB_Descriptor_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Descriptor, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_IndexUnaryOp_opaque> for Context
impl CallGraphBlasContext<*mut GB_IndexUnaryOp_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_IndexUnaryOp, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Matrix_opaque> for Context
impl CallGraphBlasContext<*mut GB_Matrix_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Matrix, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Monoid_opaque> for Context
impl CallGraphBlasContext<*mut GB_Monoid_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Monoid, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Scalar_opaque> for Context
impl CallGraphBlasContext<*mut GB_Scalar_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Scalar, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Semiring_opaque> for Context
impl CallGraphBlasContext<*mut GB_Semiring_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Semiring, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Type_opaque> for Context
impl CallGraphBlasContext<*mut GB_Type_opaque> for Context
Source§impl CallGraphBlasContext<*mut GB_UnaryOp_opaque> for Context
impl CallGraphBlasContext<*mut GB_UnaryOp_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_UnaryOp, ) -> Result<Status, SparseLinearAlgebraError>
Source§impl CallGraphBlasContext<*mut GB_Vector_opaque> for Context
impl CallGraphBlasContext<*mut GB_Vector_opaque> for Context
fn call<F>( &self, function_to_call: F, reference_to_debug_info: &GrB_Vector, ) -> Result<Status, SparseLinearAlgebraError>
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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
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