Skip to content

Commit

Permalink
Remove throwing squeeze(::SparseMatrixCSC, ::Dims).
Browse files Browse the repository at this point in the history
The default implementation in abstractarray.jl does the right thing now,
so no need to throw an error instead of letting it work.
  • Loading branch information
martinholters committed Feb 26, 2016
1 parent 526a057 commit 4563526
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions base/sparse/sparsematrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2692,8 +2692,6 @@ function blkdiag(X::SparseMatrixCSC...)
SparseMatrixCSC(m, n, colptr, rowval, nzval)
end

squeeze(S::SparseMatrixCSC, dims::Dims) = throw(ArgumentError("squeeze is not available for sparse matrices"))

## Structure query functions
issym(A::SparseMatrixCSC) = is_hermsym(A, IdFun())

Expand Down

0 comments on commit 4563526

Please sign in to comment.