Skip to content

Commit aad1ea6

Browse files
Merge pull request #43 from Tokazama/master
Support public API with SciMLPublic
2 parents 1a1c46d + bf96200 commit aad1ea6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
88
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
11+
SciMLPublic = "431bcebd-1456-4ced-9d72-93c2757fff0b"
1112
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
1213

1314
[weakdeps]
@@ -23,6 +24,7 @@ ArrayInterface = "7"
2324
Compat = "4"
2425
IfElse = "0.1"
2526
PrecompileTools = "1"
27+
SciMLPublic = "1.0.0"
2628
Static = "0.8, 1"
2729
julia = "1.10"
2830

src/StaticArrayInterface.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ using PrecompileTools
6060
import Compat
6161
end
6262

63+
using SciMLPublic: @public
64+
@public BroadcastAxis, LazyAxis, OptionallyStaticStepRange,
65+
OptionallyStaticUnitRange, SOneTo, SUnitRange, StrideIndex
66+
@public static_axes,
67+
axes_types, broadcast_axis, deleteat, dense_dims, from_parent_dims, getindex, indices,
68+
insert, static_length, lazy_axes, offset1, offsets, setindex!, static_size, static_strides,
69+
to_axes, to_axis, to_dims, to_index, static_to_indices, to_parent_dims, unsafe_reconstruct
70+
@public contiguous_axis, contiguous_axis_indicator, contiguous_batch_size, dimnames,
71+
has_dimnames, has_parent, is_column_major, is_lazy_conjugate,
72+
is_splat_index, known_dimnames, known_first, known_last, known_length,
73+
known_offset1, known_offsets, known_size, known_step, known_strides
74+
6375
"""
6476
StrideIndex(x)
6577
Subtype of `ArrayIndex` that transforms and index using stride layout information

0 commit comments

Comments
 (0)