-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SparseArraysBase] Delete unnecessary using statements (#1598)
* [SparseArraysBase] Delete unnecessary using statements * [NDTensors] Bump to v0.3.74
- Loading branch information
Showing
7 changed files
with
26 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "NDTensors" | ||
uuid = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf" | ||
authors = ["Matthew Fishman <[email protected]>"] | ||
version = "0.3.73" | ||
version = "0.3.74" | ||
|
||
[deps] | ||
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" | ||
|
10 changes: 4 additions & 6 deletions
10
NDTensors/src/lib/SparseArraysBase/src/abstractsparsearray/base.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
using ..SparseArraysBase: SparseArraysBase | ||
|
||
# Base | ||
function Base.:(==)(a1::AnyAbstractSparseArray, a2::AnyAbstractSparseArray) | ||
return SparseArraysBase.sparse_isequal(a1, a2) | ||
return sparse_isequal(a1, a2) | ||
end | ||
|
||
function Base.reshape(a::AnyAbstractSparseArray, dims::Tuple{Vararg{Int}}) | ||
return SparseArraysBase.sparse_reshape(a, dims) | ||
return sparse_reshape(a, dims) | ||
end | ||
|
||
function Base.zero(a::AnyAbstractSparseArray) | ||
return SparseArraysBase.sparse_zero(a) | ||
return sparse_zero(a) | ||
end | ||
|
||
function Base.one(a::AnyAbstractSparseArray) | ||
return SparseArraysBase.sparse_one(a) | ||
return sparse_one(a) | ||
end |
14 changes: 6 additions & 8 deletions
14
NDTensors/src/lib/SparseArraysBase/src/abstractsparsearray/baseinterface.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
using ..SparseArraysBase: SparseArraysBase | ||
|
||
Base.size(a::AbstractSparseArray) = error("Not implemented") | ||
|
||
function Base.similar(a::AbstractSparseArray, elt::Type, dims::Tuple{Vararg{Int}}) | ||
return error("Not implemented") | ||
end | ||
|
||
function Base.getindex(a::AbstractSparseArray, I...) | ||
return SparseArraysBase.sparse_getindex(a, I...) | ||
return sparse_getindex(a, I...) | ||
end | ||
|
||
# Fixes ambiguity error with `ArrayLayouts`. | ||
function Base.getindex(a::AbstractSparseMatrix, I1::AbstractVector, I2::AbstractVector) | ||
return SparseArraysBase.sparse_getindex(a, I1, I2) | ||
return sparse_getindex(a, I1, I2) | ||
end | ||
|
||
# Fixes ambiguity error with `ArrayLayouts`. | ||
function Base.getindex( | ||
a::AbstractSparseMatrix, I1::AbstractUnitRange, I2::AbstractUnitRange | ||
) | ||
return SparseArraysBase.sparse_getindex(a, I1, I2) | ||
return sparse_getindex(a, I1, I2) | ||
end | ||
|
||
function Base.isassigned(a::AbstractSparseArray, I::Integer...) | ||
return SparseArraysBase.sparse_isassigned(a, I...) | ||
return sparse_isassigned(a, I...) | ||
end | ||
|
||
function Base.setindex!(a::AbstractSparseArray, I...) | ||
return SparseArraysBase.sparse_setindex!(a, I...) | ||
return sparse_setindex!(a, I...) | ||
end | ||
|
||
function Base.fill!(a::AbstractSparseArray, value) | ||
return SparseArraysBase.sparse_fill!(a, value) | ||
return sparse_fill!(a, value) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
NDTensors/src/lib/SparseArraysBase/src/sparsearraydok/arraylayouts.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
NDTensors/src/lib/SparseArraysBase/src/sparsearraydok/defaults.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
795042b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=NDTensors
795042b
There was a problem hiding this comment.
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/119761
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
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: