File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ row indices. The internal representation of `SparseMatrixCSC` is as follows:
20
20
struct SparseMatrixCSC{Tv,Ti<: Integer } <: AbstractSparseMatrix{Tv,Ti}
21
21
m:: Int # Number of rows
22
22
n:: Int # Number of columns
23
- colptr:: Vector{Ti} # Column i is in colptr[i ]:(colptr[i +1]-1)
23
+ colptr:: Vector{Ti} # Column j is in colptr[j ]:(colptr[j +1]-1)
24
24
rowval:: Vector{Ti} # Row indices of stored values
25
25
nzval:: Vector{Tv} # Stored values, typically nonzeros
26
26
end
Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ column. In conjunction with [`nonzeros`](@ref) and
176
176
rows = rowvals(A)
177
177
vals = nonzeros(A)
178
178
m, n = size(A)
179
- for i = 1:n
180
- for j in nzrange(A, i )
181
- row = rows[j ]
182
- val = vals[j ]
179
+ for j = 1:n
180
+ for i in nzrange(A, j )
181
+ row = rows[i ]
182
+ val = vals[i ]
183
183
# perform sparse wizardry...
184
184
end
185
185
end
You can’t perform that action at this time.
0 commit comments