diff --git a/src/BlockArraysExtensions/BlockArraysExtensions.jl b/src/BlockArraysExtensions/BlockArraysExtensions.jl index 98d58c1..c57906f 100644 --- a/src/BlockArraysExtensions/BlockArraysExtensions.jl +++ b/src/BlockArraysExtensions/BlockArraysExtensions.jl @@ -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,...]`)") diff --git a/src/backup/qr.jl b/src/backup/qr.jl index aac889c..4cd4527 100644 --- a/src/backup/qr.jl +++ b/src/backup/qr.jl @@ -1,4 +1,4 @@ -using ...SparseArrayDOKs: SparseArrayDOK +using ...SparseArraysBase: SparseArrayDOK # Check if the matrix has 1 or fewer entries # per row/column. diff --git a/src/blocksparsearray/blocksparsearray.jl b/src/blocksparsearray/blocksparsearray.jl index 24de544..19de9fd 100644 --- a/src/blocksparsearray/blocksparsearray.jl +++ b/src/blocksparsearray/blocksparsearray.jl @@ -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 diff --git a/src/blocksparsearray/defaults.jl b/src/blocksparsearray/defaults.jl index 119b07c..ab126aa 100644 --- a/src/blocksparsearray/defaults.jl +++ b/src/blocksparsearray/defaults.jl @@ -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( diff --git a/test/test_basics.jl b/test/test_basics.jl index fe4ca22..13eda13 100644 --- a/test/test_basics.jl +++ b/test/test_basics.jl @@ -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")