Skip to content

Commit

Permalink
remove the last eye method (#25153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Dec 18, 2017
1 parent 3cae287 commit 7fb5d27
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 @@ -1457,8 +1457,6 @@ function spzeros(::Type{Tv}, ::Type{Ti}, sz::Tuple{Integer,Integer}) where {Tv,
spzeros(Tv, Ti, sz[1], sz[2])
end

eye(S::SparseMatrixCSC{T}) where {T} = SparseMatrixCSC{T}(I, size(S))

function one(S::SparseMatrixCSC{T}) where T
S.m == S.n || throw(DimensionMismatch("multiplicative identity only defined for square matrices"))
return SparseMatrixCSC{T}(I, S.m, S.n)
Expand Down

0 comments on commit 7fb5d27

Please sign in to comment.