Skip to content

Commit

Permalink
[SparseArraysBase] Absorb SparseArrayDOKs (#1592)
Browse files Browse the repository at this point in the history
* [SparseArraysBase] Absorb `SparseArrayDOKs`

* [NDTensors] Bump to v0.3.71
  • Loading branch information
mtfishman authored Nov 16, 2024
1 parent 82b050f commit 2e57dec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BlockArraysExtensions/BlockArraysExtensions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ function view!(a::AbstractArray{<:Any,N}, index::Vararg{BlockIndexRange{1},N}) w
end

using MacroTools: @capture
using NDTensors.SparseArrayDOKs: is_getindex_expr
using NDTensors.SparseArraysBase: is_getindex_expr
macro view!(expr)
if !is_getindex_expr(expr)
error("@view must be used with getindex syntax (as `@view! a[i,j,...]`)")
Expand Down
2 changes: 1 addition & 1 deletion src/backup/qr.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ...SparseArrayDOKs: SparseArrayDOK
using ...SparseArraysBase: SparseArrayDOK

# Check if the matrix has 1 or fewer entries
# per row/column.
Expand Down
2 changes: 1 addition & 1 deletion src/blocksparsearray/blocksparsearray.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using BlockArrays: BlockArrays, Block, BlockedUnitRange, blockedrange, blocklength
using Dictionaries: Dictionary
using ..SparseArrayDOKs: SparseArrayDOK
using ..SparseArraysBase: SparseArrayDOK

# TODO: Delete this.
## using BlockArrays: blocks
Expand Down
2 changes: 1 addition & 1 deletion src/blocksparsearray/defaults.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using BlockArrays: Block
using Dictionaries: Dictionary
using ..SparseArrayDOKs: SparseArrayDOK
using ..SparseArraysBase: SparseArrayDOK

# Construct the sparse structure storing the blocks
function default_blockdata(
Expand Down
2 changes: 1 addition & 1 deletion test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ using NDTensors.BlockSparseArrays:
view!
using NDTensors.GPUArraysCoreExtensions: cpu
using NDTensors.SparseArraysBase: stored_length
using NDTensors.SparseArrayDOKs: SparseArrayDOK, SparseMatrixDOK, SparseVectorDOK
using NDTensors.SparseArraysBase: SparseArrayDOK, SparseMatrixDOK, SparseVectorDOK
using NDTensors.TensorAlgebra: contract
using Test: @test, @test_broken, @test_throws, @testset, @inferred
include("TestBlockSparseArraysUtils.jl")
Expand Down

0 comments on commit 2e57dec

Please sign in to comment.