Skip to content

Commit

Permalink
avoid similar of IndexMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
daanhb committed Nov 28, 2022
1 parent 372c637 commit f0abbc1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/util/arrays/specialarrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ Base.size(A::IndexMatrix) = isextensionmatrix(A) ?
(prod(_original_size(A)),_linear_size(A)) :
(_linear_size(A),prod(_original_size(A)))

similar(A::IndexMatrix{S,EXTENSION}, ::Type{T}) where {S,T,EXTENSION} = IndexMatrix{T,EXTENSION}(_original_size(A), subindices(A))
# The method below is moved to SparseArrays for now
similar(A::IndexMatrix, ::Type{T}, dims::Union{Dims{1},Dims{2}}) where {T} = spzeros(T, dims...)

Expand Down

3 comments on commit f0abbc1

@daanhb
Copy link
Member Author

@daanhb daanhb commented on f0abbc1 Nov 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #54

@daanhb
Copy link
Member Author

@daanhb daanhb commented on f0abbc1 Nov 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/73007

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.4 -m "<description of version>" f0abbc1a504048742d050c567f1cc14d5f35cae3
git push origin v0.5.4

Please sign in to comment.