Skip to content

Commit e26b026

Browse files
committed
fix call to push_coo!
1 parent 212d095 commit e26b026

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SparseMatrixCSC.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313
Inserts entries in COO vectors for further building a SparseMatrixCSC.
1414
"""
1515
function push_coo!(I::Vector,J::Vector,V::Vector,ik::Integer,jk::Integer,vk::Number)
16-
push_coo!(SparseMatrixCSC,J,V,ik,jk,vk)
16+
push_coo!(SparseMatrixCSC,I,J,V,ik,jk,vk)
1717
end
1818

1919
"""

test/SparseMatrixCSC.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
J = Vector{Int}()
99
V = Vector{T}()
1010
for (ik, jk, vk) in zip(rand(1:maxrows, maxnz), rand(1:maxcols, maxnz), rand(1:T(maxnz), maxnz))
11-
push_coo!(SparseMatrixCSC,I,J,V,ik,jk,vk)
11+
push_coo!(I,J,V,ik,jk,vk)
1212
end
13-
finalize_coo!(SparseMatrixCSC,I,J,V,maxcols,maxrows)
13+
finalize_coo!(I,J,V,maxcols,maxrows)
1414
CSC = sparse(I, J, V, maxcols,maxrows)
1515

1616
for col = 1:maxcols

0 commit comments

Comments
 (0)