API Reference
This page contains the complete API documentation for GenericSparseArrays.jl.
GenericSparseArrays.AbstractGenericSparseArrayGenericSparseArrays.GenericSparseMatrixCOOGenericSparseArrays.GenericSparseMatrixCSCGenericSparseArrays.GenericSparseMatrixCSRGenericSparseArrays.GenericSparseVector
Types
GenericSparseArrays.AbstractGenericSparseArray — Type
AbstractGenericSparseArray{Tv,Ti,N} <: AbstractSparseArray{Tv,Ti,N}Supertype for sparse arrays that can have their underlying storage on various devices (CPU, GPU, accelerators). This package keeps the hierarchy backend-agnostic; dispatch is expected to leverage the concrete types of internal buffers (e.g. Vector, CuArray, etc.) rather than an explicit backend flag.
GenericSparseArrays.GenericSparseVector — Type
GenericSparseVector{Tv,Ti,IndT<:AbstractVector{Ti},ValT<:AbstractVector{Tv}} <: AbstractGenericSparseVector{Tv,Ti}Sparse vector with generic index and value storage containers which may reside on different devices. The logical length is stored along with index/value buffers.
Fields
n::Ti- logical length of the vectornzind::IndT- indices of stored (typically nonzero) entries (1-based)nzval::ValT- stored values
Constructors validate that the index and value vectors have matching length.
GenericSparseArrays.GenericSparseMatrixCSC — Type
GenericSparseMatrixCSC{Tv,Ti,ColPtrT,RowValT,NzValT} <: AbstractGenericSparseMatrix{Tv,Ti}Compressed Sparse Column (CSC) matrix with generic storage vectors for column pointer, row indices, and nonzero values. Buffer types (e.g. Vector, GPU array types) enable dispatch on device characteristics.
Fields
m::Int- number of rowsn::Int- number of columnscolptr::ColPtrT- column pointer array (length n+1)rowval::RowValT- row indices of stored entriesnzval::NzValT- stored values
GenericSparseArrays.GenericSparseMatrixCSR — Type
GenericSparseMatrixCSR{Tv,Ti,RowPtrT,ColValT,NzValT} <: AbstractGenericSparseMatrix{Tv,Ti}Compressed Sparse Row (CSR) matrix with generic storage vectors for row pointer, column indices, and nonzero values. Buffer types (e.g. Vector, GPU array types) enable dispatch on device characteristics.
Fields
m::Int- number of rowsn::Int- number of columnsrowptr::RowPtrT- row pointer array (length m+1)colval::ColValT- column indices of stored entriesnzval::NzValT- stored values
GenericSparseArrays.GenericSparseMatrixCOO — Type
GenericSparseMatrixCOO{Tv,Ti,RowIndT<:AbstractVector{Ti},ColIndT<:AbstractVector{Ti},NzValT<:AbstractVector{Tv}} <: AbstractGenericSparseMatrix{Tv,Ti}Coordinate (COO) sparse matrix with generic storage vectors for row indices, column indices, and nonzero values. Buffer types (e.g. Vector, GPU array types) enable dispatch on device characteristics.
Fields
m::Int- number of rowsn::Int- number of columnsrowind::RowIndT- row indices of stored entriescolind::ColIndT- column indices of stored entriesnzval::NzValT- stored values