diff --git a/Project.toml b/Project.toml index e7f96b8..0c3669b 100644 --- a/Project.toml +++ b/Project.toml @@ -8,6 +8,7 @@ Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" +SciMLPublic = "431bcebd-1456-4ced-9d72-93c2757fff0b" Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" [weakdeps] @@ -23,6 +24,7 @@ ArrayInterface = "7" Compat = "4" IfElse = "0.1" PrecompileTools = "1" +SciMLPublic = "1.0.0" Static = "0.8, 1" julia = "1.10" diff --git a/src/StaticArrayInterface.jl b/src/StaticArrayInterface.jl index ee96061..2100a47 100644 --- a/src/StaticArrayInterface.jl +++ b/src/StaticArrayInterface.jl @@ -60,6 +60,18 @@ using PrecompileTools import Compat end +using SciMLPublic: @public +@public BroadcastAxis, LazyAxis, OptionallyStaticStepRange, +OptionallyStaticUnitRange, SOneTo, SUnitRange, StrideIndex +@public static_axes, +axes_types, broadcast_axis, deleteat, dense_dims, from_parent_dims, getindex, indices, +insert, static_length, lazy_axes, offset1, offsets, setindex!, static_size, static_strides, +to_axes, to_axis, to_dims, to_index, static_to_indices, to_parent_dims, unsafe_reconstruct +@public contiguous_axis, contiguous_axis_indicator, contiguous_batch_size, dimnames, +has_dimnames, has_parent, is_column_major, is_lazy_conjugate, +is_splat_index, known_dimnames, known_first, known_last, known_length, +known_offset1, known_offsets, known_size, known_step, known_strides + """ StrideIndex(x) Subtype of `ArrayIndex` that transforms and index using stride layout information