pub type SymbolicSparseRowMat<I, Rows = usize, Cols = usize> = SymbolicSparseRowMat<Own<I, Rows, Cols>>;Expand description
owning symbolic structure of sparse matrix in row format, either compressed or uncompressed
Aliased Type§
#[repr(transparent)]pub struct SymbolicSparseRowMat<I, Rows = usize, Cols = usize>(/* private fields */);Implementations§
Source§impl<Rows: Shape, Cols: Shape, I: Index> SymbolicSparseRowMat<I, Rows, Cols>
impl<Rows: Shape, Cols: Shape, I: Index> SymbolicSparseRowMat<I, Rows, Cols>
Sourcepub unsafe fn new_unchecked(
nrows: Rows,
ncols: Cols,
row_ptr: Vec<I>,
row_nnz: Option<Vec<I>>,
col_idx: Vec<I>,
) -> Self
pub unsafe fn new_unchecked( nrows: Rows, ncols: Cols, row_ptr: Vec<I>, row_nnz: Option<Vec<I>>, col_idx: Vec<I>, ) -> Self
see [SymbolicSparseRowMatRef::new_unchecked]
Sourcepub fn new_checked(
nrows: Rows,
ncols: Cols,
row_ptr: Vec<I>,
row_nnz: Option<Vec<I>>,
col_idx: Vec<I>,
) -> Self
pub fn new_checked( nrows: Rows, ncols: Cols, row_ptr: Vec<I>, row_nnz: Option<Vec<I>>, col_idx: Vec<I>, ) -> Self
see [SymbolicSparseRowMatRef::new_checked]
Sourcepub fn new_unsorted_checked(
nrows: Rows,
ncols: Cols,
row_ptr: Vec<I>,
row_nnz: Option<Vec<I>>,
col_idx: Vec<I>,
) -> Self
pub fn new_unsorted_checked( nrows: Rows, ncols: Cols, row_ptr: Vec<I>, row_nnz: Option<Vec<I>>, col_idx: Vec<I>, ) -> Self
see [SymbolicSparseRowMatRef::new_unsorted_checked]
Sourcepub fn parts(&self) -> (Rows, Cols, &[I], Option<&[I]>, &[I])
pub fn parts(&self) -> (Rows, Cols, &[I], Option<&[I]>, &[I])
see [SymbolicSparseRowMatRef::parts]
Sourcepub fn into_parts(self) -> (Rows, Cols, Vec<I>, Option<Vec<I>>, Vec<I>)
pub fn into_parts(self) -> (Rows, Cols, Vec<I>, Option<Vec<I>>, Vec<I>)
see [SymbolicSparseRowMatRef::parts]
Sourcepub fn shape(&self) -> (Rows, Cols)
pub fn shape(&self) -> (Rows, Cols)
see [SymbolicSparseRowMatRef::as_shape]
Sourcepub fn transpose(&self) -> SymbolicSparseColMatRef<'_, I, Cols, Rows>
pub fn transpose(&self) -> SymbolicSparseColMatRef<'_, I, Cols, Rows>
see [SymbolicSparseRowMatRef::transpose]
Sourcepub fn into_transpose(self) -> SymbolicSparseColMat<I, Cols, Rows>
pub fn into_transpose(self) -> SymbolicSparseColMat<I, Cols, Rows>
see [SymbolicSparseRowMatRef::transpose]
Sourcepub fn to_owned(&self) -> Result<SymbolicSparseRowMat<I, Rows, Cols>, FaerError>
pub fn to_owned(&self) -> Result<SymbolicSparseRowMat<I, Rows, Cols>, FaerError>
see [SymbolicSparseRowMatRef::to_owned]
Sourcepub fn to_col_major(
&self,
) -> Result<SymbolicSparseColMat<I, Rows, Cols>, FaerError>
pub fn to_col_major( &self, ) -> Result<SymbolicSparseColMat<I, Rows, Cols>, FaerError>
see [SymbolicSparseRowMatRef::to_col_major]
Sourcepub fn compute_nnz(&self) -> usize
pub fn compute_nnz(&self) -> usize
see [SymbolicSparseRowMatRef::compute_nnz]
Sourcepub fn row_range(&self, i: Idx<Rows>) -> Range<usize> ⓘ
pub fn row_range(&self, i: Idx<Rows>) -> Range<usize> ⓘ
see [SymbolicSparseRowMatRef::row_range]
Sourcepub unsafe fn row_range_unchecked(&self, i: Idx<Rows>) -> Range<usize> ⓘ
pub unsafe fn row_range_unchecked(&self, i: Idx<Rows>) -> Range<usize> ⓘ
see [SymbolicSparseRowMatRef::row_range_unchecked]
Sourcepub fn col_idx_of_row_raw(&self, i: Idx<Rows>) -> &[Idx<Cols, I>] ⓘ
pub fn col_idx_of_row_raw(&self, i: Idx<Rows>) -> &[Idx<Cols, I>] ⓘ
see [SymbolicSparseRowMatRef::col_idx_of_row_raw]
Sourcepub fn col_idx_of_row(
&self,
i: Idx<Rows>,
) -> impl '_ + Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<Cols>>
pub fn col_idx_of_row( &self, i: Idx<Rows>, ) -> impl '_ + Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<Cols>>
see [SymbolicSparseRowMatRef::col_idx_of_row]
Sourcepub fn as_shape<V: Shape, H: Shape>(
&self,
nrows: V,
ncols: H,
) -> SymbolicSparseRowMatRef<'_, I, V, H>
pub fn as_shape<V: Shape, H: Shape>( &self, nrows: V, ncols: H, ) -> SymbolicSparseRowMatRef<'_, I, V, H>
see [SymbolicSparseRowMatRef::as_shape]
Sourcepub fn into_shape<V: Shape, H: Shape>(
self,
nrows: V,
ncols: H,
) -> SymbolicSparseRowMat<I, V, H>
pub fn into_shape<V: Shape, H: Shape>( self, nrows: V, ncols: H, ) -> SymbolicSparseRowMat<I, V, H>
see [SymbolicSparseRowMatRef::as_shape]
Sourcepub fn as_dyn(&self) -> SymbolicSparseRowMatRef<'_, I>
pub fn as_dyn(&self) -> SymbolicSparseRowMatRef<'_, I>
see [SymbolicSparseRowMatRef::as_dyn]
Sourcepub fn into_dyn(self) -> SymbolicSparseRowMat<I>
pub fn into_dyn(self) -> SymbolicSparseRowMat<I>
see [SymbolicSparseRowMatRef::as_dyn]
Sourcepub fn as_ref(&self) -> SymbolicSparseRowMatRef<'_, I, Rows, Cols>
pub fn as_ref(&self) -> SymbolicSparseRowMatRef<'_, I, Rows, Cols>
Returns a view over the symbolic structure of self.
Sourcepub fn try_new_from_indices(
nrows: Rows,
ncols: Cols,
idx: &[Pair<Idx<Rows, I>, Idx<Cols, I>>],
) -> Result<(Self, Argsort<I>), CreationError>
pub fn try_new_from_indices( nrows: Rows, ncols: Cols, idx: &[Pair<Idx<Rows, I>, Idx<Cols, I>>], ) -> Result<(Self, Argsort<I>), CreationError>
create a new symbolic structure, and the corresponding order for the numerical values from pairs of indices
Sourcepub fn try_new_from_nonnegative_indices(
nrows: Rows,
ncols: Cols,
idx: &[Pair<MaybeIdx<Rows, I>, MaybeIdx<Cols, I>>],
) -> Result<(Self, Argsort<I>), CreationError>
pub fn try_new_from_nonnegative_indices( nrows: Rows, ncols: Cols, idx: &[Pair<MaybeIdx<Rows, I>, MaybeIdx<Cols, I>>], ) -> Result<(Self, Argsort<I>), CreationError>
create a new symbolic structure, and the corresponding order for the numerical values from pairs of indices
negative indices are ignored