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§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GetSparseMatrixElementValueTyped<bool> for bool

source§

impl GetSparseMatrixElementValueTyped<f32> for f32

source§

impl GetSparseMatrixElementValueTyped<f64> for f64

source§

impl GetSparseMatrixElementValueTyped<i8> for i8

source§

impl GetSparseMatrixElementValueTyped<i16> for i16

source§

impl GetSparseMatrixElementValueTyped<i32> for i32

source§

impl GetSparseMatrixElementValueTyped<i64> for i64

source§

impl GetSparseMatrixElementValueTyped<isize> for isize

source§

impl GetSparseMatrixElementValueTyped<u8> for u8

source§

impl GetSparseMatrixElementValueTyped<u16> for u16

source§

impl GetSparseMatrixElementValueTyped<u32> for u32

source§

impl GetSparseMatrixElementValueTyped<u64> for u64

source§

impl GetSparseMatrixElementValueTyped<usize> for usize

Implementors§