Skip to content

Commit c147bb6

Browse files
Fix docstrings and add Julia v1.12 CI
1 parent 85f9919 commit c147bb6

File tree

6 files changed

+24
-22
lines changed

6 files changed

+24
-22
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
version:
2727
- '1.10'
2828
- '1.11'
29+
- '1.12'
2930
- 'pre'
3031
os:
3132
- ubuntu-latest

docs/src/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ AbstractDeviceSparseArray
1616
DeviceSparseVector
1717
DeviceSparseMatrixCSC
1818
DeviceSparseMatrixCSR
19+
DeviceSparseMatrixCOO
1920
```
2021

2122
## Functions

src/matrix_coo.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Coordinate (COO) sparse matrix with generic storage vectors for row indices,
77
column indices, and nonzero values. Buffer types (e.g. `Vector`, GPU array
88
types) enable dispatch on device characteristics.
99
10-
Fields:
11-
m::Int - number of rows
12-
n::Int - number of columns
13-
rowind::RowIndT - row indices of stored entries
14-
colind::ColIndT - column indices of stored entries
15-
nzval::NzValT - stored values
10+
# Fields
11+
- `m::Int` - number of rows
12+
- `n::Int` - number of columns
13+
- `rowind::RowIndT` - row indices of stored entries
14+
- `colind::ColIndT` - column indices of stored entries
15+
- `nzval::NzValT` - stored values
1616
"""
1717
struct DeviceSparseMatrixCOO{
1818
Tv,

src/matrix_csc.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Compressed Sparse Column (CSC) matrix with generic storage vectors for column
77
pointer, row indices, and nonzero values. Buffer types (e.g. `Vector`, GPU array
88
types) enable dispatch on device characteristics.
99
10-
Fields:
11-
m::Int - number of rows
12-
n::Int - number of columns
13-
colptr::ColPtrT - column pointer array (length n+1)
14-
rowval::RowValT - row indices of stored entries
15-
nzval::NzValT - stored values
10+
# Fields
11+
- `m::Int` - number of rows
12+
- `n::Int` - number of columns
13+
- `colptr::ColPtrT` - column pointer array (length n+1)
14+
- `rowval::RowValT` - row indices of stored entries
15+
- `nzval::NzValT` - stored values
1616
"""
1717
struct DeviceSparseMatrixCSC{
1818
Tv,

src/matrix_csr.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Compressed Sparse Row (CSR) matrix with generic storage vectors for row
77
pointer, column indices, and nonzero values. Buffer types (e.g. `Vector`, GPU array
88
types) enable dispatch on device characteristics.
99
10-
Fields:
11-
m::Int - number of rows
12-
n::Int - number of columns
13-
rowptr::RowPtrT - row pointer array (length m+1)
14-
colval::ColValT - column indices of stored entries
15-
nzval::NzValT - stored values
10+
# Fields
11+
- `m::Int` - number of rows
12+
- `n::Int` - number of columns
13+
- `rowptr::RowPtrT` - row pointer array (length m+1)
14+
- `colval::ColValT` - column indices of stored entries
15+
- `nzval::NzValT` - stored values
1616
"""
1717
struct DeviceSparseMatrixCSR{
1818
Tv,

src/vector.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
Sparse vector with generic index and value storage containers which may reside
77
on different devices. The logical length is stored along with index/value buffers.
88
9-
Fields:
10-
n::Ti - logical length of the vector
11-
nzind::IndT - indices of stored (typically nonzero) entries (1-based)
12-
nzval::ValT - stored values
9+
# Fields
10+
- `n::Ti` - logical length of the vector
11+
- `nzind::IndT` - indices of stored (typically nonzero) entries (1-based)
12+
- `nzval::ValT` - stored values
1313
1414
Constructors validate that the index and value vectors have matching length.
1515
"""

0 commit comments

Comments
 (0)