API Reference
This page contains the complete API documentation for DeviceSparseArrays.jl.
DeviceSparseArrays.AbstractDeviceSparseArray
DeviceSparseArrays.DeviceSparseMatrixCSC
DeviceSparseArrays.DeviceSparseMatrixCSR
DeviceSparseArrays.DeviceSparseVector
Types
DeviceSparseArrays.AbstractDeviceSparseArray
— TypeAbstractDeviceSparseArray{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.
DeviceSparseArrays.DeviceSparseVector
— TypeDeviceSparseVector{Tv,Ti,IndT<:AbstractVector{Ti},ValT<:AbstractVector{Tv}} <: AbstractDeviceSparseVector{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 vector nzind::IndT - indices of stored (typically nonzero) entries (1-based) nzval::ValT - stored values
Constructors validate that the index and value vectors have matching length.
DeviceSparseArrays.DeviceSparseMatrixCSC
— TypeDeviceSparseMatrixCSC{Tv,Ti,ColPtrT<RowValT,NzValT} <: AbstractDeviceSparseMatrix{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 rows n::Int - number of columns colptr::ColPtrT - column pointer array (length n+1) rowval::RowValT - row indices of stored entries nzval::NzValT - stored values
DeviceSparseArrays.DeviceSparseMatrixCSR
— TypeDeviceSparseMatrixCSR{Tv,Ti,RowPtrT<:ColValT,NzValT} <: AbstractDeviceSparseMatrix{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 rows n::Int - number of columns rowptr::RowPtrT - row pointer array (length m+1) colval::ColValT - column indices of stored entries nzval::NzValT - stored values