@@ -11,9 +11,9 @@ using SparseArrays
11
11
export CuSparseDeviceVector, CuSparseDeviceMatrixCSC, CuSparseDeviceMatrixCSR,
12
12
CuSparseDeviceMatrixBSR, CuSparseDeviceMatrixCOO
13
13
14
- struct CuSparseDeviceVector{Tv,Ti, A} <: AbstractSparseVector{Tv,Ti}
15
- iPtr:: CuDeviceVector{Ti, A }
16
- nzVal:: CuDeviceVector{Tv, A }
14
+ struct CuSparseDeviceVector{Tv,Ti,A} <: AbstractSparseVector{Tv,Ti}
15
+ iPtr:: CuDeviceVector{Ti,A,Ti }
16
+ nzVal:: CuDeviceVector{Tv,A,Ti }
17
17
len:: Int
18
18
nnz:: Ti
19
19
end
@@ -23,9 +23,9 @@ Base.size(g::CuSparseDeviceVector) = (g.len,)
23
23
SparseArrays. nnz (g:: CuSparseDeviceVector ) = g. nnz
24
24
25
25
struct CuSparseDeviceMatrixCSC{Tv,Ti,A} <: AbstractSparseMatrix{Tv,Ti}
26
- colPtr:: CuDeviceVector{Ti, A }
27
- rowVal:: CuDeviceVector{Ti, A }
28
- nzVal:: CuDeviceVector{Tv, A }
26
+ colPtr:: CuDeviceVector{Ti,A,Ti }
27
+ rowVal:: CuDeviceVector{Ti,A,Ti }
28
+ nzVal:: CuDeviceVector{Tv,A,Ti }
29
29
dims:: NTuple{2,Int}
30
30
nnz:: Ti
31
31
end
@@ -35,10 +35,10 @@ Base.size(g::CuSparseDeviceMatrixCSC) = g.dims
35
35
SparseArrays. nnz (g:: CuSparseDeviceMatrixCSC ) = g. nnz
36
36
37
37
struct CuSparseDeviceMatrixCSR{Tv,Ti,A} <: AbstractSparseMatrix{Tv,Ti}
38
- rowPtr:: CuDeviceVector{Ti, A }
39
- colVal:: CuDeviceVector{Ti, A }
40
- nzVal:: CuDeviceVector{Tv, A }
41
- dims:: NTuple{2, Int}
38
+ rowPtr:: CuDeviceVector{Ti,A,Ti }
39
+ colVal:: CuDeviceVector{Ti,A,Ti }
40
+ nzVal:: CuDeviceVector{Tv,A,Ti }
41
+ dims:: NTuple{2,Int}
42
42
nnz:: Ti
43
43
end
44
44
@@ -47,9 +47,9 @@ Base.size(g::CuSparseDeviceMatrixCSR) = g.dims
47
47
SparseArrays. nnz (g:: CuSparseDeviceMatrixCSR ) = g. nnz
48
48
49
49
struct CuSparseDeviceMatrixBSR{Tv,Ti,A} <: AbstractSparseMatrix{Tv,Ti}
50
- rowPtr:: CuDeviceVector{Ti, A }
51
- colVal:: CuDeviceVector{Ti, A }
52
- nzVal:: CuDeviceVector{Tv, A }
50
+ rowPtr:: CuDeviceVector{Ti,A,Ti }
51
+ colVal:: CuDeviceVector{Ti,A,Ti }
52
+ nzVal:: CuDeviceVector{Tv,A,Ti }
53
53
dims:: NTuple{2,Int}
54
54
blockDim:: Ti
55
55
dir:: Char
@@ -61,9 +61,9 @@ Base.size(g::CuSparseDeviceMatrixBSR) = g.dims
61
61
SparseArrays. nnz (g:: CuSparseDeviceMatrixBSR ) = g. nnz
62
62
63
63
struct CuSparseDeviceMatrixCOO{Tv,Ti,A} <: AbstractSparseMatrix{Tv,Ti}
64
- rowInd:: CuDeviceVector{Ti, A }
65
- colInd:: CuDeviceVector{Ti, A }
66
- nzVal:: CuDeviceVector{Tv, A }
64
+ rowInd:: CuDeviceVector{Ti,A,Ti }
65
+ colInd:: CuDeviceVector{Ti,A,Ti }
66
+ nzVal:: CuDeviceVector{Tv,A,Ti }
67
67
dims:: NTuple{2,Int}
68
68
nnz:: Ti
69
69
end
0 commit comments