-
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] Rename
SparseArrayInterface
to SparseArraysBase
(
- Loading branch information
Showing
78 changed files
with
248 additions
and
251 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
NDTensors/src/backup/arraystorage/blocksparsearray/storage/contract.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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/backup/arraystorage/diagonalarray/storage/contract.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
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
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
6 changes: 3 additions & 3 deletions
6
...Ext/BlockArraysSparseArrayInterfaceExt.jl → ...BaseExt/BlockArraysSparseArraysBaseExt.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,11 +1,11 @@ | ||
using BlockArrays: AbstractBlockArray, BlocksView | ||
using ..SparseArrayInterface: SparseArrayInterface, stored_length | ||
using ..SparseArraysBase: SparseArraysBase, stored_length | ||
|
||
function SparseArrayInterface.stored_length(a::AbstractBlockArray) | ||
function SparseArraysBase.stored_length(a::AbstractBlockArray) | ||
return sum(b -> stored_length(b), blocks(a); init=zero(Int)) | ||
end | ||
|
||
# TODO: Handle `BlocksView` wrapping a sparse array? | ||
function SparseArrayInterface.storage_indices(a::BlocksView) | ||
function SparseArraysBase.storage_indices(a::BlocksView) | ||
return CartesianIndices(a) | ||
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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/BlockSparseArrays/src/abstractblocksparsearray/abstractblocksparsearray.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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/BlockSparseArrays/src/abstractblocksparsearray/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
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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/BlockSparseArrays/src/blocksparsearrayinterface/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
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
8 changes: 4 additions & 4 deletions
8
NDTensors/src/lib/BlockSparseArrays/src/blocksparsearrayinterface/cat.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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/DiagonalArrays/src/abstractdiagonalarray/abstractdiagonalarray.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,3 +1,3 @@ | ||
using ..SparseArrayInterface: AbstractSparseArray | ||
using ..SparseArraysBase: AbstractSparseArray | ||
|
||
abstract type AbstractDiagonalArray{T,N} <: AbstractSparseArray{T,N} end |
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/DiagonalArrays/src/abstractdiagonalarray/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
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
10 changes: 5 additions & 5 deletions
10
NDTensors/src/lib/DiagonalArrays/src/abstractdiagonalarray/sparsearrayinterface.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
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
3 changes: 0 additions & 3 deletions
3
.../ext/NamedDimsArraysSparseArrayInterfaceExt/src/NamedDimsArraysSparseArrayInterfaceExt.jl
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...msArrays/ext/NamedDimsArraysSparseArraysBaseExt/src/NamedDimsArraysSparseArraysBaseExt.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module NamedDimsArraysSparseArraysBaseExt | ||
include("densearray.jl") | ||
end |
4 changes: 2 additions & 2 deletions
4
...SparseArrayInterfaceExt/src/densearray.jl → ...raysSparseArraysBaseExt/src/densearray.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,8 +1,8 @@ | ||
using ..NamedDimsArrays: AbstractNamedDimsArray, dimnames, named, unname | ||
using ...SparseArrayInterface: SparseArrayInterface, densearray | ||
using ...SparseArraysBase: SparseArraysBase, densearray | ||
|
||
# TODO: Use `Adapt` or some kind of rewrap function like in | ||
# ArrayInterface.jl (https://github.com/JuliaArrays/ArrayInterface.jl/issues/136) | ||
function SparseArrayInterface.densearray(na::AbstractNamedDimsArray) | ||
function SparseArraysBase.densearray(na::AbstractNamedDimsArray) | ||
return named(densearray(unname(na)), dimnames(na)) | ||
end |
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
...sSparseArrayInterfaceExt/test/runtests.jl → ...rraysSparseArraysBaseExt/test/runtests.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
2 changes: 1 addition & 1 deletion
2
NDTensors/src/lib/NamedDimsArrays/test/test_NamedDimsArraysSparseArrayInterfaceExt.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,5 +1,5 @@ | ||
using Test: @testset | ||
|
||
@testset "NamedDimsArrays $(@__FILE__)" begin | ||
include("../ext/NamedDimsArraysSparseArrayInterfaceExt/test/runtests.jl") | ||
include("../ext/NamedDimsArraysSparseArraysBaseExt/test/runtests.jl") | ||
end |
Oops, something went wrong.