Skip to content

Commit 40dc0a3

Browse files
committed
Update usings
1 parent 3b67082 commit 40dc0a3

File tree

35 files changed

+38
-40
lines changed

35 files changed

+38
-40
lines changed

NDTensors/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67"
2828
StridedViews = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143"
2929
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
3030
TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6"
31-
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
3231
VectorInterface = "409d34a3-91d5-4945-b6ec-7529ddf182d8"
3332

3433
[weakdeps]
@@ -88,7 +87,6 @@ StridedViews = "0.2.2, 0.3, 0.4"
8887
TBLIS = "0.2"
8988
TimerOutputs = "0.5.5"
9089
TupleTools = "1.2.0"
91-
TypeParameterAccessors = "0.3"
9290
VectorInterface = "0.4.2, 0.5"
9391
cuTENSOR = "2"
9492
julia = "1.10"

NDTensors/src/abstractarray/generic_array_constructors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TypeParameterAccessors:
1+
using .Vendored.TypeParameterAccessors:
22
unwrap_array_type,
33
specify_default_type_parameters,
44
specify_type_parameters,

NDTensors/src/abstractarray/iscu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TypeParameterAccessors: unwrap_array_type
1+
using .Vendored.TypeParameterAccessors: unwrap_array_type
22
# TODO: Make `isgpu`, `ismtl`, etc.
33
# For `isgpu`, will require a `NDTensorsGPUArrayCoreExt`.
44
iscu(A::AbstractArray) = iscu(typeof(A))

NDTensors/src/abstractarray/set_types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TypeParameterAccessors: TypeParameterAccessors
1+
using .Vendored.TypeParameterAccessors: TypeParameterAccessors
22

33
"""
44
# Do we still want to define things like this?

NDTensors/src/abstractarray/similar.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Base: DimOrInd, Dims, OneTo
2-
using TypeParameterAccessors: IsWrappedArray, unwrap_array_type, set_eltype, similartype
2+
using .Vendored.TypeParameterAccessors: IsWrappedArray, unwrap_array_type, set_eltype, similartype
33

44
## Custom `NDTensors.similar` implementation.
55
## More extensive than `Base.similar`.

NDTensors/src/adapt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ double_precision(x) = fmap(x -> adapt(double_precision(eltype(x)), x), x)
2727
# Used to adapt `EmptyStorage` types
2828
#
2929

30-
using TypeParameterAccessors: specify_type_parameters
30+
using .Vendored.TypeParameterAccessors: specify_type_parameters
3131
function adapt_storagetype(to::Type{<:AbstractVector}, x::Type{<:TensorStorage})
3232
return set_datatype(x, specify_type_parameters(to, eltype, eltype(x)))
3333
end

NDTensors/src/blocksparse/blockdims.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TypeParameterAccessors: TypeParameterAccessors
1+
using .Vendored.TypeParameterAccessors: TypeParameterAccessors
22

33
"""
44
BlockDim

NDTensors/src/blocksparse/blocksparsetensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using SparseArrays: nnz
2-
using TypeParameterAccessors: similartype
2+
using .Vendored.TypeParameterAccessors: similartype
33

44
#
55
# BlockSparseTensor (Tensor using BlockSparse storage)
@@ -258,7 +258,7 @@ end
258258
# Defaults to adding zeros.
259259
# Returns the offset of the new block added.
260260
# XXX rename to insertblock!, no need to return offset
261-
using TypeParameterAccessors: unwrap_array_type
261+
using .Vendored.TypeParameterAccessors: unwrap_array_type
262262
using .Expose: Exposed, expose, unexpose
263263
function insertblock_offset!(T::BlockSparseTensor{ElT, N}, newblock::Block{N}) where {ElT, N}
264264
newdim = blockdim(T, newblock)
@@ -792,7 +792,7 @@ end
792792
# <fermions>
793793
permfactor(perm, block, inds) = 1
794794

795-
using TypeParameterAccessors: set_type_parameters, parenttype
795+
using .Vendored.TypeParameterAccessors: set_type_parameters, parenttype
796796
function permutedims!(
797797
R::BlockSparseTensor{<:Number, N},
798798
T::BlockSparseTensor{<:Number, N},

NDTensors/src/blocksparse/diagblocksparse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using LinearAlgebra: LinearAlgebra
2-
using TypeParameterAccessors: similartype
2+
using .Vendored.TypeParameterAccessors: similartype
33

44
export DiagBlockSparse, DiagBlockSparseTensor
55

NDTensors/src/blocksparse/linearalgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TypeParameterAccessors: unwrap_array_type
1+
using .Vendored.TypeParameterAccessors: unwrap_array_type
22
using .Expose: expose
33
const BlockSparseMatrix{ElT, StoreT, IndsT} = BlockSparseTensor{ElT, 2, StoreT, IndsT}
44
const DiagBlockSparseMatrix{ElT, StoreT, IndsT} = DiagBlockSparseTensor{ElT, 2, StoreT, IndsT}

0 commit comments

Comments
 (0)