Skip to content

Commit 8af091c

Browse files
more movement
1 parent e9c2394 commit 8af091c

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ version = "5.0.8"
44

55
[deps]
66
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
7+
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
78
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
89

910
[compat]
1011
ArrayInterfaceCore = "0.1"
12+
IfElse = "0.1"
1113
Static = "0.6"
1214
julia = "1.6"
1315

lib/ArrayInterfaceCore/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ authors = ["Zachary P. Christensen <[email protected]>"]
44
version = "0.1.0"
55

66
[deps]
7-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
8-
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
97
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
108
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
119
SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
1210

1311
[compat]
14-
Compat = "3.37"
15-
IfElse = "0.1"
1612
julia = "1.6"

lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
module ArrayInterfaceCore
22

3-
using IfElse
43
using LinearAlgebra
54
using LinearAlgebra: AbstractTriangular
65
using SparseArrays
76
using SuiteSparse
87

98
using Base.Cartesian
10-
import Compat
11-
129
using Base: @propagate_inbounds, tail, OneTo, LogicalIndex, Slice, ReinterpretArray,
1310
ReshapedArray, AbstractCartesianIndex
1411

src/ArrayInterface.jl

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,7 @@ import ArrayInterfaceCore: allowed_getindex, allowed_setindex!, aos_to_soa, buff
77
safevec, unsafe_reconstruct, zeromatrix
88

99
# ArrayIndex subtypes and methods
10-
import ArrayInterfaceCore: ArrayIndex, MatrixIndex, VectorIndex, BidiagonalIndex, TridiagonalIndex, StrideIndex
11-
# device types and methods
12-
import ArrayInterfaceCore: AbstractDevice, AbstractCPU, CPUTuple, CPUPointer, GPU, CPUIndex, CheckParent, device
13-
# range types and methods
14-
import ArrayInterfaceCore: OptionallyStaticStepRange, OptionallyStaticUnitRange, SOneTo,
15-
SUnitRange, indices, known_first, known_last, known_step, static_first, static_last, static_step
16-
# dimension methods
17-
import ArrayInterfaceCore: dimnames, known_dimnames, has_dimnames, from_parent_dims, to_dims, to_parent_dims
18-
# indexing methods
19-
import ArrayInterfaceCore: to_axes, to_axis, to_indices, to_index, getindex, setindex!,
20-
ndims_index, is_splat_index, fast_scalar_indexing
21-
# stride layout methods
22-
import ArrayInterfaceCore: strides, stride_rank, contiguous_axis_indicator, contiguous_batch_size,
23-
known_strides, known_offsets, offsets, offset1, known_offset1, contiguous_axis, dense_dims,
24-
defines_strides, is_column_major
25-
# axes types and methods
26-
import ArrayInterfaceCore: axes, axes_types, lazy_axes, LazyAxis
27-
# static sizing
28-
import ArrayInterfaceCore: size, known_size, known_length, static_length
10+
import ArrayInterfaceCore: ArrayIndex, MatrixIndex, VectorIndex, BidiagonalIndex, TridiagonalIndex
2911
# managing immutables
3012
import ArrayInterfaceCore: ismutable, can_change_size, can_setindex, deleteat, insert
3113
# constants
@@ -35,6 +17,8 @@ using Static
3517
using Static: Zero, One, nstatic, eq, ne, gt, ge, lt, le, eachop, eachop_tuple,
3618
permute, invariant_permutation, field_type, reduce_tup
3719

20+
using IfElse
21+
3822
const CanonicalInt = Union{Int,StaticInt}
3923
canonicalize(x::Integer) = Int(x)
4024
canonicalize(@nospecialize(x::StaticInt)) = x

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
33
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
44

55
[compat]
6+
IfElse = "0.1"

0 commit comments

Comments
 (0)