Skip to content

Commit

Permalink
fixed bug determining matrix dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Apr 29, 2017
1 parent fd5a515 commit bb2f858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SparseMatrixCOO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end

function size(A::SparseMatrixCOO)
isempty(A) && return (0, 0)
return maximum(A.I), maximum(A.J)
return maximum(A.I[1:A.cnt]), maximum(A.J[1:A.cnt])
end

function size(A::SparseMatrixCOO, idx::Int)
Expand Down

0 comments on commit bb2f858

Please sign in to comment.