Trait graphblas_sparse_linear_algebra::collections::sparse_matrix::operations::GetSparseMatrixElementValueTyped
source · pub trait GetSparseMatrixElementValueTyped<T: ValueType + Default> {
// Required methods
fn element_value(
matrix: &SparseMatrix<T>,
row_index: &ElementIndex,
column_index: &ElementIndex
) -> Result<Option<T>, SparseLinearAlgebraError>;
fn element_value_or_default(
matrix: &SparseMatrix<T>,
row_index: &ElementIndex,
column_index: &ElementIndex
) -> Result<T, SparseLinearAlgebraError>;
fn element_value_at_coordinate(
matrix: &SparseMatrix<T>,
coordinate: &impl GetCoordinateIndices
) -> Result<Option<T>, SparseLinearAlgebraError>;
fn element_value_or_default_at_coordinate(
matrix: &SparseMatrix<T>,
coordinate: &impl GetCoordinateIndices
) -> Result<T, SparseLinearAlgebraError>;
}
Required Methods§
fn element_value( matrix: &SparseMatrix<T>, row_index: &ElementIndex, column_index: &ElementIndex ) -> Result<Option<T>, SparseLinearAlgebraError>
fn element_value_or_default( matrix: &SparseMatrix<T>, row_index: &ElementIndex, column_index: &ElementIndex ) -> Result<T, SparseLinearAlgebraError>
fn element_value_at_coordinate( matrix: &SparseMatrix<T>, coordinate: &impl GetCoordinateIndices ) -> Result<Option<T>, SparseLinearAlgebraError>
fn element_value_or_default_at_coordinate( matrix: &SparseMatrix<T>, coordinate: &impl GetCoordinateIndices ) -> Result<T, SparseLinearAlgebraError>
Object Safety§
This trait is not object safe.