pub struct SparseMatrix<T: ValueType> { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl<T: ValueType> Clone for SparseMatrix<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: ValueType> Collection for SparseMatrix<T>

source§

impl<T: Debug + ValueType> Debug for SparseMatrix<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<bool>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<f32>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<f64>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<i16>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<i32>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<i64>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<i8>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<isize>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<u16>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<u32>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<u64>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<u8>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SparseMatrix<usize>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: ValueType> Drop for SparseMatrix<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T: ValueType> DropMatrixElement for SparseMatrix<T>

source§

impl<T: ValueType> FromDiagonalVector<T> for SparseMatrix<T>

source§

fn from_diagonal_vector( context: &Arc<Context>, diagonal: &SparseVector<T>, diagonal_index: &DiagonalIndex ) -> Result<SparseMatrix<T>, SparseLinearAlgebraError>

Returns a square matrix

source§

fn from_diagonal_vector_untyped( context: &Arc<Context>, diagonal: &(impl GetGraphblasSparseVector + GetContext + GetSparseVectorLength), diagonal_index: &DiagonalIndex ) -> Result<SparseMatrix<T>, SparseLinearAlgebraError>

The type of the diagonal must match the type of the returned SparseMarix

source§

impl FromMatrixElementList<bool> for SparseMatrix<bool>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<bool>, reduction_operator_for_duplicates: &impl BinaryOperator<bool> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<f32> for SparseMatrix<f32>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<f32>, reduction_operator_for_duplicates: &impl BinaryOperator<f32> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<f64> for SparseMatrix<f64>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<f64>, reduction_operator_for_duplicates: &impl BinaryOperator<f64> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<i16> for SparseMatrix<i16>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<i16>, reduction_operator_for_duplicates: &impl BinaryOperator<i16> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<i32> for SparseMatrix<i32>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<i32>, reduction_operator_for_duplicates: &impl BinaryOperator<i32> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<i64> for SparseMatrix<i64>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<i64>, reduction_operator_for_duplicates: &impl BinaryOperator<i64> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<i8> for SparseMatrix<i8>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<i8>, reduction_operator_for_duplicates: &impl BinaryOperator<i8> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<isize> for SparseMatrix<isize>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<isize>, reduction_operator_for_duplicates: &impl BinaryOperator<isize> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<u16> for SparseMatrix<u16>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<u16>, reduction_operator_for_duplicates: &impl BinaryOperator<u16> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<u32> for SparseMatrix<u32>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<u32>, reduction_operator_for_duplicates: &impl BinaryOperator<u32> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<u64> for SparseMatrix<u64>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<u64>, reduction_operator_for_duplicates: &impl BinaryOperator<u64> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<u8> for SparseMatrix<u8>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<u8>, reduction_operator_for_duplicates: &impl BinaryOperator<u8> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl FromMatrixElementList<usize> for SparseMatrix<usize>

source§

fn from_element_list( context: &Arc<Context>, size: &Size, elements: &MatrixElementList<usize>, reduction_operator_for_duplicates: &impl BinaryOperator<usize> ) -> Result<Self, SparseLinearAlgebraError>

source§

impl<T: ValueType> GetContext for SparseMatrix<T>

source§

impl<T: ValueType> GetGraphblasSparseMatrix for SparseMatrix<T>

source§

impl<T: ValueType + Default + GetMatrixElementValueTyped<T>> GetMatrixElement<T> for SparseMatrix<T>

source§

impl<T: ValueType + GetMatrixElementListTyped<T>> GetMatrixElementList<T> for SparseMatrix<T>

source§

impl<T: ValueType + Default + GetMatrixElementValueTyped<T>> GetMatrixElementValue<T> for SparseMatrix<T>

source§

impl<T: ValueType> GetMatrixSize for SparseMatrix<T>

source§

impl<T: ValueType> IsMatrixElement for SparseMatrix<T>

source§

impl<T: ValueType> MatrixMask for SparseMatrix<T>

source§

impl<T: ValueType> ResizeMatrix for SparseMatrix<T>

source§

fn resize(&mut self, new_size: &Size) -> Result<(), SparseLinearAlgebraError>

All elements of self with an index coordinate outside of the new size are dropped.

source§

impl<T: ValueType + SetMatrixElementTyped<T>> SetMatrixElement<T> for SparseMatrix<T>

source§

impl<T: ValueType, B: BinaryOperator<T> + ReturnsBool> SortSparseMatrix<T, B> for SparseMatrix<T>

source§

fn sort_rows( &mut self, sort_operator: &B ) -> Result<(), SparseLinearAlgebraError>

source§

fn sort_columns( &mut self, sort_operator: &B ) -> Result<(), SparseLinearAlgebraError>

source§

fn sorted_rows_and_indices( &self, sorted_values: &mut SparseMatrix<T>, indices_to_sort_rows: &mut SparseMatrix<ElementIndex>, sort_operator: &B ) -> Result<(), SparseLinearAlgebraError>

source§

fn sorted_columns_and_indices( &self, sorted_values: &mut SparseMatrix<T>, indices_to_sort_columns: &mut SparseMatrix<ElementIndex>, sort_operator: &B ) -> Result<(), SparseLinearAlgebraError>

source§

fn sorted_rows( &self, sort_operator: &B ) -> Result<SparseMatrix<T>, SparseLinearAlgebraError>

source§

fn sorted_columns( &self, sort_operator: &B ) -> Result<SparseMatrix<T>, SparseLinearAlgebraError>

source§

fn indices_to_sort_rows( &self, sort_operator: &B ) -> Result<SparseMatrix<ElementIndex>, SparseLinearAlgebraError>

source§

fn indices_to_sort_columns( &self, sort_operator: &B ) -> Result<SparseMatrix<ElementIndex>, SparseLinearAlgebraError>

source§

impl<T: ValueType> Send for SparseMatrix<T>

source§

impl<T: ValueType> Sync for SparseMatrix<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for SparseMatrix<T>where T: RefUnwindSafe,

§

impl<T> Unpin for SparseMatrix<T>where T: Unpin,

§

impl<T> UnwindSafe for SparseMatrix<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.