Skip to content

Commit

Permalink
Merge pull request #191 from willow-ahrens/rk/cidx
Browse files Browse the repository at this point in the history
Missing Cindex methods, for SparseMatrixCSC ctor
  • Loading branch information
willow-ahrens authored May 8, 2023
2 parents 15cc84a + 5d14542 commit 2423d38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,8 @@ end

for op in [:<, :<=, :isless]
@eval @inline Base.$op(a::Cindex{T}, b::Cindex{T}) where {T} = $op(T(a), T(b))
end

for op in [:typemin, :typemax]
@eval @inline Base.$op(::Type{Cindex{T}}) where {T} = Base.$op(T)
end

0 comments on commit 2423d38

Please sign in to comment.