diff --git a/previews/PR872/404.html b/previews/PR872/404.html new file mode 100644 index 000000000..86072eb63 --- /dev/null +++ b/previews/PR872/404.html @@ -0,0 +1,25 @@ + + + + + + 404 | DimensionalData.jl + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/previews/PR872/api/dimensions.html b/previews/PR872/api/dimensions.html new file mode 100644 index 000000000..3d267a5df --- /dev/null +++ b/previews/PR872/api/dimensions.html @@ -0,0 +1,184 @@ + + + + + + Dimensions | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Dimensions

Dimensions are kept in the sub-module Dimensions.

DimensionalData.Dimensions Module
julia
Dimensions

Sub-module for Dimensions wrappers, and operations on them used in DimensionalData.jl.

To load Dimensions types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Dimensions

source

Dimensions have a type-hierarchy that organises plotting and dimension matching.

DimensionalData.Dimensions.Dimension Type
julia
Dimension

Abstract supertype of all dimension types.

Example concrete implementations are X, Y, Z, Ti (Time), and the custom Dim dimension.

Dimensions label the axes of an AbstractDimArray, or other dimensional objects, and are used to index into an array.

They may also wrap lookup values for each array axis. This may be any AbstractVector matching the array axis length, but will usually be converted to a Lookup when use in a constructed object.

A Lookup gives more details about the dimension, such as that it is Categorical or Sampled as Points or Intervals along some transect. DimensionalData will attempt to guess the lookup from the passed-in index value.

Example:

julia
using DimensionalData, Dates
+
+x = X(2:2:10)
+y = Y(['a', 'b', 'c'])
+ti = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
+
+A = DimArray(zeros(3, 5, 12), (y, x, ti))
+
+# output
+
+╭─────────────────────────────╮
+3×5×12 DimArray{Float64, 3} │
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+ Y  Categorical{Char} ['a', 'b', 'c'] ForwardOrdered,
+ X  Sampled{Int64} 2:2:10 ForwardOrdered Regular Points,
+  ↗ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+   2    4    6    8    10
+  'a'  0.0  0.0  0.0  0.0   0.0
+  'b'  0.0  0.0  0.0  0.0   0.0
+  'c'  0.0  0.0  0.0  0.0   0.0

For simplicity, the same Dimension types are also used as wrappers in getindex, like:

julia
x = A[X(2), Y(3)]
+
+# output
+
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2021-01-01T00:00:00  0.0
+ 2021-02-01T00:00:00  0.0
+ 2021-03-01T00:00:00  0.0
+ 2021-04-01T00:00:00  0.0
+ 2021-05-01T00:00:00  0.0
+ 2021-06-01T00:00:00  0.0
+ 2021-07-01T00:00:00  0.0
+ 2021-08-01T00:00:00  0.0
+ 2021-09-01T00:00:00  0.0
+ 2021-10-01T00:00:00  0.0
+ 2021-11-01T00:00:00  0.0
+ 2021-12-01T00:00:00  0.0

A Dimension can also wrap Selector.

julia
x = A[X(Between(3, 4)), Y(At('b'))]
+
+# output
+
+╭───────────────────────────╮
+1×12 DimArray{Float64, 2} │
+├───────────────────────────┴──────────────────────────────────────────── dims ┐
+ X  Sampled{Int64} 4:2:4 ForwardOrdered Regular Points,
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   2021-01-01T00:00:00   2021-02-01T00:00:00   2021-12-01T00:00:00
+ 4    0.0                   0.0                      0.0

source

DimensionalData.Dimensions.DependentDim Type
julia
DependentDim <: Dimension

Abstract supertype for dependent dimensions. These will plot on the Y axis.

source

DimensionalData.Dimensions.IndependentDim Type
julia
IndependentDim <: Dimension

Abstract supertype for independent dimensions. These will plot on the X axis.

source

DimensionalData.Dimensions.XDim Type
julia
XDim <: IndependentDim

Abstract supertype for all X dimensions.

source

DimensionalData.Dimensions.YDim Type
julia
YDim <: DependentDim

Abstract supertype for all Y dimensions.

source

DimensionalData.Dimensions.ZDim Type
julia
ZDim <: DependentDim

Abstract supertype for all Z dimensions.

source

DimensionalData.Dimensions.TimeDim Type
julia
TimeDim <: IndependentDim

Abstract supertype for all time dimensions.

In a TimeDime with Interval sampling the locus will automatically be set to Start(). Dates and times generally refer to the start of a month, hour, second etc., not the central point as is more common with spatial data. `

source

DimensionalData.Dimensions.X Type
julia
X <: XDim
+
+X(val=:)

X Dimension. X <: XDim <: IndependentDim

Examples

julia
xdim = X(2:2:10)
julia
val = A[X(1)]
julia
mean(A; dims=X)

source

DimensionalData.Dimensions.Y Type
julia
Y <: YDim
+
+Y(val=:)

Y Dimension. Y <: YDim <: DependentDim

Examples

julia
ydim = Y(['a', 'b', 'c'])
julia
val = A[Y(1)]
julia
mean(A; dims=Y)

source

DimensionalData.Dimensions.Z Type
julia
Z <: ZDim
+
+Z(val=:)

Z Dimension. Z <: ZDim <: Dimension

Example:

julia
zdim = Z(10:10:100)
julia
val = A[Z(1)]
julia
mean(A; dims=Z)

source

DimensionalData.Dimensions.Ti Type

m Ti <: TimeDim

Ti(val=:)

Time Dimension. Ti <: TimeDim <: IndependentDim

Time is already used by Dates, and T is a common type parameter, We use Ti to avoid clashes.

Example:

julia
timedim = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
julia
val = A[Ti(1)]
julia
mean(A; dims=Ti)

source

DimensionalData.Dimensions.Dim Type
julia
Dim{S}(val=:)

A generic dimension. For use when custom dims are required when loading data from a file. Can be used as keyword arguments for indexing.

Dimension types take precedence over same named Dim types when indexing with symbols, or e.g. creating Tables.jl keys.

julia
julia> dim = Dim{:custom}(['a', 'b', 'c'])
+custom ['a', 'b', 'c']

source

DimensionalData.Dimensions.AnonDim Type
julia
AnonDim <: Dimension
+
+AnonDim()

Anonymous dimension. Used when extra dimensions are created, such as during transpose of a vector.

source

DimensionalData.Dimensions.@dim Macro
julia
@dim typ [supertype=Dimension] [label::String=string(typ)]

Macro to easily define new dimensions.

The supertype will be inserted into the type of the dim. The default is simply YourDim <: Dimension.

Making a Dimension inherit from XDim, YDim, ZDim or TimeDim will affect automatic plot layout and other methods that dispatch on these types. <: YDim are plotted on the Y axis, <: XDim on the X axis, etc.

label is used in plots and similar, if the dimension is short for a longer word.

Example:

julia
using DimensionalData
+using DimensionalData: @dim, YDim, XDim
+@dim Lat YDim "Latitude"
+@dim Lon XDim "Longitude"
+# output

source

Exported methods

These are widely useful methods for working with dimensions.

DimensionalData.Dimensions.dims Function
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

  • x: any object with a dims method, or a Tuple of Dimension.

  • query: Tuple or a single Dimension or Dimension Type.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

DimensionalData.Dimensions.otherdims Function
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

  • x: any object with a dims method, a Tuple of Dimension.

  • query: Tuple or single Dimension or dimension Type.

  • f: <: by default, but can be >: to match abstract types to concrete types.

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

DimensionalData.Dimensions.dimnum Function
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

  • x: any object with a dims method, a Tuple of Dimension or a single Dimension.

  • query: Tuple, Array or single Dimension or dimension Type.

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

DimensionalData.Dimensions.hasdim Function
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

  • x: any object with a dims method, a Tuple of Dimension or a single Dimension.

  • query: Tuple or single Dimension or dimension Type.

  • f: <: by default, but can be >: to match abstract types to concrete types.

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

Non-exported methods

DimensionalData.Dimensions.lookup Function
julia
lookup(x::Dimension) => Lookup
+lookup(x, [dims::Tuple]) => Tuple{Vararg{Lookup}}
+lookup(x::Tuple) => Tuple{Vararg{Lookup}}
+lookup(x, dim) => Lookup

Returns the Lookup of a dimension. This dictates properties of the dimension such as array axis and lookup order, and sampling properties.

dims can be a Dimension, a dimension type, or a tuple of either.

This is separate from val in that it will only work when dimensions actually contain an AbstractArray lookup, and can be used on a DimArray or DimStack to retrieve all lookups, as there is no ambiguity of meaning as there is with val.

source

DimensionalData.Dimensions.label Function
julia
label(x) => String
+label(x, dims::Tuple) => NTuple{N,String}
+label(x, dim) => String
+label(xs::Tuple) => NTuple{N,String}

Get a plot label for data or a dimension. This will include the name and units if they exist, and anything else that should be shown on a plot.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.format Function
julia
format(dims, x) => Tuple{Vararg{Dimension,N}}

Format the passed-in dimension(s) dims to match the object x.

Errors are thrown if dims don't match the array dims or size, and any fields holding Auto- objects are filled with guessed objects.

If a Lookup hasn't been specified, a lookup is chosen based on the type and element type of the values.

source

DimensionalData.Dimensions.dims2indices Function
julia
dims2indices(dim::Dimension, I) => NTuple{Union{Colon,AbstractArray,Int}}

Convert a Dimension or Selector I to indices of Int, AbstractArray or Colon.

source

DimensionalData.Dimensions.Lookups.selectindices Function
julia
selectindices(lookups, selectors)

Converts Selector to regular indices.

source

Primitive methods

These low-level methods are really for internal use, but can be useful for writing dimensional algorithms.

They are not guaranteed to keep their interface, but usually will.

DimensionalData.Dimensions.commondims Function
julia
commondims([f], x, query) => Tuple{Vararg{Dimension}}

This is basically dims(x, query) where the order of the original is kept, unlike dims where the query tuple determines the order

Also unlike dims,commondims always returns a Tuple, no matter the input. No errors are thrown if dims are absent from either x or query.

f is <: by default, but can be >: to sort abstract types by concrete types.

julia
julia> using DimensionalData, .Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> commondims(A, X)
+( X)
+
+julia> commondims(A, (X, Z))
+( X,  Z)
+
+julia> commondims(A, Ti)
+()

source

DimensionalData.Dimensions.name2dim Function
julia
name2dim(s::Symbol) => Dimension
+name2dim(dims...) => Tuple{Dimension,Vararg}
+name2dim(dims::Tuple) => Tuple{Dimension,Vararg}

Convert a symbol to a dimension object. :X, :Y, :Ti etc will be converted to X(), Y(), Ti(), as with any other dims generated with the @dim macro.

All other Symbols S will generate Dim{S}() dimensions.

source

DimensionalData.Dimensions.reducedims Function
julia
reducedims(x, dimstoreduce) => Tuple{Vararg{Dimension}}

Replace the specified dimensions with an index of length 1. This is usually to match a new array size where an axis has been reduced with a method like mean or reduce to a length of 1, but the number of dimensions has not changed.

Lookup traits are also updated to correspond to the change in cell step, sampling type and order.

source

DimensionalData.Dimensions.swapdims Function
julia
swapdims(x::T, newdims) => T
+swapdims(dims::Tuple, newdims) => Tuple{Vararg{Dimension}}

Swap dimensions for the passed in dimensions, in the order passed.

Passing in the Dimension types rewraps the dimension index, keeping the index values and metadata, while constructed Dimension objects replace the original dimension. nothing leaves the original dimension as-is.

Arguments

  • x: any object with a dims method or a Tuple of Dimension.

  • newdim: Tuple of Dimension or dimension Type.

Example

julia
using DimensionalData
+A = ones(X(2), Y(4), Z(2))
+Dimensions.swapdims(A, (Dim{:a}, Dim{:b}, Dim{:c}))
+
+# output
+╭────────────────────────────╮
+2×4×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ a,  b, ↗ c
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0

source

DimensionalData.Dimensions.slicedims Function
julia
slicedims(x, I) => Tuple{Tuple,Tuple}
+slicedims(f, x, I) => Tuple{Tuple,Tuple}

Slice the dimensions to match the axis values of the new array.

All methods return a tuple containing two tuples: the new dimensions, and the reference dimensions. The ref dimensions are no longer used in the new struct but are useful to give context to plots.

Called at the array level the returned tuple will also include the previous reference dims attached to the array.

Arguments

  • f: a function getindex, view or dotview. This will be used for slicing getindex is the default if f is not included.

  • x: An AbstractDimArray, Tuple of Dimension, or Dimension

  • I: A tuple of Integer, Colon or AbstractArray

source

DimensionalData.Dimensions.comparedims Function
julia
comparedims(A::AbstractDimArray...; kw...)
+comparedims(A::Tuple...; kw...)
+comparedims(A::Dimension...; kw...)
+comparedims(::Type{Bool}, args...; kw...)

Check that dimensions or tuples of dimensions passed as each argument are the same, and return the first valid dimension. If AbstractDimArrays are passed as arguments their dimensions are compared.

Empty tuples and nothing dimension values are ignored, returning the Dimension value if it exists.

Passing Bool as the first argument means true/false will be returned, rather than throwing an error.

Keywords

These are all Bool flags:

  • type: compare dimension type, true by default.

  • valtype: compare wrapped value type, false by default.

  • val: compare wrapped values, false by default.

  • order: compare order, false by default.

  • length: compare lengths, true by default.

  • ignore_length_one: ignore length 1 in comparisons, and return whichever dimension is not length 1, if any. This is useful in e.g. broadcasting comparisons. false by default.

  • msg: DimensionalData.Warn or DimensionalData.Throw. Both may contain string, which will be added to error or warning mesages.

source

DimensionalData.Dimensions.combinedims Function
julia
combinedims(xs; check=true, kw...)

Combine the dimensions of each object in xs, in the order they are found.

Keywords are passed to comparedims.

source

DimensionalData.Dimensions.sortdims Function
julia
sortdims([f], tosort, order) => Tuple

Sort dimensions tosort by order. Dimensions in order but missing from tosort are replaced with nothing.

tosort and order can be Tuples or Vectors or Dimension or dimension type. Abstract supertypes like TimeDim can be used in order.

f is <: by default, but can be >: to sort abstract types by concrete types.

source

DimensionalData.Dimensions.Lookups.basetypeof Function
julia
basetypeof(x) => Type

Get the "base" type of an object - the minimum required to define the object without it's fields. By default this is the full UnionAll for the type. But custom basetypeof methods can be defined for types with free type parameters.

In DimensionalData this is primarily used for comparing Dimensions, where Dim{:x} is different from Dim{:y}.

source

DimensionalData.Dimensions.basedims Function
julia
basedims(ds::Tuple)
+basedims(d::Union{Dimension,Symbol,Type})

Returns basetypeof(d)() or a Tuple of called on a Tuple.

See basetypeof

source

DimensionalData.Dimensions.setdims Function
julia
setdims(X, newdims) => AbstractArray
+setdims(::Tuple, newdims) => Tuple{Vararg{Dimension,N}}

Replaces the first dim matching <: basetypeof(newdim) with newdim, and returns a new object or tuple with the dimension updated.

Arguments

  • x: any object with a dims method, a Tuple of Dimension or a single Dimension.

  • newdim: Tuple or single Dimension, Type or Symbol.

Example

julia
using DimensionalData, DimensionalData.Dimensions, DimensionalData.Lookups
+A = ones(X(10), Y(10:10:100))
+B = setdims(A, Y(Categorical('a':'j'; order=ForwardOrdered())))
+lookup(B, Y)
+# output
+Categorical{Char} ForwardOrdered
+wrapping: 'a':1:'j'

source

DimensionalData.Dimensions.dimsmatch Function
julia
dimsmatch([f], dim, query) => Bool
+dimsmatch([f], dims::Tuple, query::Tuple) => Bool

Compare 2 dimensions or Tuple of Dimension are of the same base type, or are at least rotations/transformations of the same type.

f is <: by default, but can be >: to match abstract types to concrete types.

source

+ + + + \ No newline at end of file diff --git a/previews/PR872/api/lookuparrays.html b/previews/PR872/api/lookuparrays.html new file mode 100644 index 000000000..43c656320 --- /dev/null +++ b/previews/PR872/api/lookuparrays.html @@ -0,0 +1,245 @@ + + + + + + Lookups | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Lookups

DimensionalData.Dimensions.Lookups Module
julia
Lookups

Module for Lookups and Selectors used in DimensionalData.jl

Lookup defines traits and AbstractArray wrappers that give specific behaviours for a lookup index when indexed with Selector.

For example, these allow tracking over array order so fast indexing works even when the array is reversed.

To load Lookup types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Lookups

source

DimensionalData.Dimensions.Lookups.Lookup Type
julia
Lookup

Types defining the behaviour of a lookup index, how it is plotted and how Selectors like Between work.

A Lookup may be NoLookup indicating that there are no lookup values, Categorical for ordered or unordered categories, or a Sampled index for Points or Intervals.

source

DimensionalData.Dimensions.Lookups.Aligned Type
julia
Aligned <: Lookup

Abstract supertype for Lookups where the lookup is aligned with the array axes.

This is by far the most common supertype for Lookup.

source

DimensionalData.Dimensions.Lookups.AbstractSampled Type
julia
AbstractSampled <: Aligned

Abstract supertype for Lookups where the lookup is aligned with the array, and is independent of other dimensions. Sampled is provided by this package.

AbstractSampled must have order, span and sampling fields, or a rebuild method that accepts them as keyword arguments.

source

DimensionalData.Dimensions.Lookups.Sampled Type
julia
Sampled <: AbstractSampled
+
+Sampled(data::AbstractVector, order::Order, span::Span, sampling::Sampling, metadata)
+Sampled(data=AutoValues(); order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata())

A concrete implementation of the Lookup AbstractSampled. It can be used to represent Points or Intervals.

Sampled is capable of representing gridded data from a wide range of sources, allowing correct bounds and Selectors for points or intervals of regular, irregular, forward and reverse lookups.

On AbstractDimArray construction, Sampled lookup is assigned for all lookups of AbstractRange not assigned to Categorical.

Arguments

  • data: An AbstractVector of lookup values, matching the length of the curresponding array axis.

  • order: Order) indicating the order of the lookup, AutoOrder by default, detected from the order of data to be ForwardOrdered, ReverseOrdered or Unordered. These can be provided explicitly if they are known and performance is important.

  • span: indicates the size of intervals or distance between points, and will be set to Regular for AbstractRange and Irregular for AbstractArray, unless assigned manually.

  • sampling: is assigned to Points, unless set to Intervals manually. Using Intervals will change the behaviour of bounds and Selectorss to take account for the full size of the interval, rather than the point alone.

  • metadata: a Dict or Metadata wrapper that holds any metadata object adding more information about the array axis - useful for extending DimensionalData for specific contexts, like geospatial data in Rasters.jl. By default it is NoMetadata().

Example

Create an array with Interval sampling, and Regular span for a vector with known spacing.

We set the locus of the Intervals to Start specifying that the lookup values are for the locus at the start of each interval.

julia
using DimensionalData, DimensionalData.Lookups
+
+x = X(Sampled(100:-20:10; sampling=Intervals(Start())))
+y = Y(Sampled([1, 4, 7, 10]; span=Regular(3), sampling=Intervals(Start())))
+A = ones(x, y)
+
+# output
+╭──────────────────────────╮
+5×4 DimArray{Float64, 2} │
+├──────────────────────────┴───────────────────────────────────────── dims ┐
+ X Sampled{Int64} 100:-20:20 ReverseOrdered Regular Intervals{Start},
+ Y Sampled{Int64} [1, 4, 7, 10] ForwardOrdered Regular Intervals{Start}
+└──────────────────────────────────────────────────────────────────────────┘
+  1    4    7    10
+ 100    1.0  1.0  1.0   1.0
+  80    1.0  1.0  1.0   1.0
+  60    1.0  1.0  1.0   1.0
+  40    1.0  1.0  1.0   1.0
+  20    1.0  1.0  1.0   1.0

source

DimensionalData.Dimensions.Lookups.AbstractCyclic Type
julia
AbstractCyclic <: AbstractSampled

An abstract supertype for cyclic lookups.

These are AbstractSampled lookups that are cyclic for Selectors.

source

DimensionalData.Dimensions.Lookups.Cyclic Type
julia
Cyclic <: AbstractCyclic
+
+Cyclic(data; order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata(), cycle)

A Cyclic lookup is similar to Sampled but out of range Selectors At, Near, Contains will cycle the values to typemin or typemax over the length of cycle. Where and .. work as for Sampled.

This is useful when we are using mean annual datasets over a real time-span, or for wrapping longitudes so that -360 and 360 are the same.

Arguments

  • data: An AbstractVector of lookup values, matching the length of the curresponding array axis.

  • order: Order) indicating the order of the lookup, AutoOrder by default, detected from the order of data to be ForwardOrdered, ReverseOrdered or Unordered. These can be provided explicitly if they are known and performance is important.

  • span: indicates the size of intervals or distance between points, and will be set to Regular for AbstractRange and Irregular for AbstractArray, unless assigned manually.

  • sampling: is assigned to Points, unless set to Intervals manually. Using Intervals will change the behaviour of bounds and Selectorss to take account for the full size of the interval, rather than the point alone.

  • metadata: a Dict or Metadata wrapper that holds any metadata object adding more information about the array axis - useful for extending DimensionalData for specific contexts, like geospatial data in Rasters.jl. By default it is NoMetadata().

  • cycle: the length of the cycle. This does not have to exactly match the data, the step size is Week(1) the cycle can be Years(1).

Notes

  1. If you use dates and e.g. cycle over a Year, every year will have the number and spacing of Weeks and Days as the cycle year. Using At may not be reliable in terms of exact dates, as it will be applied to the specified date plus or minus n years.

  2. Indexing into a Cycled with any AbstractArray or AbstractRange will return a Sampled as the full cycle is likely no longer available.

  3. .. or Between selectors do not work in a cycled way: they work as for Sampled. This may change in future to return cycled values, but there are problems with this, such as leap years breaking correct date cycling of a single year. If you actually need this behaviour, please make a GitHub issue.

source

DimensionalData.Dimensions.Lookups.AbstractCategorical Type
julia
AbstractCategorical <: Aligned

Lookups where the values are categories.

Categorical is the provided concrete implementation. But this can easily be extended, all methods are defined for AbstractCategorical.

All AbstractCategorical must provide a rebuild method with data, order and metadata keyword arguments.

source

DimensionalData.Dimensions.Lookups.Categorical Type
julia
Categorical <: AbstractCategorical
+
+Categorical(o::Order)
+Categorical(; order=Unordered())

A Lookup where the values are categories.

This will be automatically assigned if the lookup contains AbstractString, Symbol or Char. Otherwise it can be assigned manually.

Order will be determined automatically where possible.

Arguments

  • data: An AbstractVector matching the length of the corresponding array axis.

  • order: Order) indicating the order of the lookup, AutoOrder by default, detected from the order of data to be ForwardOrdered, ReverseOrdered or Unordered. Can be provided if this is known and performance is important.

  • metadata: a Dict or Metadata wrapper that holds any metadata object adding more information about the array axis - useful for extending DimensionalData for specific contexts, like geospatial data in Rasters.jl. By default it is NoMetadata().

Example

Create an array with [Interval] sampling.

julia
using DimensionalData
+
+ds = X(["one", "two", "three"]), Y([:a, :b, :c, :d])
+A = DimArray(rand(3, 4), ds)
+Dimensions.lookup(A)
+
+# output
+
+Categorical{String} ["one", "two", "three"] Unordered,
+Categorical{Symbol} [:a, :b, :c, :d] ForwardOrdered

source

DimensionalData.Dimensions.Lookups.Unaligned Type
julia
Unaligned <: Lookup

Abstract supertype for Lookup where the lookup is not aligned to the grid.

Indexing an Unaligned with Selectors must provide all other Unaligned dimensions.

source

DimensionalData.Dimensions.Lookups.Transformed Type
julia
Transformed <: Unaligned
+
+Transformed(f, dim::Dimension; metadata=NoMetadata())

Lookup that uses an affine transformation to convert dimensions from dims(lookup) to dims(array). This can be useful when the dimensions are e.g. rotated from a more commonly used axis.

Any function can be used to do the transformation, but transformations from CoordinateTransformations.jl may be useful.

Arguments

  • f: transformation function

  • dim: a dimension to transform to.

Keyword Arguments

  • metadata:

Example

julia
using DimensionalData, DimensionalData.Lookups, CoordinateTransformations
+
+m = LinearMap([0.5 0.0; 0.0 0.5])
+A = [1 2  3  4
+     5 6  7  8
+     9 10 11 12];
+da = DimArray(A, (X(Transformed(m)), Y(Transformed(m))))
+
+da[X(At(6.0)), Y(At(2.0))]
+
+# output
+9

source

DimensionalData.Dimensions.MergedLookup Type
julia
MergedLookup <: Lookup
+
+MergedLookup(data, dims; [metadata])

A Lookup that holds multiple combined dimensions.

MergedLookup can be indexed with Selectors like At, Between, and Where although Near has undefined meaning.

Arguments

  • data: A Vector of Tuple.

  • dims: A Tuple of Dimension indicating the dimensions in the tuples in data.

Keywords

  • metadata: a Dict or Metadata object to attach dimension metadata.

source

DimensionalData.Dimensions.Lookups.NoLookup Type
julia
NoLookup <: Lookup
+
+NoLookup()

A Lookup that is identical to the array axis. Selectors can't be used on this lookup.

Example

Defining a DimArray without passing lookup values to the dimensions, it will be assigned NoLookup:

julia
using DimensionalData
+
+A = DimArray(rand(3, 3), (X, Y))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

Which is identical to:

julia
using .Lookups
+A = DimArray(rand(3, 3), (X(NoLookup()), Y(NoLookup())))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

source

DimensionalData.Dimensions.Lookups.AutoLookup Type
julia
AutoLookup <: Lookup
+
+AutoLookup()
+AutoLookup(values=AutoValues(); kw...)

Automatic Lookup, the default lookup. It will be converted automatically to another Lookup when it is possible to detect it from the lookup values.

Keywords will be used in the detected Lookup constructor.

source

DimensionalData.Dimensions.Lookups.AutoValues Type
julia
AutoValues

Detect Lookup values from the context. This is used in NoLookup to simply use the array axis as the index when the array is constructed, and in set to change the Lookup type without changing the index values.

source

The generic value getter val

DimensionalData.Dimensions.Lookups.val Function
julia
val(x)
+val(dims::Tuple) => Tuple

Return the contained value of a wrapper object.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

Objects that don't define a val method are returned unaltered.

source

Lookup methods:

DimensionalData.Dimensions.Lookups.bounds Function
julia
bounds(xs, [dims::Tuple]) => Tuple{Vararg{Tuple{T,T}}}
+bounds(xs::Tuple) => Tuple{Vararg{Tuple{T,T}}}
+bounds(x, dim) => Tuple{T,T}
+bounds(dim::Union{Dimension,Lookup}) => Tuple{T,T}

Return the bounds of all dimensions of an object, of a specific dimension, or of a tuple of dimensions.

If bounds are not known, one or both values may be nothing.

dims can be a Dimension, a dimension type, or a tuple of either.

source

DimensionalData.Dimensions.Lookups.hasselection Function
julia
hasselection(x, selector) => Bool
+hasselection(x, selectors::Tuple) => Bool

Check if indexing into x with selectors can be performed, where x is some object with a dims method, and selectors is a Selector or Dimension or a tuple of either.

source

DimensionalData.Dimensions.Lookups.sampling Function
julia
sampling(x, [dims::Tuple]) => Tuple
+sampling(x, dim) => Sampling
+sampling(xs::Tuple) => Tuple{Vararg{Sampling}}
+sampling(x:Union{Dimension,Lookup}) => Sampling

Return the Sampling for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.Lookups.span Function
julia
span(x, [dims::Tuple]) => Tuple
+span(x, dim) => Span
+span(xs::Tuple) => Tuple{Vararg{Span,N}}
+span(x::Union{Dimension,Lookup}) => Span

Return the Span for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.Lookups.order Function
julia
order(x, [dims::Tuple]) => Tuple
+order(xs::Tuple) => Tuple
+order(x::Union{Dimension,Lookup}) => Order

Return the Ordering of the dimension lookup for each dimension: ForwardOrdered, ReverseOrdered, or Unordered

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.Lookups.locus Function
julia
locus(x, [dims::Tuple]) => Tuple
+locus(x, dim) => Locus
+locus(xs::Tuple) => Tuple{Vararg{Locus,N}}
+locus(x::Union{Dimension,Lookup}) => Locus

Return the Position of lookup values for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.Lookups.shiftlocus Function
julia
shiftlocus(locus::Locus, x)

Shift the values of x from the current locus to the new locus.

We only shift Sampled, Regular or Explicit, Intervals.

source

Selectors

DimensionalData.Dimensions.Lookups.Selector Type
julia
Selector

Abstract supertype for all selectors.

Selectors are wrappers that indicate that passed values are not the array indices, but values to be selected from the dimension lookup, such as DateTime objects for a Ti dimension.

Selectors provided in DimensionalData are:

Note: Selectors can be modified using:

  • Not: as in Not(At(x))

And IntervalSets.jl Interval can be used instead of Between

  • ..

  • Interval

  • OpenInterval

  • ClosedInterval

source

DimensionalData.Dimensions.Lookups.IntSelector Type
julia
IntSelector <: Selector

Abstract supertype for Selectors that return a single Int index.

IntSelectors provided by DimensionalData are:

source

DimensionalData.Dimensions.Lookups.ArraySelector Type
julia
ArraySelector <: Selector

Abstract supertype for Selectors that return an AbstractArray.

ArraySelectors provided by DimensionalData are:

source

DimensionalData.Dimensions.Lookups.At Type
julia
At <: IntSelector
+
+At(x; atol=nothing, rtol=nothing)
+At(a, b; kw...)

Selector that exactly matches the value on the passed-in dimensions, or throws an error. For ranges and arrays, every intermediate value must match an existing value - not just the end points.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Keyword atol is passed to isapprox.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(At(20)), Y(At(6))]
+
+# output
+
+5

source

DimensionalData.Dimensions.Lookups.Near Type
julia
Near <: IntSelector
+
+Near(x)
+Near(a, b)

Selector that selects the nearest index to x.

With Points this is simply the lookup values nearest to the x, however with Intervals it is the interval center nearest to x. This will be offset from the index value for Start and End locus.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between the nearsest value to each of them will be selected.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Near(23)), Y(Near(5.1))]
+
+# output
+4

source

DimensionalData.Dimensions.Lookups.Between Type
julia
Between <: ArraySelector
+
+Between(a, b)

Depreciated: use a..b instead of Between(a, b). Other Interval objects from IntervalSets.jl, like `OpenInterval(a, b) will also work, giving the correct open/closed boundaries.

Between will e removed in future to avoid clashes with DataFrames.Between.

Selector that retrieve all indices located between 2 values, evaluated with >= for the lower value, and < for the upper value. This means the same value will not be counted twice in 2 adjacent Between selections.

For Intervals the whole interval must be lie between the values. For Points the points must fall between the values. Different Sampling types may give different results with the same input - this is the intended behaviour.

Between for Irregular intervals is a little complicated. The interval is the distance between a value and the next (for Start locus) or previous (for End locus) value.

For Center, we take the mid point between two index values as the start and end of each interval. This may or may not make sense for the values in your index, so use Between with Irregular Intervals(Center()) with caution.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Between(15, 25)), Y(Between(4, 6.5))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

DimensionalData.Dimensions.Lookups.Touches Type
julia
Touches <: ArraySelector
+
+Touches(a, b)

Selector that retrieves all indices touching the closed interval 2 values, for the maximum possible area that could interact with the supplied range.

This can be better than .. when e.g. subsetting an area to rasterize, as you may wish to include pixels that just touch the area, rather than those that fall within it.

Touches is different to using closed intervals when the lookups also contain intervals - if any of the intervals touch, they are included. With .. they are discarded unless the whole cell interval falls inside the selector interval.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Touches(15, 25)), Y(Touches(4, 6.5))]
+
+# output
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

DimensionalData.Dimensions.Lookups.Contains Type
julia
Contains <: IntSelector
+
+Contains(x)
+Contains(a, b)

Selector that selects the interval the value is contained by. If the interval is not present in the lookup, an error will be thrown.

Can only be used for Intervals or Categorical. For Categorical it falls back to using At. Contains should not be confused with Base.contains - use Where(contains(x)) to check for if values are contain in categorical values like strings.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Example

julia
using DimensionalData; const DD = DimensionalData
+dims_ = X(10:10:20; sampling=DD.Intervals(DD.Center())),
+        Y(5:7; sampling=DD.Intervals(DD.Center()))
+A = DimArray([1 2 3; 4 5 6], dims_)
+A[X(Contains(8)), Y(Contains(6.8))]
+
+# output
+3

source

DimensionalData.Dimensions.Lookups.Where Type
julia
Where <: ArraySelector
+
+Where(f::Function)

Selector that filters a dimension lookup by any function that accepts a single value and returns a Bool.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(19:21)))
+A[X(Where(x -> x > 15)), Y(Where(x -> x in (19, 21)))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Int64} [20] ForwardOrdered Irregular Points,
+ Y Sampled{Int64} [19, 21] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+  19  21
+ 20     4   6

source

DimensionalData.Dimensions.Lookups.All Type
julia
All <: Selector
+
+All(selectors::Selector...)

Selector that combines the results of other selectors. The indices used will be the union of all result sorted in ascending order.

Example

julia
using DimensionalData, Unitful
+
+dimz = X(10.0:20:200.0), Ti(1u"s":5u"s":100u"s")
+A = DimArray((1:10) * (1:20)', dimz)
+A[X=All(At(10.0), At(50.0)), Ti=All(1u"s"..10u"s", 90u"s"..100u"s")]
+
+# output
+
+╭────────────────────────╮
+2×4 DimArray{Int64, 2} │
+├────────────────────────┴─────────────────────────────────────────────── dims ┐
+ X  Sampled{Float64} [10.0, 50.0] ForwardOrdered Irregular Points,
+ Ti Sampled{Unitful.Quantity{Int64, 𝐓, Unitful.FreeUnits{(s,), 𝐓, nothing}}} [1 s, 6 s, 91 s, 96 s] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1 s  6 s  91 s  96 s
+ 10.0    1    2    19    20
+ 50.0    3    6    57    60

source

Lookup traits

DimensionalData.Dimensions.Lookups.LookupTrait Type
julia
LookupTrait

Abstract supertype of all traits of a Lookup.

These modify the behaviour of the lookup index.

The term "Trait" is used loosely - these may be fields of an object of traits hard-coded to specific types.

source

Order

DimensionalData.Dimensions.Lookups.Order Type
julia
Order <: LookupTrait

Traits for the order of a Lookup. These determine how searchsorted finds values in the index, and how objects are plotted.

source

DimensionalData.Dimensions.Lookups.Ordered Type
julia
Ordered <: Order

Supertype for the order of an ordered Lookup, including ForwardOrdered and ReverseOrdered.

source

DimensionalData.Dimensions.Lookups.ForwardOrdered Type
julia
ForwardOrdered <: Ordered
+
+ForwardOrdered()

Indicates that the Lookup index is in the normal forward order.

source

DimensionalData.Dimensions.Lookups.ReverseOrdered Type
julia
ReverseOrdered <: Ordered
+
+ReverseOrdered()

Indicates that the Lookup index is in the reverse order.

source

DimensionalData.Dimensions.Lookups.Unordered Type
julia
Unordered <: Order
+
+Unordered()

Indicates that Lookup is unordered.

This means the index cannot be searched with searchsortedfirst or similar optimised methods - instead it will use findfirst.

source

DimensionalData.Dimensions.Lookups.AutoOrder Type
julia
AutoOrder <: Order
+
+AutoOrder()

Specifies that the Order of a Lookup will be found automatically where possible.

source

Span

DimensionalData.Dimensions.Lookups.Span Type
julia
Span <: LookupTrait

Defines the type of span used in a Sampling index. These are Regular or Irregular.

source

DimensionalData.Dimensions.Lookups.Regular Type
julia
Regular <: Span
+
+Regular(step=AutoStep())

Points or Intervals that have a fixed, regular step.

source

DimensionalData.Dimensions.Lookups.Irregular Type
julia
Irregular <: Span
+
+Irregular(bounds::Tuple)
+Irregular(lowerbound, upperbound)

Points or Intervals that have an Irregular step size. To enable bounds tracking and accurate selectors, the starting bounds are provided as a 2 tuple, or 2 arguments. (nothing, nothing) is acceptable input, the bounds will be guessed from the index, but may be inaccurate.

source

DimensionalData.Dimensions.Lookups.Explicit Type
julia
Explicit(bounds::AbstractMatrix)

Intervals where the span is explicitly listed for every interval.

This uses a matrix where with length 2 columns for each index value, holding the lower and upper bounds for that specific index.

source

DimensionalData.Dimensions.Lookups.AutoSpan Type
julia
AutoSpan <: Span
+
+AutoSpan()

The span will be guessed and replaced in format or set.

source

Sampling

DimensionalData.Dimensions.Lookups.Sampling Type
julia
Sampling <: LookupTrait

Indicates the sampling method used by the index: Points or Intervals.

source

DimensionalData.Dimensions.Lookups.Points Type
julia
Points <: Sampling
+
+Points()

Sampling lookup where single samples at exact points.

These are always plotted at the center of array cells.

source

DimensionalData.Dimensions.Lookups.Intervals Type
julia
Intervals <: Sampling
+
+Intervals(locus::Position)

Sampling specifying that sampled values are the mean (or similar) value over an interval, rather than at one specific point.

Intervals require a locus of Start, Center or End to define the location in the interval that the index values refer to.

source

Positions

DimensionalData.Dimensions.Lookups.Position Type
julia
Position <: LookupTrait

Abstract supertype of types that indicate the locus of index values where they represent Intervals.

These allow for values array cells to align with the Start, Center, or End of values in the lookup index.

This means they can be plotted with correct axis markers, and allows automatic conversions to between formats with different standards (such as NetCDF and GeoTiff).

source

DimensionalData.Dimensions.Lookups.Center Type
julia
Center <: Position
+
+Center()

Used to specify lookup values correspond to the center locus in an interval.

source

DimensionalData.Dimensions.Lookups.Start Type
julia
Start <: Position
+
+Start()

Used to specify lookup values correspond to the start locus of an interval.

source

DimensionalData.Dimensions.Lookups.Begin Type
julia
Begin <: Position
+
+Begin()

Used to specify the begin index of a Dimension axis, as regular begin will not work with named dimensions.

Can be used with : to create a BeginEndRange or BeginEndStepRange.

source

DimensionalData.Dimensions.Lookups.End Type
julia
End <: Position
+
+End()

Used to specify the end index of a Dimension axis, as regular end will not work with named dimensions. Can be used with : to create a BeginEndRange or BeginEndStepRange.

Also used to specify lookup values correspond to the end locus of an interval.

source

DimensionalData.Dimensions.Lookups.AutoPosition Type
julia
AutoPosition <: Position
+
+AutoPosition()

Indicates a interval where the index locus is not yet known. This will be filled with a default value on object construction.

source

Metadata

DimensionalData.Dimensions.Lookups.AbstractMetadata Type
julia
AbstractMetadata{X,T}

Abstract supertype for all metadata wrappers.

Metadata wrappers allow tracking the contents and origin of metadata. This can facilitate conversion between metadata types (for saving a file to a different format) or simply saving data back to the same file type with identical metadata.

Using a wrapper instead of Dict or NamedTuple also lets us pass metadata objects to set without ambiguity about where to put them.

source

DimensionalData.Dimensions.Lookups.Metadata Type
julia
Metadata <: AbstractMetadata
+
+Metadata{X}(val::Union{Dict,NamedTuple})
+Metadata{X}(pairs::Pair...) => Metadata{Dict}
+Metadata{X}(; kw...) => Metadata{NamedTuple}

General Metadata object. The X type parameter categorises the metadata for method dispatch, if required.

source

DimensionalData.Dimensions.Lookups.NoMetadata Type
julia
NoMetadata <: AbstractMetadata
+
+NoMetadata()

Indicates an object has no metadata. But unlike using nothing, get, keys and haskey will still work on it, get always returning the fallback argument. keys returns () while haskey always returns false.

source

DimensionalData.Dimensions.Lookups.units Function
julia
units(x) => Union{Nothing,Any}
+units(xs:Tuple) => Tuple
+unit(A::AbstractDimArray, dims::Tuple) => Tuple
+unit(A::AbstractDimArray, dim) => Union{Nothing,Any}

Get the units of an array or Dimension, or a tuple of of either.

Units do not have a set field, and may or may not be included in metadata. This method is to facilitate use in labels and plots when units are available, not a guarantee that they will be. If not available, nothing is returned.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

+ + + + \ No newline at end of file diff --git a/previews/PR872/api/reference.html b/previews/PR872/api/reference.html new file mode 100644 index 000000000..e62f67646 --- /dev/null +++ b/previews/PR872/api/reference.html @@ -0,0 +1,501 @@ + + + + + + API Reference | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

API Reference

Arrays

DimensionalData.AbstractBasicDimArray Type
julia
AbstractBasicDimArray <: AbstractArray

The abstract supertype for all arrays with a dims method that returns a Tuple of Dimension

Only keyword rebuild is guaranteed to work with AbstractBasicDimArray.

source

DimensionalData.AbstractDimArray Type
julia
AbstractDimArray <: AbstractBasicArray

Abstract supertype for all "dim" arrays.

These arrays return a Tuple of Dimension from a dims method, and can be rebuilt using rebuild.

parent must return the source array.

They should have metadata, name and refdims methods, although these are optional.

A rebuild method for AbstractDimArray must accept data, dims, refdims, name, metadata arguments.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

source

DimensionalData.DimArray Type
julia
DimArray <: AbstractDimArray
+
+DimArray(data, dims, refdims, name, metadata)
+DimArray(data, dims::Tuple; refdims=(), name=NoName(), metadata=NoMetadata())
+DimArray(gen; kw...)

The main concrete subtype of AbstractDimArray.

DimArray maintains and updates its Dimensions through transformations and moves dimensions to reference dimension refdims after reducing operations (like e.g. mean).

Arguments

  • data: An AbstractArray.

  • gen: A generator expression. Where source iterators are Dimensions the dim args or kw is not needed.

  • dims: A Tuple of Dimension

  • name: A string name for the array. Shows in plots and tables.

  • refdims: refence dimensions. Usually set programmatically to track past slices and reductions of dimension for labelling and reconstruction.

  • metadata: Dict or Metadata object, or NoMetadata()

Indexing can be done with all regular indices, or with Dimensions and/or Selectors.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

Note that the generator expression syntax requires usage of the semi-colon ; to distinguish generator dimensions from keywords.

Example:

julia
julia> using Dates, DimensionalData
+
+julia> ti = Ti(DateTime(2001):Month(1):DateTime(2001,12));
+
+julia> x = X(10:10:100);
+
+julia> A = DimArray(rand(12,10), (ti, x), name="example");
+
+julia> A[X(Near([12, 35])), Ti(At(DateTime(2001,5)))]
+╭────────────────────────────────────────╮
+2-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴────────────── dims ┐
+ X Sampled{Int64} [10, 40] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+ 10  0.253849
+ 40  0.637077
+
+julia> A[Near(DateTime(2001, 5, 4)), Between(20, 50)]
+╭────────────────────────────────────────╮
+4-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴──────────── dims ┐
+ X Sampled{Int64} 20:10:50 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────┘
+ 20  0.774092
+ 30  0.823656
+ 40  0.637077
+ 50  0.692235

Generator expression:

julia
julia> DimArray((x, y) for x in X(1:3), y in Y(1:2); name = :Value)
+╭────────────────────────────────────────────╮
+3×2 DimArray{Tuple{Int64, Int64}, 2} Value │
+├────────────────────────────────────────────┴──── dims ┐
+ X Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 1:2 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────┘
+  1        2
+ 1     (1, 1)   (1, 2)
+ 2     (2, 1)   (2, 2)
+ 3     (3, 1)   (3, 2)

source

Shorthand AbstractDimArray constructors:

Base.fill Function
julia
Base.fill(x, dims::Dimension...; kw...) => DimArray
+Base.fill(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray with a fill value of x.

There are two kinds of Dimension value acepted:

  • A Dimension holding an AbstractVector will set the dimension index to that AbstractVector, and detect the dimension lookup.

  • A Dimension holding an Integer will set the length of the axis, and set the dimension lookup to NoLookup.

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData, Random; Random.seed!(123);
+
+julia> fill(true, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1

source

Base.rand Function
julia
Base.rand(x, dims::Dimension...; kw...) => DimArray
+Base.rand(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Dimension...; kw...) => DimArray

Create a DimArray of random values.

There are two kinds of Dimension value acepted:

  • A Dimension holding an AbstractVector will set the dimension index to that AbstractVector, and detect the dimension lookup.

  • A Dimension holding an Integer will set the length of the axis, and set the dimension lookup to NoLookup.

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> rand(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 1  0  0  1
+
+julia> rand(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0       150.0       200.0
+  :a    0.443494    0.253849    0.867547
+  :b    0.745673    0.334152    0.0802658
+  :c    0.512083    0.427328    0.311448

source

Base.zeros Function
julia
Base.zeros(x, dims::Dimension...; kw...) => DimArray
+Base.zeros(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of zeros.

There are two kinds of Dimension value acepted:

  • A Dimension holding an AbstractVector will set the dimension index to that AbstractVector, and detect the dimension lookup.

  • A Dimension holding an Integer will set the length of the axis, and set the dimension lookup to NoLookup.

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> zeros(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 0  0  0  0
+
+julia> zeros(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    0.0    0.0    0.0
+  :b    0.0    0.0    0.0
+  :c    0.0    0.0    0.0

source

Base.ones Function
julia
Base.ones(x, dims::Dimension...; kw...) => DimArray
+Base.ones(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of ones.

There are two kinds of Dimension value acepted:

  • A Dimension holding an AbstractVector will set the dimension index to that AbstractVector, and detect the dimension lookup.

  • A Dimension holding an Integer will set the length of the axis, and set the dimension lookup to NoLookup.

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> ones(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1
+
+julia> ones(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    1.0    1.0    1.0
+  :b    1.0    1.0    1.0
+  :c    1.0    1.0    1.0

source

Functions for getting information from objects:

DimensionalData.Dimensions.dims Function
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

  • x: any object with a dims method, or a Tuple of Dimension.

  • query: Tuple or a single Dimension or Dimension Type.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

DimensionalData.Dimensions.refdims Function
julia
refdims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+refdims(x, dim) => Dimension

Reference dimensions for an array that is a slice or view of another array with more dimensions.

slicedims(a, dims) returns a tuple containing the current new dimensions and the new reference dimensions. Refdims can be stored in a field or discarded, as it is mostly to give context to plots. Ignoring refdims will simply leave some captions empty.

The default is to return an empty Tuple ().

source

DimensionalData.Dimensions.Lookups.metadata Function
julia
metadata(x) => (object metadata)
+metadata(x, dims::Tuple)  => Tuple (Dimension metadata)
+metadata(xs::Tuple) => Tuple

Returns the metadata for an object or for the specified dimension(s)

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.name Function
julia
name(x) => Symbol
+name(xs:Tuple) => NTuple{N,Symbol}
+name(x, dims::Tuple) => NTuple{N,Symbol}
+name(x, dim) => Symbol

Get the name of an array or Dimension, or a tuple of of either as a Symbol.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

DimensionalData.Dimensions.otherdims Function
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

  • x: any object with a dims method, a Tuple of Dimension.

  • query: Tuple or single Dimension or dimension Type.

  • f: <: by default, but can be >: to match abstract types to concrete types.

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

DimensionalData.Dimensions.dimnum Function
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

  • x: any object with a dims method, a Tuple of Dimension or a single Dimension.

  • query: Tuple, Array or single Dimension or dimension Type.

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

DimensionalData.Dimensions.hasdim Function
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

  • x: any object with a dims method, a Tuple of Dimension or a single Dimension.

  • query: Tuple or single Dimension or dimension Type.

  • f: <: by default, but can be >: to match abstract types to concrete types.

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

Multi-array datasets

DimensionalData.AbstractDimStack Type
julia
AbstractDimStack

Abstract supertype for dimensional stacks.

These have multiple layers of data, but share dimensions.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

  • indexing with a Symbol as in dimstack[:symbol] returns a DimArray layer.

  • iteration and map apply over array layers, as indexed with a Symbol.

  • getindex and many base methods are applied as for DimArray - to avoid the need to always use map.

This design gives very succinct code when working with many-layered, mixed-dimension objects. But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

See DimStack for the concrete implementation. Most methods are defined on the abstract type.

To extend AbstractDimStack, implement argument and keyword version of rebuild and also rebuild_from_arrays.

The constructor of an AbstractDimStack must accept a NamedTuple.

source

DimensionalData.DimStack Type
julia
DimStack <: AbstractDimStack
+
+DimStack(data::AbstractDimArray...; kw...)
+DimStack(data::Tuple{Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple{Keys,Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple, dims::DimTuple; metadata=NoMetadata(); kw...)

DimStack holds multiple objects sharing some dimensions, in a NamedTuple.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

  • indexing with a Symbol as in dimstack[:symbol] returns a DimArray layer.

  • iteration and map apply over array layers, as indexed with a Symbol.

  • getindex or view with Int, Dimensions or Selectors that resolve to Int will return a NamedTuple of values from each layer in the stack. This has very good performance, and avoids the need to always use map.

  • getindex or view with a Vector or Colon will return another DimStack where all data layers have been sliced.

  • setindex! must pass a Tuple or NamedTuple matching the layers.

  • many base and Statistics methods (sum, mean etc) will work as for a DimArray again removing the need to use map.

julia
function DimStack(A::AbstractDimArray;
+    layersfrom=nothing, name=nothing, metadata=metadata(A), refdims=refdims(A), kw...
+)

For example, here we take the mean over the time dimension for all layers:

julia
mean(mydimstack; dims=Ti)

And this equivalent to:

julia
map(A -> mean(A; dims=Ti), mydimstack)

This design gives succinct code when working with many-layered, mixed-dimension objects.

But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

DimStack can be constructed from multiple AbstractDimArray or a NamedTuple of AbstractArray and a matching dims tuple.

Most Base and Statistics methods that apply to AbstractArray can be used on all layers of the stack simulataneously. The result is a DimStack, or a NamedTuple if methods like mean are used without dims arguments, and return a single non-array value.

Example

julia
julia> using DimensionalData
+
+julia> A = [1.0 2.0 3.0; 4.0 5.0 6.0];
+
+julia> dimz = (X([:a, :b]), Y(10.0:10.0:30.0))
+( X [:a, :b],
+ Y 10.0:10.0:30.0)
+
+julia> da1 = DimArray(1A, dimz; name=:one);
+
+julia> da2 = DimArray(2A, dimz; name=:two);
+
+julia> da3 = DimArray(3A, dimz; name=:three);
+
+julia> s = DimStack(da1, da2, da3);
+
+julia> s[At(:b), At(10.0)]
+(one = 4.0, two = 8.0, three = 12.0)
+
+julia> s[X(At(:a))] isa DimStack
+true

source

Dimension generators

DimensionalData.DimIndices Type
julia
DimIndices <: AbstractArray
+
+DimIndices(x)
+DimIndices(dims::Tuple)
+DimIndices(dims::Dimension)

Like CartesianIndices, but for Dimensions. Behaves as an Array of Tuple of Dimension(i) for all combinations of the axis indices of dims.

This can be used to view/index into arbitrary dimensions over an array, and is especially useful when combined with otherdims, to iterate over the indices of unknown dimension.

DimIndices can be used directly in getindex like CartesianIndices, and freely mixed with individual Dimensions or tuples of Dimension.

Example

Index a DimArray with DimIndices.

Notice that unlike CartesianIndices, it doesn't matter if the dimensions are not in the same order. Or even if they are not all contained in each.

julia
julia> A = rand(Y(0.0:0.3:1.0), X('a':'f'))
+╭──────────────────────────╮
+4×6 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.3:0.9 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':1:'f' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'b'       'c'        'd'        'e'       'f'
+ 0.0  0.9063    0.253849  0.0991336  0.0320967  0.774092  0.893537
+ 0.3  0.443494  0.334152  0.125287   0.350546   0.183555  0.354868
+ 0.6  0.745673  0.427328  0.692209   0.930332   0.297023  0.131798
+ 0.9  0.512083  0.867547  0.136551   0.959434   0.150155  0.941133
+
+julia> di = DimIndices((X(1:2:4), Y(1:2:4)))
+╭──────────────────────────────────────────────╮
+2×2 DimIndices{Tuple{X{Int64}, Y{Int64}}, 2} │
+├──────────────────────────────────────── dims ┤
+ X 1:2:3,
+ Y 1:2:3
+└──────────────────────────────────────────────┘
+  1                3
+ 1     ( X 1,  Y 1)   ( X 1,  Y 3)
+ 3     ( X 3,  Y 1)   ( X 3,  Y 3)
+
+julia> A[di] # Index A with these indices
+╭──────────────────────────╮
+2×2 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.6:0.6 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':2:'c' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'c'
+ 0.0  0.9063    0.0991336
+ 0.6  0.745673  0.692209

source

DimensionalData.DimSelectors Type
julia
DimSelectors <: AbstractArray
+
+DimSelectors(x; selectors, atol...)
+DimSelectors(dims::Tuple; selectors, atol...)
+DimSelectors(dims::Dimension; selectors, atol...)

Like DimIndices, but returns Dimensions holding the chosen Selectors.

Indexing into another AbstractDimArray with DimSelectors is similar to doing an interpolation.

Keywords

  • selectors: Near, At or Contains, or a mixed tuple of these. At is the default, meaning only exact or within atol values are used.

  • atol: used for At selectors only, as the atol value.

Example

Here we can interpolate a DimArray to the lookups of another DimArray using DimSelectors with Near. This is essentially equivalent to nearest neighbour interpolation.

julia
julia> A = rand(X(1.0:3.0:30.0), Y(1.0:5.0:30.0), Ti(1:2));
+
+julia> target = rand(X(1.0:10.0:30.0), Y(1.0:10.0:30.0));
+
+julia> A[DimSelectors(target; selectors=Near), Ti=2]
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ X Sampled{Float64} [1.0, 10.0, 22.0] ForwardOrdered Irregular Points,
+ Y Sampled{Float64} [1.0, 11.0, 21.0] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  1.0        11.0       21.0
+  1.0  0.691162    0.218579   0.539076
+ 10.0  0.0303789   0.420756   0.485687
+ 22.0  0.0967863   0.864856   0.870485

Using At would make sure we only use exact interpolation, while Contains with sampling of Intervals would make sure that each values is taken only from an Interval that is present in the lookups.

source

DimensionalData.DimPoints Type
julia
DimPoints <: AbstractArray
+
+DimPoints(x; order)
+DimPoints(dims::Tuple; order)
+DimPoints(dims::Dimension; order)

Like CartesianIndices, but for the point values of the dimension index. Behaves as an Array of Tuple lookup values (whatever they are) for all combinations of the lookup values of dims.

Either a Dimension, a Tuple of Dimension or an object x that defines a dims method can be passed in.

Keywords

  • order: determines the order of the points, the same as the order of dims by default.

source

Tables.jl/TableTraits.jl interface

DimensionalData.AbstractDimTable Type
julia
AbstractDimTable <: Tables.AbstractColumns

Abstract supertype for dim tables

source

DimensionalData.DimTable Type
julia
DimTable <: AbstractDimTable
+
+DimTable(s::AbstractDimStack; mergedims=nothing)
+DimTable(x::AbstractDimArray; layersfrom=nothing, mergedims=nothing)
+DimTable(xs::Vararg{AbstractDimArray}; layernames=nothing, mergedims=nothing)

Construct a Tables.jl/TableTraits.jl compatible object out of an AbstractDimArray or AbstractDimStack.

This table will have columns for the array data and columns for each Dimension index, as a [DimColumn]. These are lazy, and generated as required.

Column names are converted from the dimension types using DimensionalData.name. This means type Ti becomes the column name :Ti, and Dim{:custom} becomes :custom.

To get dimension columns, you can index with Dimension (X()) or Dimension type (X) as well as the regular Int or Symbol.

Keywords

  • mergedims: Combine two or more dimensions into a new dimension.

  • layersfrom: Treat a dimension of an AbstractDimArray as layers of an AbstractDimStack.

Example

julia
julia> using DimensionalData, Tables
+
+julia> a = DimArray(ones(16, 16, 3), (X, Y, Dim{:band}))
+╭──────────────────────────────╮
+16×16×3 DimArray{Float64, 3} │
+├──────────────────────── dims ┤
+ X,  Y, ↗ band
+└──────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+
+julia>

source

Group by methods

For transforming DimensionalData objects:

DataAPI.groupby Function
julia
groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Pair...)
+groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Dimension{<:Callable}...)

Group A by grouping functions or Bins over multiple dimensions.

Arguments

  • A: any AbstractDimArray or AbstractDimStack.

  • dims: Pairs such as groups = groupby(A, :dimname => groupingfunction) or wrapped Dimensions like groups = groupby(A, DimType(groupingfunction)). Instead of a grouping function Bins can be used to specify group bins.

Return value

A DimGroupByArray is returned, which is basically a regular AbstractDimArray but holding the grouped AbstractDimArray or AbstractDimStack. Its dims hold the sorted values returned by the grouping function/s.

Base julia and package methods work on DimGroupByArray as for any other AbstractArray of AbstractArray.

It is common to broadcast or map a reducing function over groups, such as mean or sum, like mean.(groups) or map(mean, groups). This will return a regular DimArray, or DimGroupByArray if dims keyword is used in the reducing function or it otherwise returns an AbstractDimArray or AbstractDimStack.

Example

Group some data along the time dimension:

julia
julia> using DimensionalData, Dates
+
+julia> A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
+
+julia> groups = groupby(A, Ti => month) # Group by month
+╭───────────────────────────────────────────────────╮
+12-element DimGroupByArray{DimArray{Float64,2},1} │
+├───────────────────────────────────────────────────┴───────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+├─────────────────────────────────────────────────────────── group dims ┤
+ X,  Y, ↗ Ti
+└───────────────────────────────────────────────────────────────────────┘
+  1  191×20×32 DimArray
+  2  191×20×28 DimArray
+  3  191×20×31 DimArray
+
+ 11  191×20×30 DimArray
+ 12  191×20×31 DimArray

And take the mean:

julia
julia> groupmeans = mean.(groups) # Take the monthly mean
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴─────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+└───────────────────────────────────────────────────────────────────────┘
+  1  0.500064
+  2  0.499762
+  3  0.500083
+  4  0.499985
+
+ 10  0.500874
+ 11  0.498704
+ 12  0.50047

Calculate daily anomalies from the monthly mean. Notice we map a broadcast .- rather than -. This is because the size of the arrays to not match after application of mean.

julia
julia> map(.-, groupby(A, Ti=>month), mean.(groupby(A, Ti=>month), dims=Ti));

Or do something else with Y:

julia
julia> groupmeans = mean.(groupby(A, Ti=>month, Y=>isodd))
+╭───────────────────────────╮
+12×2 DimArray{Float64, 2} │
+├───────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points,
+ Y  Sampled{Bool} [false, true] ForwardOrdered Irregular Points
+├────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => (:Ti=>month, :Y=>isodd)
+└────────────────────────────────────────────────────────────────────────┘
+  false         true
+  1        0.499594     0.500533
+  2        0.498145     0.501379
+
+ 10        0.501105     0.500644
+ 11        0.498606     0.498801
+ 12        0.501643     0.499298

source

DimensionalData.DimGroupByArray Type
julia
DimGroupByArray <: AbstractDimArray

DimGroupByArray is essentially a DimArray but holding the results of a groupby operation.

Its dimensions are the sorted results of the grouping functions used in groupby.

This wrapper allows for specialisations on later broadcast or reducing operations, e.g. for chunk reading with DiskArrays.jl, because we know the data originates from a single array.

source

DimensionalData.Bins Type
julia
Bins(f, bins; labels, pad)
+Bins(bins; labels, pad)

Specify bins to reduce groups after applying function f.

  • f: a grouping function of the lookup values, by default identity.

  • bins:

    • an Integer will divide the group values into equally spaced sections.

    • an AbstractArray of values will be treated as exact matches for the return value of f. For example, 1:3 will create 3 bins - 1, 2, 3.

    • an AbstractArray of IntervalSets.Interval can be used to explicitly define the intervals. Overlapping intervals have undefined behaviour.

Keywords

  • pad: fraction of the total interval to pad at each end when Bins contains an Integer. This avoids losing the edge values. Note this is a messy solution - it will often be prefereble to manually specify a Vector of chosen Intervals rather than relying on passing an Integer and pad.

  • labels: a list of descriptive labels for the bins. The labels need to have the same length as bins.

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

DimensionalData.ranges Function
julia
ranges(A::AbstractRange{<:Integer})

Generate a Vector of UnitRange with length step(A)

source

DimensionalData.intervals Function
julia
intervals(A::AbstractRange)

Generate a Vector of UnitRange with length step(A)

source

DimensionalData.CyclicBins Type
julia
CyclicBins(f; cycle, start, step, labels)

Cyclic bins to reduce groups after applying function f. Groups can wrap around the cycle. This is used for grouping in seasons, months and hours but can also be used for custom cycles.

  • f: a grouping function of the lookup values, by default identity.

Keywords

  • cycle: the length of the cycle, in return values of f.

  • start: the start of the cycle: a return value of f.

  • step the number of sequential values to group.

  • labels: either a vector of labels matching the number of groups, or a function that generates labels from Vector{Int} of the selected bins.

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

DimensionalData.seasons Function
julia
seasons(; [start=Dates.December, labels])

Generates CyclicBins for three month periods.

Keywords

  • start: By default seasons start in December, but any integer 1:12 can be used.

  • labels: either a vector of four labels, or a function that generates labels from Vector{Int} of the selected quarters.

source

DimensionalData.months Function
julia
months(step; [start=Dates.January, labels])

Generates CyclicBins for grouping to arbitrary month periods. These can wrap around the end of a year.

  • step the number of months to group.

Keywords

  • start: By default months start in January, but any integer 1:12 can be used.

  • labels: either a vector of labels matching the number of groups, or a function that generates labels from Vector{Int} of the selected months.

source

DimensionalData.hours Function
julia
hours(step; [start=0, labels])

Generates CyclicBins for grouping to arbitrary hour periods. These can wrap around the end of the day.

  • steps the number of hours to group.

Keywords

  • start: By default seasons start at 0, but any integer 1:24 can be used.

  • labels: either a vector of four labels, or a function that generates labels from Vector{Int} of the selected hours of the day.

source

Utility methods

For transforming DimensionalData objects:

DimensionalData.Dimensions.Lookups.set Function
julia
set(x, val)
+set(x, args::Pairs...) => x with updated field/s
+set(x, args...; kw...) => x with updated field/s
+set(x, args::Tuple{Vararg{Dimension}}; kw...) => x with updated field/s
+
+set(dim::Dimension, index::AbstractArray) => Dimension
+set(dim::Dimension, lookup::Lookup) => Dimension
+set(dim::Dimension, lookupcomponent::LookupTrait) => Dimension
+set(dim::Dimension, metadata::AbstractMetadata) => Dimension

Set the properties of an object, its internal data or the traits of its dimensions and lookup index.

As DimensionalData is so strongly typed you do not need to specify what field of a Lookup to set - there is no ambiguity.

To set fields of a Lookup you need to specify the dimension. This can be done using X => val pairs, X = val keyword arguments, or X(val) wrapped arguments.

You can also set the fields of all dimensions by simply passing a single Lookup or lookup trait - it will be set for all dimensions.

When a Dimension or Lookup is passed to set to replace the existing ones, fields that are not set will keep their original values.

Notes:

Changing a lookup index range/vector will also update the step size and order where applicable.

Setting the Order like ForwardOrdered will not reverse the array or dimension to match. Use reverse and reorder to do this.

Examples

julia
julia> using DimensionalData; const DD = DimensionalData;
+
+julia> da = DimArray(zeros(3, 4), (custom=10.0:010.0:30.0, Z=-20:010.0:10.0));
+
+julia> set(da, ones(3, 4))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    1.0    1.0  1.0   1.0
+ 20.0    1.0    1.0  1.0   1.0
+ 30.0    1.0    1.0  1.0   1.0

Change the Dimension wrapper type:

julia
julia> set(da, :Z => Ti, :custom => Z)
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ Z  Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Ti Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

Change the lookup Vector:

julia
julia> set(da, Z => [:a, :b, :c, :d], :custom => [4, 5, 6])
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Int64} [4, 5, 6] ForwardOrdered Regular Points,
+ Z      Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+   :a   :b   :c   :d
+ 4    0.0  0.0  0.0  0.0
+ 5    0.0  0.0  0.0  0.0
+ 6    0.0  0.0  0.0  0.0

Change the Lookup type:

julia
julia> set(da, Z=DD.NoLookup(), custom=DD.Sampled())
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z
+└─────────────────────────────────────────────────────────────────────────┘
+ 10.0  0.0  0.0  0.0  0.0
+ 20.0  0.0  0.0  0.0  0.0
+ 30.0  0.0  0.0  0.0  0.0

Change the Sampling trait:

julia
julia> set(da, :custom => DD.Irregular(10, 12), Z => DD.Regular(9.9))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴────────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Irregular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

source

DimensionalData.Dimensions.Lookups.rebuild Function
julia
rebuild(x; kw...)

Rebuild an object struct with updated field values.

x can be a AbstractDimArray, a Dimension, Lookup or other custom types.

This is an abstraction that allows inbuilt and custom types to be rebuilt to update their fields, as most objects in DimensionalData.jl are immutable.

Rebuild is mostly automated using ConstructionBase.setproperties. It should only be defined if your object has fields with with different names to DimensionalData objects. Try not to do that!

The arguments required are defined for the abstract type that has a rebuild method.

AbstractBasicDimArray:

  • dims: a Tuple of Dimension

AbstractDimArray:

  • data: the parent object - an AbstractArray

  • dims: a Tuple of Dimension

  • refdims: a Tuple of Dimension

  • name: A Symbol, or NoName and Name on GPU.

  • metadata: A Dict-like object

AbstractDimStack:

  • data: the parent object, often a NamedTuple

  • dims, refdims, metadata

Dimension:

  • val: anything.

Lookup:

  • data: the parent object, an AbstractArray

  • Note: argument rebuild is deprecated on AbstractDimArray and

AbstractDimStack in favour of always using the keyword version. In future the argument version will only be used on Dimension, which only have one argument.

source

DimensionalData.modify Function
julia
modify(f, A::AbstractDimArray) => AbstractDimArray
+modify(f, s::AbstractDimStack) => AbstractDimStack
+modify(f, dim::Dimension) => Dimension
+modify(f, x, lookupdim::Dimension) => typeof(x)

Modify the parent data, rebuilding the object wrapper without change. f must return a AbstractArray of the same size as the original.

This method is mostly useful as a way of swapping the parent array type of an object.

Example

If we have a previously-defined DimArray, we can copy it to an Nvidia GPU with:

julia
A = DimArray(rand(100, 100), (X, Y))
+modify(CuArray, A)

This also works for all the data layers in a DimStack.

source

DimensionalData.@d Macro
julia
@d broadcast_expression options

Dimensional broadcast macro extending Base Julia broadcasting to work with missing and permuted dimensions.

Will permute and reshape singleton dimensions so that all AbstractDimArray in a broadcast will broadcast over matching dimensions.

It is possible to pass options as the second argument of the macro to control the behaviour, as a single assignment or as a NamedTuple. Options names must be written explicitly, not passed in namedtuple variable.

Options

  • dims: Pass a Tuple of Dimensions, Dimension types or Symbols to fix the dimension order of the output array. Otherwise dimensions will be in order of appearance. If dims with lookups are passed, these will be applied to the returned array with set.

  • strict: true or false. Check that all lookup values match explicitly.

All other keywords are passed to DimensionalData.rebuild. This means name, metadata, etc for the returned array can be set here, or for example missingval in Rasters.jl.

Example

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d da1 .* da2
+@d da1 .* da2 .+ 5 dims=(Y, X)
+@d da1 .* da2 .+ 5 (dims=(Y, X), strict=false, name=:testname)

Use with @.

@d does not imply @.. You need to specify each broadcast. But @. can be used with @d as the inner macro.

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d @. da1 * da2
+# Use parentheses around `@.` if you need to pass options
+@d (@. da1 * da2 .+ 5) dims=(Y, X)

source

DimensionalData.broadcast_dims Function
julia
broadcast_dims(f, sources::AbstractDimArray...) => AbstractDimArray

Broadcast function f over the AbstractDimArrays in sources, permuting and reshaping dimensions to match where required. The result will contain all the dimensions in all passed in arrays in the order in which they are found.

Arguments

  • sources: AbstractDimArrays to broadcast over with f.

This is like broadcasting over every slice of A if it is sliced by the dimensions of B.

source

DimensionalData.broadcast_dims! Function
julia
broadcast_dims!(f, dest::AbstractDimArray, sources::AbstractDimArray...) => dest

Broadcast function f over the AbstractDimArrays in sources, writing to dest. sources are permuting and reshaping dimensions to match where required.

The result will contain all the dimensions in all passed in arrays, in the order in which they are found.

Arguments

  • dest: AbstractDimArray to update.

  • sources: AbstractDimArrays to broadcast over with f.

source

DimensionalData.mergedims Function
julia
mergedims(old_dims => new_dim) => Dimension

Return a dimension new_dim whose indices are a MergedLookup of the indices of old_dims.

source

julia
mergedims(dims, old_dims => new_dim, others::Pair...) => dims_new

If dimensions old_dims, new_dim, etc. are found in dims, then return new dims_new where all dims in old_dims have been combined into a single dim new_dim. The returned dimension will keep only the name of new_dim. Its coords will be a MergedLookup of the coords of the dims in old_dims. New dimensions are always placed at the end of dims_new. others contains other dimension pairs to be merged.

Example

julia
julia> using DimensionalData
+
+julia> ds = (X(0:0.1:0.4), Y(10:10:100), Ti([0, 3, 4]))
+( X  0.0:0.1:0.4,
+ Y  10:10:100,
+↗ Ti [0, 3, 4])
+
+julia> mergedims(ds, (X, Y) => :space)
+( Ti    [0, 3, 4],
+ space MergedLookup{Tuple{Float64, Int64}} [(0.0, 10), (0.1, 10), , (0.3, 100), (0.4, 100)] ( X,  Y))

source

julia
mergedims(A::AbstractDimArray, dim_pairs::Pair...) => AbstractDimArray
+mergedims(A::AbstractDimStack, dim_pairs::Pair...) => AbstractDimStack

Return a new array or stack whose dimensions are the result of mergedims(dims(A), dim_pairs).

source

DimensionalData.unmergedims Function
julia
unmergedims(merged_dims::Tuple{Vararg{Dimension}}) => Tuple{Vararg{Dimension}}

Return the unmerged dimensions from a tuple of merged dimensions. However, the order of the original dimensions are not necessarily preserved.

source

julia
unmergedims(A::AbstractDimArray, original_dims) => AbstractDimArray
+unmergedims(A::AbstractDimStack, original_dims) => AbstractDimStack

Return a new array or stack whose dimensions are restored to their original prior to calling mergedims(A, dim_pairs).

source

DimensionalData.reorder Function
julia
reorder(A::Union{AbstractDimArray,AbstractDimStack}, order::Pair...)
+reorder(A::Union{AbstractDimArray,AbstractDimStack}, order)
+reorder(A::Dimension, order::Order)

Reorder every dims index/array to order, or reorder index for the given dimension(s) in order.

order can be an Order, Dimension => Order pairs. A Tuple of Dimensions or any object that defines dims can be used in which case the dimensions of this object are used for reordering.

If no axis reversal is required the same objects will be returned, without allocation.

Example

julia
using DimensionalData
+
+# Create a DimArray
+da = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(300:-100:100)))
+
+# Reverse it
+rev = reverse(da, dims=Y)
+
+# using `da` in reorder will return it to the original order
+reorder(rev, da) == da
+
+# output
+true

source

Global lookup strictness settings

Control how strict DimensionalData when comparing Lookups before doing broadcasts and matrix multipications.

In some cases (especially DimVector and small DimArray) checking lookup values match may be too costly compared to the operations. You can turn check the current setting and turn them on or off with these methods.

DimensionalData.strict_broadcast Function
julia
strict_broadcast()

Check if strict broadcasting checks are active.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

DimensionalData.strict_broadcast! Function
julia
strict_broadcast!(x::Bool)

Set global broadcasting checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

DimensionalData.strict_matmul Function
julia
strict_matmul()

Check if strickt broadcasting checks are active.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

DimensionalData.strict_matmul! Function
julia
strict_matmul!(x::Bool)

Set global matrix multiplication checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

Base methods

Base.cat Function
julia
Base.cat(stacks::AbstractDimStack...; [keys=keys(stacks[1])], dims)

Concatenate all or a subset of layers for all passed in stacks.

Keywords

  • keys: Tuple of Symbol for the stack keys to concatenate.

  • dims: Dimension of child array to concatenate on.

Example

Concatenate the :sea_surface_temp and :humidity layers in the time dimension:

julia
cat(stacks...; keys=(:sea_surface_temp, :humidity), dims=Ti)

source

Base.copy! Function
julia
Base.copy!(dst::AbstractArray, src::AbstractDimStack, key::Key)

Copy the stack layer key to dst, which can be any AbstractArray.

Example

Copy the :humidity layer from stack to array.

julia
copy!(array, stack, :humidity)

source

julia
Base.copy!(dst::AbstractDimStack, src::AbstractDimStack, [keys=keys(dst)])

Copy all or a subset of layers from one stack to another.

Example

Copy just the :sea_surface_temp and :humidity layers from src to dst.

julia
copy!(dst::AbstractDimStack, src::AbstractDimStack, keys=(:sea_surface_temp, :humidity))

source

Base.eachslice Function
julia
Base.eachslice(A::AbstractDimArray; dims,drop=true)

Create a generator that iterates over dimensions dims of A, returning arrays that select all the data from the other dimensions in A using views.

The generator has size and axes equivalent to those of the provided dims if drop=true. Otherwise it will have the same dimensionality as the underlying array with inner dimensions having size 1.

source

julia
Base.eachslice(stack::AbstractDimStack; dims, drop=true)

Create a generator that iterates over dimensions dims of stack, returning stacks that select all the data from the other dimensions in stack using views.

The generator has size and axes equivalent to those of the provided dims.

Examples

julia
julia> ds = DimStack((
+           x=DimArray(randn(2, 3, 4), (X([:x1, :x2]), Y(1:3), Z)),
+           y=DimArray(randn(2, 3, 5), (X([:x1, :x2]), Y(1:3), Ti))
+       ));
+
+julia> slices = eachslice(ds; dims=(Z, X));
+
+julia> size(slices)
+(4, 2)
+
+julia> map(dims, axes(slices))
+( Z Base.OneTo(4),
+ X Base.OneTo(2))
+
+julia> first(slices)
+╭──────────────╮
+3×5 DimStack │
+├──────────────┴─────────────────────────────────── dims ┐
+ Y  Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Ti
+├──────────────────────────────────────────────── layers ┤
+  :x eltype: Float64 dims: Y size: 3
+  :y eltype: Float64 dims: Y, Ti size: 3×5
+└────────────────────────────────────────────────────────┘

source

Most base methods work as expected, using Dimension wherever a dims keyword is used. They are not all specifically documented here.

Name

DimensionalData.AbstractName Type
julia
AbstractName

Abstract supertype for name wrappers.

source

DimensionalData.Name Type
julia
Name <: AbstractName
+
+Name(name::Union{Symbol,Name) => Name
+Name(name::NoName) => NoName

Name wrapper. This lets arrays keep symbol names when the array wrapper needs to be isbits, like for use on GPUs. It makes the name a property of the type. It's not necessary to use in normal use, a symbol is probably easier.

source

DimensionalData.NoName Type
julia
NoName <: AbstractName
+
+NoName()

NoName specifies an array is not named, and is the default name value for all AbstractDimArrays.

source

Internal interface

DimensionalData.DimArrayInterface Type
julia
    DimArrayInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_parent_kw, :rebuild_dims_kw, :rebuild) and optional components (:refdims, :name, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

  • dims:

    • defines a dims method

    • dims are updated on getindex

  • refdims_base: refdims returns a tuple of Dimension or empty

  • ndims: number of dims matches dimensions of array

  • size: length of dims matches dimensions of array

  • rebuild_parent: rebuild parent from args

  • rebuild_dims: rebuild paaarnet and dims from args

  • rebuild_parent_kw: rebuild parent from args

  • rebuild_dims_kw: rebuild dims from args

  • rebuild: all rebuild arguments and keywords are accepted

Optional keys:

  • refdims:

    • refdims are updated in args rebuild

    • refdims are updated in kw rebuild

    • dropped dimensions are added to refdims

  • name:

    • rebuild updates name in arg rebuild

    • rebuild updates name in kw rebuild

  • metadata:

    • rebuild updates metadata in arg rebuild

    • rebuild updates metadata in kw rebuild

source

DimensionalData.DimStackInterface Type
julia
    DimStackInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_layerdims, :rebuild_dims_kw, :rebuild_parent_kw, :rebuild_layerdims_kw, :rebuild) and optional components (:refdims, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

  • dims:

    • defines a dims method

    • dims are updated on getindex

  • refdims_base: refdims returns a tuple of Dimension or empty

  • ndims: number of dims matches ndims of stack

  • size: length of dims matches size of stack

  • rebuild_parent: rebuild parent from args

  • rebuild_dims: rebuild paaarnet and dims from args

  • rebuild_layerdims: rebuild paaarnet and dims from args

  • rebuild_dims_kw: rebuild dims from args

  • rebuild_parent_kw: rebuild parent from args

  • rebuild_layerdims_kw: rebuild parent from args

  • rebuild: all rebuild arguments and keywords are accepted

Optional keys:

  • refdims:

    • refdims are updated in args rebuild

    • refdims are updated in kw rebuild

    • dropped dimensions are added to refdims

  • metadata:

    • rebuild updates metadata in arg rebuild

    • rebuild updates metadata in kw rebuild

source

DimensionalData.rebuild_from_arrays Function
julia
rebuild_from_arrays(s::AbstractDimStack, das::NamedTuple{<:Any,<:Tuple{Vararg{AbstractDimArray}}}; kw...)

Rebuild an AbstractDimStack from a Tuple or NamedTuple of AbstractDimArray and an existing stack.

Keywords

Keywords are simply the fields of the stack object:

  • data

  • dims

  • refdims

  • metadata

  • layerdims

  • layermetadata

source

DimensionalData.show_main Function
julia
show_main(io::IO, mime, A::AbstractDimArray)
+show_main(io::IO, mime, A::AbstractDimStack)

Interface methods for adding the main part of show

At the least, you likely want to call:

julia
print_top(io, mime, A)

But read the DimensionalData.jl show.jl code for details.

source

DimensionalData.show_after Function
julia
show_after(io::IO, mime, A::AbstractDimArray)
+show_after(io::IO, mime, A::AbstractDimStack)

Interface methods for adding additional show text for AbstractDimArray/AbstractDimStack subtypes.

Always include kw to avoid future breaking changes

Additional keywords may be added at any time.

blockwidth is passed in context

julia
blockwidth = get(io, :blockwidth, 10000)

Note - a ANSI box is left unclosed. This method needs to close it, or add more. blockwidth is the maximum length of the inner text.

Most likely you always want to at least close the show blocks with:

julia
print_block_close(io, blockwidth)

But read the DimensionalData.jl show.jl code for details.

source

DimensionalData.refdims_title Function
julia
refdims_title(A::AbstractDimArray)
+refdims_title(refdims::Tuple)
+refdims_title(refdim::Dimension)

Generate a title string based on reference dimension values.

source

+ + + + \ No newline at end of file diff --git a/previews/PR872/assets/api_dimensions.md.EAHz26Mn.js b/previews/PR872/assets/api_dimensions.md.EAHz26Mn.js new file mode 100644 index 000000000..2a783ca0c --- /dev/null +++ b/previews/PR872/assets/api_dimensions.md.EAHz26Mn.js @@ -0,0 +1,157 @@ +import{_ as l,c as p,j as i,a,G as e,a4 as t,B as h,o as k}from"./chunks/framework.ByNLHi2E.js";const ss=JSON.parse('{"title":"Dimensions","description":"","frontmatter":{},"headers":[],"relativePath":"api/dimensions.md","filePath":"api/dimensions.md","lastUpdated":null}'),d={name:"api/dimensions.md"},o={class:"jldocstring custom-block",open:""},r={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""};function $(K,s,W,J,H,Q){const n=h("Badge");return k(),p("div",null,[s[108]||(s[108]=i("h1",{id:"dimensions",tabindex:"-1"},[a("Dimensions "),i("a",{class:"header-anchor",href:"#dimensions","aria-label":'Permalink to "Dimensions"'},"​")],-1)),s[109]||(s[109]=i("p",null,[a("Dimensions are kept in the sub-module "),i("code",null,"Dimensions"),a(".")],-1)),i("details",o,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.Dimensions",href:"#DimensionalData.Dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions")],-1)),s[1]||(s[1]=a()),e(n,{type:"info",class:"jlObjectType jlModule",text:"Module"})]),s[2]||(s[2]=t(`
julia
Dimensions

Sub-module for Dimensions wrappers, and operations on them used in DimensionalData.jl.

To load Dimensions types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Dimensions

source

`,5))]),s[110]||(s[110]=i("p",null,"Dimensions have a type-hierarchy that organises plotting and dimension matching.",-1)),i("details",r,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.Dimensions.Dimension",href:"#DimensionalData.Dimensions.Dimension"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Dimension")],-1)),s[4]||(s[4]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=t(`
julia
Dimension

Abstract supertype of all dimension types.

Example concrete implementations are X, Y, Z, Ti (Time), and the custom Dim dimension.

Dimensions label the axes of an AbstractDimArray, or other dimensional objects, and are used to index into an array.

They may also wrap lookup values for each array axis. This may be any AbstractVector matching the array axis length, but will usually be converted to a Lookup when use in a constructed object.

A Lookup gives more details about the dimension, such as that it is Categorical or Sampled as Points or Intervals along some transect. DimensionalData will attempt to guess the lookup from the passed-in index value.

Example:

julia
using DimensionalData, Dates
+
+x = X(2:2:10)
+y = Y(['a', 'b', 'c'])
+ti = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
+
+A = DimArray(zeros(3, 5, 12), (y, x, ti))
+
+# output
+
+╭─────────────────────────────╮
+3×5×12 DimArray{Float64, 3} │
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+ Y  Categorical{Char} ['a', 'b', 'c'] ForwardOrdered,
+ X  Sampled{Int64} 2:2:10 ForwardOrdered Regular Points,
+  ↗ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+   2    4    6    8    10
+  'a'  0.0  0.0  0.0  0.0   0.0
+  'b'  0.0  0.0  0.0  0.0   0.0
+  'c'  0.0  0.0  0.0  0.0   0.0

For simplicity, the same Dimension types are also used as wrappers in getindex, like:

julia
x = A[X(2), Y(3)]
+
+# output
+
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2021-01-01T00:00:00  0.0
+ 2021-02-01T00:00:00  0.0
+ 2021-03-01T00:00:00  0.0
+ 2021-04-01T00:00:00  0.0
+ 2021-05-01T00:00:00  0.0
+ 2021-06-01T00:00:00  0.0
+ 2021-07-01T00:00:00  0.0
+ 2021-08-01T00:00:00  0.0
+ 2021-09-01T00:00:00  0.0
+ 2021-10-01T00:00:00  0.0
+ 2021-11-01T00:00:00  0.0
+ 2021-12-01T00:00:00  0.0

A Dimension can also wrap Selector.

julia
x = A[X(Between(3, 4)), Y(At('b'))]
+
+# output
+
+╭───────────────────────────╮
+1×12 DimArray{Float64, 2} │
+├───────────────────────────┴──────────────────────────────────────────── dims ┐
+ X  Sampled{Int64} 4:2:4 ForwardOrdered Regular Points,
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   2021-01-01T00:00:00   2021-02-01T00:00:00   2021-12-01T00:00:00
+ 4    0.0                   0.0                      0.0

source

`,13))]),i("details",g,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.Dimensions.DependentDim",href:"#DimensionalData.Dimensions.DependentDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.DependentDim")],-1)),s[7]||(s[7]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=t('
julia
DependentDim <: Dimension

Abstract supertype for dependent dimensions. These will plot on the Y axis.

source

',3))]),i("details",E,[i("summary",null,[s[9]||(s[9]=i("a",{id:"DimensionalData.Dimensions.IndependentDim",href:"#DimensionalData.Dimensions.IndependentDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.IndependentDim")],-1)),s[10]||(s[10]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[11]||(s[11]=t('
julia
IndependentDim <: Dimension

Abstract supertype for independent dimensions. These will plot on the X axis.

source

',3))]),i("details",y,[i("summary",null,[s[12]||(s[12]=i("a",{id:"DimensionalData.Dimensions.XDim",href:"#DimensionalData.Dimensions.XDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.XDim")],-1)),s[13]||(s[13]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[14]||(s[14]=t('
julia
XDim <: IndependentDim

Abstract supertype for all X dimensions.

source

',3))]),i("details",c,[i("summary",null,[s[15]||(s[15]=i("a",{id:"DimensionalData.Dimensions.YDim",href:"#DimensionalData.Dimensions.YDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.YDim")],-1)),s[16]||(s[16]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[17]||(s[17]=t('
julia
YDim <: DependentDim

Abstract supertype for all Y dimensions.

source

',3))]),i("details",m,[i("summary",null,[s[18]||(s[18]=i("a",{id:"DimensionalData.Dimensions.ZDim",href:"#DimensionalData.Dimensions.ZDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.ZDim")],-1)),s[19]||(s[19]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[20]||(s[20]=t('
julia
ZDim <: DependentDim

Abstract supertype for all Z dimensions.

source

',3))]),i("details",F,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.TimeDim",href:"#DimensionalData.Dimensions.TimeDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.TimeDim")],-1)),s[22]||(s[22]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[23]||(s[23]=t('
julia
TimeDim <: IndependentDim

Abstract supertype for all time dimensions.

In a TimeDime with Interval sampling the locus will automatically be set to Start(). Dates and times generally refer to the start of a month, hour, second etc., not the central point as is more common with spatial data. `

source

',4))]),i("details",u,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.X",href:"#DimensionalData.Dimensions.X"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.X")],-1)),s[25]||(s[25]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[26]||(s[26]=t(`
julia
X <: XDim
+
+X(val=:)

X Dimension. X <: XDim <: IndependentDim

Examples

julia
xdim = X(2:2:10)
julia
val = A[X(1)]
julia
mean(A; dims=X)

source

`,7))]),i("details",D,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Y",href:"#DimensionalData.Dimensions.Y"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Y")],-1)),s[28]||(s[28]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[29]||(s[29]=t(`
julia
Y <: YDim
+
+Y(val=:)

Y Dimension. Y <: YDim <: DependentDim

Examples

julia
ydim = Y(['a', 'b', 'c'])
julia
val = A[Y(1)]
julia
mean(A; dims=Y)

source

`,7))]),i("details",C,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.Z",href:"#DimensionalData.Dimensions.Z"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Z")],-1)),s[31]||(s[31]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[32]||(s[32]=t(`
julia
Z <: ZDim
+
+Z(val=:)

Z Dimension. Z <: ZDim <: Dimension

Example:

julia
zdim = Z(10:10:100)
julia
val = A[Z(1)]
julia
mean(A; dims=Z)

source

`,7))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.Ti",href:"#DimensionalData.Dimensions.Ti"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Ti")],-1)),s[34]||(s[34]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[35]||(s[35]=t('

m Ti <: TimeDim

Ti(val=:)

Time Dimension. Ti <: TimeDim <: IndependentDim

Time is already used by Dates, and T is a common type parameter, We use Ti to avoid clashes.

Example:

julia
timedim = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
julia
val = A[Ti(1)]
julia
mean(A; dims=Ti)

source

',9))]),i("details",f,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.Dim",href:"#DimensionalData.Dimensions.Dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Dim")],-1)),s[37]||(s[37]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[38]||(s[38]=t(`
julia
Dim{S}(val=:)

A generic dimension. For use when custom dims are required when loading data from a file. Can be used as keyword arguments for indexing.

Dimension types take precedence over same named Dim types when indexing with symbols, or e.g. creating Tables.jl keys.

julia
julia> dim = Dim{:custom}(['a', 'b', 'c'])
+custom ['a', 'b', 'c']

source

`,5))]),i("details",j,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.AnonDim",href:"#DimensionalData.Dimensions.AnonDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.AnonDim")],-1)),s[40]||(s[40]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[41]||(s[41]=t(`
julia
AnonDim <: Dimension
+
+AnonDim()

Anonymous dimension. Used when extra dimensions are created, such as during transpose of a vector.

source

`,3))]),i("details",B,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.Dimensions.@dim",href:"#DimensionalData.Dimensions.@dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.@dim")],-1)),s[43]||(s[43]=a()),e(n,{type:"info",class:"jlObjectType jlMacro",text:"Macro"})]),s[44]||(s[44]=t(`
julia
@dim typ [supertype=Dimension] [label::String=string(typ)]

Macro to easily define new dimensions.

The supertype will be inserted into the type of the dim. The default is simply YourDim <: Dimension.

Making a Dimension inherit from XDim, YDim, ZDim or TimeDim will affect automatic plot layout and other methods that dispatch on these types. <: YDim are plotted on the Y axis, <: XDim on the X axis, etc.

label is used in plots and similar, if the dimension is short for a longer word.

Example:

julia
using DimensionalData
+using DimensionalData: @dim, YDim, XDim
+@dim Lat YDim "Latitude"
+@dim Lon XDim "Longitude"
+# output

source

`,8))]),s[111]||(s[111]=i("h3",{id:"Exported-methods",tabindex:"-1"},[a("Exported methods "),i("a",{class:"header-anchor",href:"#Exported-methods","aria-label":'Permalink to "Exported methods {#Exported-methods}"'},"​")],-1)),s[112]||(s[112]=i("p",null,"These are widely useful methods for working with dimensions.",-1)),i("details",v,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.Dimensions.dims-api-dimensions",href:"#DimensionalData.Dimensions.dims-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims")],-1)),s[46]||(s[46]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[47]||(s[47]=t(`
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

`,13))]),i("details",A,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.Dimensions.otherdims-api-dimensions",href:"#DimensionalData.Dimensions.otherdims-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.otherdims")],-1)),s[49]||(s[49]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[50]||(s[50]=t(`
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

`,8))]),i("details",T,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.Dimensions.dimnum-api-dimensions",href:"#DimensionalData.Dimensions.dimnum-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimnum")],-1)),s[52]||(s[52]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[53]||(s[53]=t(`
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

`,8))]),i("details",x,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.Dimensions.hasdim-api-dimensions",href:"#DimensionalData.Dimensions.hasdim-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.hasdim")],-1)),s[55]||(s[55]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[56]||(s[56]=t(`
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

`,8))]),s[113]||(s[113]=i("h3",{id:"Non-exported-methods",tabindex:"-1"},[a("Non-exported methods "),i("a",{class:"header-anchor",href:"#Non-exported-methods","aria-label":'Permalink to "Non-exported methods {#Non-exported-methods}"'},"​")],-1)),i("details",w,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.Dimensions.lookup",href:"#DimensionalData.Dimensions.lookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.lookup")],-1)),s[58]||(s[58]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[59]||(s[59]=t(`
julia
lookup(x::Dimension) => Lookup
+lookup(x, [dims::Tuple]) => Tuple{Vararg{Lookup}}
+lookup(x::Tuple) => Tuple{Vararg{Lookup}}
+lookup(x, dim) => Lookup

Returns the Lookup of a dimension. This dictates properties of the dimension such as array axis and lookup order, and sampling properties.

dims can be a Dimension, a dimension type, or a tuple of either.

This is separate from val in that it will only work when dimensions actually contain an AbstractArray lookup, and can be used on a DimArray or DimStack to retrieve all lookups, as there is no ambiguity of meaning as there is with val.

source

`,5))]),i("details",L,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.Dimensions.label",href:"#DimensionalData.Dimensions.label"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.label")],-1)),s[61]||(s[61]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[62]||(s[62]=t(`
julia
label(x) => String
+label(x, dims::Tuple) => NTuple{N,String}
+label(x, dim) => String
+label(xs::Tuple) => NTuple{N,String}

Get a plot label for data or a dimension. This will include the name and units if they exist, and anything else that should be shown on a plot.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",q,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DimensionalData.Dimensions.format",href:"#DimensionalData.Dimensions.format"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.format")],-1)),s[64]||(s[64]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=t('
julia
format(dims, x) => Tuple{Vararg{Dimension,N}}

Format the passed-in dimension(s) dims to match the object x.

Errors are thrown if dims don't match the array dims or size, and any fields holding Auto- objects are filled with guessed objects.

If a Lookup hasn't been specified, a lookup is chosen based on the type and element type of the values.

source

',5))]),i("details",X,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.Dimensions.dims2indices",href:"#DimensionalData.Dimensions.dims2indices"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims2indices")],-1)),s[67]||(s[67]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[68]||(s[68]=t('
julia
dims2indices(dim::Dimension, I) => NTuple{Union{Colon,AbstractArray,Int}}

Convert a Dimension or Selector I to indices of Int, AbstractArray or Colon.

source

',3))]),i("details",Y,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Dimensions.Lookups.selectindices",href:"#DimensionalData.Dimensions.Lookups.selectindices"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.selectindices")],-1)),s[70]||(s[70]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[71]||(s[71]=t('
julia
selectindices(lookups, selectors)

Converts Selector to regular indices.

source

',3))]),s[114]||(s[114]=i("h3",{id:"Primitive-methods",tabindex:"-1"},[a("Primitive methods "),i("a",{class:"header-anchor",href:"#Primitive-methods","aria-label":'Permalink to "Primitive methods {#Primitive-methods}"'},"​")],-1)),s[115]||(s[115]=i("p",null,"These low-level methods are really for internal use, but can be useful for writing dimensional algorithms.",-1)),s[116]||(s[116]=i("p",null,"They are not guaranteed to keep their interface, but usually will.",-1)),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.Dimensions.commondims",href:"#DimensionalData.Dimensions.commondims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.commondims")],-1)),s[73]||(s[73]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[74]||(s[74]=t(`
julia
commondims([f], x, query) => Tuple{Vararg{Dimension}}

This is basically dims(x, query) where the order of the original is kept, unlike dims where the query tuple determines the order

Also unlike dims,commondims always returns a Tuple, no matter the input. No errors are thrown if dims are absent from either x or query.

f is <: by default, but can be >: to sort abstract types by concrete types.

julia
julia> using DimensionalData, .Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> commondims(A, X)
+( X)
+
+julia> commondims(A, (X, Z))
+( X,  Z)
+
+julia> commondims(A, Ti)
+()

source

`,6))]),i("details",P,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.Dimensions.name2dim",href:"#DimensionalData.Dimensions.name2dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.name2dim")],-1)),s[76]||(s[76]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[77]||(s[77]=t(`
julia
name2dim(s::Symbol) => Dimension
+name2dim(dims...) => Tuple{Dimension,Vararg}
+name2dim(dims::Tuple) => Tuple{Dimension,Vararg}

Convert a symbol to a dimension object. :X, :Y, :Ti etc will be converted to X(), Y(), Ti(), as with any other dims generated with the @dim macro.

All other Symbols S will generate Dim{S}() dimensions.

source

`,4))]),i("details",z,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.Dimensions.reducedims",href:"#DimensionalData.Dimensions.reducedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.reducedims")],-1)),s[79]||(s[79]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[80]||(s[80]=t('
julia
reducedims(x, dimstoreduce) => Tuple{Vararg{Dimension}}

Replace the specified dimensions with an index of length 1. This is usually to match a new array size where an axis has been reduced with a method like mean or reduce to a length of 1, but the number of dimensions has not changed.

Lookup traits are also updated to correspond to the change in cell step, sampling type and order.

source

',4))]),i("details",S,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.Dimensions.swapdims",href:"#DimensionalData.Dimensions.swapdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.swapdims")],-1)),s[82]||(s[82]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[83]||(s[83]=t(`
julia
swapdims(x::T, newdims) => T
+swapdims(dims::Tuple, newdims) => Tuple{Vararg{Dimension}}

Swap dimensions for the passed in dimensions, in the order passed.

Passing in the Dimension types rewraps the dimension index, keeping the index values and metadata, while constructed Dimension objects replace the original dimension. nothing leaves the original dimension as-is.

Arguments

Example

julia
using DimensionalData
+A = ones(X(2), Y(4), Z(2))
+Dimensions.swapdims(A, (Dim{:a}, Dim{:b}, Dim{:c}))
+
+# output
+╭────────────────────────────╮
+2×4×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ a,  b, ↗ c
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0

source

`,8))]),i("details",R,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.Dimensions.slicedims",href:"#DimensionalData.Dimensions.slicedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.slicedims")],-1)),s[85]||(s[85]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[86]||(s[86]=t(`
julia
slicedims(x, I) => Tuple{Tuple,Tuple}
+slicedims(f, x, I) => Tuple{Tuple,Tuple}

Slice the dimensions to match the axis values of the new array.

All methods return a tuple containing two tuples: the new dimensions, and the reference dimensions. The ref dimensions are no longer used in the new struct but are useful to give context to plots.

Called at the array level the returned tuple will also include the previous reference dims attached to the array.

Arguments

source

`,7))]),i("details",Z,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.Dimensions.comparedims",href:"#DimensionalData.Dimensions.comparedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.comparedims")],-1)),s[88]||(s[88]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[89]||(s[89]=t(`
julia
comparedims(A::AbstractDimArray...; kw...)
+comparedims(A::Tuple...; kw...)
+comparedims(A::Dimension...; kw...)
+comparedims(::Type{Bool}, args...; kw...)

Check that dimensions or tuples of dimensions passed as each argument are the same, and return the first valid dimension. If AbstractDimArrays are passed as arguments their dimensions are compared.

Empty tuples and nothing dimension values are ignored, returning the Dimension value if it exists.

Passing Bool as the first argument means true/false will be returned, rather than throwing an error.

Keywords

These are all Bool flags:

source

`,8))]),i("details",I,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.combinedims",href:"#DimensionalData.Dimensions.combinedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.combinedims")],-1)),s[91]||(s[91]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[92]||(s[92]=t('
julia
combinedims(xs; check=true, kw...)

Combine the dimensions of each object in xs, in the order they are found.

Keywords are passed to comparedims.

source

',4))]),i("details",N,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.sortdims",href:"#DimensionalData.Dimensions.sortdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.sortdims")],-1)),s[94]||(s[94]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[95]||(s[95]=t('
julia
sortdims([f], tosort, order) => Tuple

Sort dimensions tosort by order. Dimensions in order but missing from tosort are replaced with nothing.

tosort and order can be Tuples or Vectors or Dimension or dimension type. Abstract supertypes like TimeDim can be used in order.

f is <: by default, but can be >: to sort abstract types by concrete types.

source

',5))]),i("details",V,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.Dimensions.Lookups.basetypeof",href:"#DimensionalData.Dimensions.Lookups.basetypeof"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.basetypeof")],-1)),s[97]||(s[97]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[98]||(s[98]=t('
julia
basetypeof(x) => Type

Get the "base" type of an object - the minimum required to define the object without it's fields. By default this is the full UnionAll for the type. But custom basetypeof methods can be defined for types with free type parameters.

In DimensionalData this is primarily used for comparing Dimensions, where Dim{:x} is different from Dim{:y}.

source

',4))]),i("details",M,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.Dimensions.basedims",href:"#DimensionalData.Dimensions.basedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.basedims")],-1)),s[100]||(s[100]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[101]||(s[101]=t(`
julia
basedims(ds::Tuple)
+basedims(d::Union{Dimension,Symbol,Type})

Returns basetypeof(d)() or a Tuple of called on a Tuple.

See basetypeof

source

`,4))]),i("details",G,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.Dimensions.setdims",href:"#DimensionalData.Dimensions.setdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.setdims")],-1)),s[103]||(s[103]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[104]||(s[104]=t(`
julia
setdims(X, newdims) => AbstractArray
+setdims(::Tuple, newdims) => Tuple{Vararg{Dimension,N}}

Replaces the first dim matching <: basetypeof(newdim) with newdim, and returns a new object or tuple with the dimension updated.

Arguments

Example

julia
using DimensionalData, DimensionalData.Dimensions, DimensionalData.Lookups
+A = ones(X(10), Y(10:10:100))
+B = setdims(A, Y(Categorical('a':'j'; order=ForwardOrdered())))
+lookup(B, Y)
+# output
+Categorical{Char} ForwardOrdered
+wrapping: 'a':1:'j'

source

`,7))]),i("details",U,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.Dimensions.dimsmatch",href:"#DimensionalData.Dimensions.dimsmatch"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimsmatch")],-1)),s[106]||(s[106]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[107]||(s[107]=t(`
julia
dimsmatch([f], dim, query) => Bool
+dimsmatch([f], dims::Tuple, query::Tuple) => Bool

Compare 2 dimensions or Tuple of Dimension are of the same base type, or are at least rotations/transformations of the same type.

f is <: by default, but can be >: to match abstract types to concrete types.

source

`,4))])])}const is=l(d,[["render",$]]);export{ss as __pageData,is as default}; diff --git a/previews/PR872/assets/api_dimensions.md.EAHz26Mn.lean.js b/previews/PR872/assets/api_dimensions.md.EAHz26Mn.lean.js new file mode 100644 index 000000000..2a783ca0c --- /dev/null +++ b/previews/PR872/assets/api_dimensions.md.EAHz26Mn.lean.js @@ -0,0 +1,157 @@ +import{_ as l,c as p,j as i,a,G as e,a4 as t,B as h,o as k}from"./chunks/framework.ByNLHi2E.js";const ss=JSON.parse('{"title":"Dimensions","description":"","frontmatter":{},"headers":[],"relativePath":"api/dimensions.md","filePath":"api/dimensions.md","lastUpdated":null}'),d={name:"api/dimensions.md"},o={class:"jldocstring custom-block",open:""},r={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""};function $(K,s,W,J,H,Q){const n=h("Badge");return k(),p("div",null,[s[108]||(s[108]=i("h1",{id:"dimensions",tabindex:"-1"},[a("Dimensions "),i("a",{class:"header-anchor",href:"#dimensions","aria-label":'Permalink to "Dimensions"'},"​")],-1)),s[109]||(s[109]=i("p",null,[a("Dimensions are kept in the sub-module "),i("code",null,"Dimensions"),a(".")],-1)),i("details",o,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.Dimensions",href:"#DimensionalData.Dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions")],-1)),s[1]||(s[1]=a()),e(n,{type:"info",class:"jlObjectType jlModule",text:"Module"})]),s[2]||(s[2]=t(`
julia
Dimensions

Sub-module for Dimensions wrappers, and operations on them used in DimensionalData.jl.

To load Dimensions types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Dimensions

source

`,5))]),s[110]||(s[110]=i("p",null,"Dimensions have a type-hierarchy that organises plotting and dimension matching.",-1)),i("details",r,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.Dimensions.Dimension",href:"#DimensionalData.Dimensions.Dimension"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Dimension")],-1)),s[4]||(s[4]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=t(`
julia
Dimension

Abstract supertype of all dimension types.

Example concrete implementations are X, Y, Z, Ti (Time), and the custom Dim dimension.

Dimensions label the axes of an AbstractDimArray, or other dimensional objects, and are used to index into an array.

They may also wrap lookup values for each array axis. This may be any AbstractVector matching the array axis length, but will usually be converted to a Lookup when use in a constructed object.

A Lookup gives more details about the dimension, such as that it is Categorical or Sampled as Points or Intervals along some transect. DimensionalData will attempt to guess the lookup from the passed-in index value.

Example:

julia
using DimensionalData, Dates
+
+x = X(2:2:10)
+y = Y(['a', 'b', 'c'])
+ti = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
+
+A = DimArray(zeros(3, 5, 12), (y, x, ti))
+
+# output
+
+╭─────────────────────────────╮
+3×5×12 DimArray{Float64, 3} │
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+ Y  Categorical{Char} ['a', 'b', 'c'] ForwardOrdered,
+ X  Sampled{Int64} 2:2:10 ForwardOrdered Regular Points,
+  ↗ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+   2    4    6    8    10
+  'a'  0.0  0.0  0.0  0.0   0.0
+  'b'  0.0  0.0  0.0  0.0   0.0
+  'c'  0.0  0.0  0.0  0.0   0.0

For simplicity, the same Dimension types are also used as wrappers in getindex, like:

julia
x = A[X(2), Y(3)]
+
+# output
+
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2021-01-01T00:00:00  0.0
+ 2021-02-01T00:00:00  0.0
+ 2021-03-01T00:00:00  0.0
+ 2021-04-01T00:00:00  0.0
+ 2021-05-01T00:00:00  0.0
+ 2021-06-01T00:00:00  0.0
+ 2021-07-01T00:00:00  0.0
+ 2021-08-01T00:00:00  0.0
+ 2021-09-01T00:00:00  0.0
+ 2021-10-01T00:00:00  0.0
+ 2021-11-01T00:00:00  0.0
+ 2021-12-01T00:00:00  0.0

A Dimension can also wrap Selector.

julia
x = A[X(Between(3, 4)), Y(At('b'))]
+
+# output
+
+╭───────────────────────────╮
+1×12 DimArray{Float64, 2} │
+├───────────────────────────┴──────────────────────────────────────────── dims ┐
+ X  Sampled{Int64} 4:2:4 ForwardOrdered Regular Points,
+ Ti Sampled{DateTime} DateTime("2021-01-01T00:00:00"):Month(1):DateTime("2021-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   2021-01-01T00:00:00   2021-02-01T00:00:00   2021-12-01T00:00:00
+ 4    0.0                   0.0                      0.0

source

`,13))]),i("details",g,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.Dimensions.DependentDim",href:"#DimensionalData.Dimensions.DependentDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.DependentDim")],-1)),s[7]||(s[7]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=t('
julia
DependentDim <: Dimension

Abstract supertype for dependent dimensions. These will plot on the Y axis.

source

',3))]),i("details",E,[i("summary",null,[s[9]||(s[9]=i("a",{id:"DimensionalData.Dimensions.IndependentDim",href:"#DimensionalData.Dimensions.IndependentDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.IndependentDim")],-1)),s[10]||(s[10]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[11]||(s[11]=t('
julia
IndependentDim <: Dimension

Abstract supertype for independent dimensions. These will plot on the X axis.

source

',3))]),i("details",y,[i("summary",null,[s[12]||(s[12]=i("a",{id:"DimensionalData.Dimensions.XDim",href:"#DimensionalData.Dimensions.XDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.XDim")],-1)),s[13]||(s[13]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[14]||(s[14]=t('
julia
XDim <: IndependentDim

Abstract supertype for all X dimensions.

source

',3))]),i("details",c,[i("summary",null,[s[15]||(s[15]=i("a",{id:"DimensionalData.Dimensions.YDim",href:"#DimensionalData.Dimensions.YDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.YDim")],-1)),s[16]||(s[16]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[17]||(s[17]=t('
julia
YDim <: DependentDim

Abstract supertype for all Y dimensions.

source

',3))]),i("details",m,[i("summary",null,[s[18]||(s[18]=i("a",{id:"DimensionalData.Dimensions.ZDim",href:"#DimensionalData.Dimensions.ZDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.ZDim")],-1)),s[19]||(s[19]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[20]||(s[20]=t('
julia
ZDim <: DependentDim

Abstract supertype for all Z dimensions.

source

',3))]),i("details",F,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.TimeDim",href:"#DimensionalData.Dimensions.TimeDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.TimeDim")],-1)),s[22]||(s[22]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[23]||(s[23]=t('
julia
TimeDim <: IndependentDim

Abstract supertype for all time dimensions.

In a TimeDime with Interval sampling the locus will automatically be set to Start(). Dates and times generally refer to the start of a month, hour, second etc., not the central point as is more common with spatial data. `

source

',4))]),i("details",u,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.X",href:"#DimensionalData.Dimensions.X"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.X")],-1)),s[25]||(s[25]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[26]||(s[26]=t(`
julia
X <: XDim
+
+X(val=:)

X Dimension. X <: XDim <: IndependentDim

Examples

julia
xdim = X(2:2:10)
julia
val = A[X(1)]
julia
mean(A; dims=X)

source

`,7))]),i("details",D,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Y",href:"#DimensionalData.Dimensions.Y"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Y")],-1)),s[28]||(s[28]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[29]||(s[29]=t(`
julia
Y <: YDim
+
+Y(val=:)

Y Dimension. Y <: YDim <: DependentDim

Examples

julia
ydim = Y(['a', 'b', 'c'])
julia
val = A[Y(1)]
julia
mean(A; dims=Y)

source

`,7))]),i("details",C,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.Z",href:"#DimensionalData.Dimensions.Z"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Z")],-1)),s[31]||(s[31]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[32]||(s[32]=t(`
julia
Z <: ZDim
+
+Z(val=:)

Z Dimension. Z <: ZDim <: Dimension

Example:

julia
zdim = Z(10:10:100)
julia
val = A[Z(1)]
julia
mean(A; dims=Z)

source

`,7))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.Ti",href:"#DimensionalData.Dimensions.Ti"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Ti")],-1)),s[34]||(s[34]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[35]||(s[35]=t('

m Ti <: TimeDim

Ti(val=:)

Time Dimension. Ti <: TimeDim <: IndependentDim

Time is already used by Dates, and T is a common type parameter, We use Ti to avoid clashes.

Example:

julia
timedim = Ti(DateTime(2021, 1):Month(1):DateTime(2021, 12))
julia
val = A[Ti(1)]
julia
mean(A; dims=Ti)

source

',9))]),i("details",f,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.Dim",href:"#DimensionalData.Dimensions.Dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Dim")],-1)),s[37]||(s[37]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[38]||(s[38]=t(`
julia
Dim{S}(val=:)

A generic dimension. For use when custom dims are required when loading data from a file. Can be used as keyword arguments for indexing.

Dimension types take precedence over same named Dim types when indexing with symbols, or e.g. creating Tables.jl keys.

julia
julia> dim = Dim{:custom}(['a', 'b', 'c'])
+custom ['a', 'b', 'c']

source

`,5))]),i("details",j,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.AnonDim",href:"#DimensionalData.Dimensions.AnonDim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.AnonDim")],-1)),s[40]||(s[40]=a()),e(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[41]||(s[41]=t(`
julia
AnonDim <: Dimension
+
+AnonDim()

Anonymous dimension. Used when extra dimensions are created, such as during transpose of a vector.

source

`,3))]),i("details",B,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.Dimensions.@dim",href:"#DimensionalData.Dimensions.@dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.@dim")],-1)),s[43]||(s[43]=a()),e(n,{type:"info",class:"jlObjectType jlMacro",text:"Macro"})]),s[44]||(s[44]=t(`
julia
@dim typ [supertype=Dimension] [label::String=string(typ)]

Macro to easily define new dimensions.

The supertype will be inserted into the type of the dim. The default is simply YourDim <: Dimension.

Making a Dimension inherit from XDim, YDim, ZDim or TimeDim will affect automatic plot layout and other methods that dispatch on these types. <: YDim are plotted on the Y axis, <: XDim on the X axis, etc.

label is used in plots and similar, if the dimension is short for a longer word.

Example:

julia
using DimensionalData
+using DimensionalData: @dim, YDim, XDim
+@dim Lat YDim "Latitude"
+@dim Lon XDim "Longitude"
+# output

source

`,8))]),s[111]||(s[111]=i("h3",{id:"Exported-methods",tabindex:"-1"},[a("Exported methods "),i("a",{class:"header-anchor",href:"#Exported-methods","aria-label":'Permalink to "Exported methods {#Exported-methods}"'},"​")],-1)),s[112]||(s[112]=i("p",null,"These are widely useful methods for working with dimensions.",-1)),i("details",v,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.Dimensions.dims-api-dimensions",href:"#DimensionalData.Dimensions.dims-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims")],-1)),s[46]||(s[46]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[47]||(s[47]=t(`
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

`,13))]),i("details",A,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.Dimensions.otherdims-api-dimensions",href:"#DimensionalData.Dimensions.otherdims-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.otherdims")],-1)),s[49]||(s[49]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[50]||(s[50]=t(`
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

`,8))]),i("details",T,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.Dimensions.dimnum-api-dimensions",href:"#DimensionalData.Dimensions.dimnum-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimnum")],-1)),s[52]||(s[52]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[53]||(s[53]=t(`
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

`,8))]),i("details",x,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.Dimensions.hasdim-api-dimensions",href:"#DimensionalData.Dimensions.hasdim-api-dimensions"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.hasdim")],-1)),s[55]||(s[55]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[56]||(s[56]=t(`
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

`,8))]),s[113]||(s[113]=i("h3",{id:"Non-exported-methods",tabindex:"-1"},[a("Non-exported methods "),i("a",{class:"header-anchor",href:"#Non-exported-methods","aria-label":'Permalink to "Non-exported methods {#Non-exported-methods}"'},"​")],-1)),i("details",w,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.Dimensions.lookup",href:"#DimensionalData.Dimensions.lookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.lookup")],-1)),s[58]||(s[58]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[59]||(s[59]=t(`
julia
lookup(x::Dimension) => Lookup
+lookup(x, [dims::Tuple]) => Tuple{Vararg{Lookup}}
+lookup(x::Tuple) => Tuple{Vararg{Lookup}}
+lookup(x, dim) => Lookup

Returns the Lookup of a dimension. This dictates properties of the dimension such as array axis and lookup order, and sampling properties.

dims can be a Dimension, a dimension type, or a tuple of either.

This is separate from val in that it will only work when dimensions actually contain an AbstractArray lookup, and can be used on a DimArray or DimStack to retrieve all lookups, as there is no ambiguity of meaning as there is with val.

source

`,5))]),i("details",L,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.Dimensions.label",href:"#DimensionalData.Dimensions.label"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.label")],-1)),s[61]||(s[61]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[62]||(s[62]=t(`
julia
label(x) => String
+label(x, dims::Tuple) => NTuple{N,String}
+label(x, dim) => String
+label(xs::Tuple) => NTuple{N,String}

Get a plot label for data or a dimension. This will include the name and units if they exist, and anything else that should be shown on a plot.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",q,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DimensionalData.Dimensions.format",href:"#DimensionalData.Dimensions.format"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.format")],-1)),s[64]||(s[64]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=t('
julia
format(dims, x) => Tuple{Vararg{Dimension,N}}

Format the passed-in dimension(s) dims to match the object x.

Errors are thrown if dims don't match the array dims or size, and any fields holding Auto- objects are filled with guessed objects.

If a Lookup hasn't been specified, a lookup is chosen based on the type and element type of the values.

source

',5))]),i("details",X,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.Dimensions.dims2indices",href:"#DimensionalData.Dimensions.dims2indices"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims2indices")],-1)),s[67]||(s[67]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[68]||(s[68]=t('
julia
dims2indices(dim::Dimension, I) => NTuple{Union{Colon,AbstractArray,Int}}

Convert a Dimension or Selector I to indices of Int, AbstractArray or Colon.

source

',3))]),i("details",Y,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Dimensions.Lookups.selectindices",href:"#DimensionalData.Dimensions.Lookups.selectindices"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.selectindices")],-1)),s[70]||(s[70]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[71]||(s[71]=t('
julia
selectindices(lookups, selectors)

Converts Selector to regular indices.

source

',3))]),s[114]||(s[114]=i("h3",{id:"Primitive-methods",tabindex:"-1"},[a("Primitive methods "),i("a",{class:"header-anchor",href:"#Primitive-methods","aria-label":'Permalink to "Primitive methods {#Primitive-methods}"'},"​")],-1)),s[115]||(s[115]=i("p",null,"These low-level methods are really for internal use, but can be useful for writing dimensional algorithms.",-1)),s[116]||(s[116]=i("p",null,"They are not guaranteed to keep their interface, but usually will.",-1)),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.Dimensions.commondims",href:"#DimensionalData.Dimensions.commondims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.commondims")],-1)),s[73]||(s[73]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[74]||(s[74]=t(`
julia
commondims([f], x, query) => Tuple{Vararg{Dimension}}

This is basically dims(x, query) where the order of the original is kept, unlike dims where the query tuple determines the order

Also unlike dims,commondims always returns a Tuple, no matter the input. No errors are thrown if dims are absent from either x or query.

f is <: by default, but can be >: to sort abstract types by concrete types.

julia
julia> using DimensionalData, .Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> commondims(A, X)
+( X)
+
+julia> commondims(A, (X, Z))
+( X,  Z)
+
+julia> commondims(A, Ti)
+()

source

`,6))]),i("details",P,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.Dimensions.name2dim",href:"#DimensionalData.Dimensions.name2dim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.name2dim")],-1)),s[76]||(s[76]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[77]||(s[77]=t(`
julia
name2dim(s::Symbol) => Dimension
+name2dim(dims...) => Tuple{Dimension,Vararg}
+name2dim(dims::Tuple) => Tuple{Dimension,Vararg}

Convert a symbol to a dimension object. :X, :Y, :Ti etc will be converted to X(), Y(), Ti(), as with any other dims generated with the @dim macro.

All other Symbols S will generate Dim{S}() dimensions.

source

`,4))]),i("details",z,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.Dimensions.reducedims",href:"#DimensionalData.Dimensions.reducedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.reducedims")],-1)),s[79]||(s[79]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[80]||(s[80]=t('
julia
reducedims(x, dimstoreduce) => Tuple{Vararg{Dimension}}

Replace the specified dimensions with an index of length 1. This is usually to match a new array size where an axis has been reduced with a method like mean or reduce to a length of 1, but the number of dimensions has not changed.

Lookup traits are also updated to correspond to the change in cell step, sampling type and order.

source

',4))]),i("details",S,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.Dimensions.swapdims",href:"#DimensionalData.Dimensions.swapdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.swapdims")],-1)),s[82]||(s[82]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[83]||(s[83]=t(`
julia
swapdims(x::T, newdims) => T
+swapdims(dims::Tuple, newdims) => Tuple{Vararg{Dimension}}

Swap dimensions for the passed in dimensions, in the order passed.

Passing in the Dimension types rewraps the dimension index, keeping the index values and metadata, while constructed Dimension objects replace the original dimension. nothing leaves the original dimension as-is.

Arguments

Example

julia
using DimensionalData
+A = ones(X(2), Y(4), Z(2))
+Dimensions.swapdims(A, (Dim{:a}, Dim{:b}, Dim{:c}))
+
+# output
+╭────────────────────────────╮
+2×4×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ a,  b, ↗ c
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0

source

`,8))]),i("details",R,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.Dimensions.slicedims",href:"#DimensionalData.Dimensions.slicedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.slicedims")],-1)),s[85]||(s[85]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[86]||(s[86]=t(`
julia
slicedims(x, I) => Tuple{Tuple,Tuple}
+slicedims(f, x, I) => Tuple{Tuple,Tuple}

Slice the dimensions to match the axis values of the new array.

All methods return a tuple containing two tuples: the new dimensions, and the reference dimensions. The ref dimensions are no longer used in the new struct but are useful to give context to plots.

Called at the array level the returned tuple will also include the previous reference dims attached to the array.

Arguments

source

`,7))]),i("details",Z,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.Dimensions.comparedims",href:"#DimensionalData.Dimensions.comparedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.comparedims")],-1)),s[88]||(s[88]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[89]||(s[89]=t(`
julia
comparedims(A::AbstractDimArray...; kw...)
+comparedims(A::Tuple...; kw...)
+comparedims(A::Dimension...; kw...)
+comparedims(::Type{Bool}, args...; kw...)

Check that dimensions or tuples of dimensions passed as each argument are the same, and return the first valid dimension. If AbstractDimArrays are passed as arguments their dimensions are compared.

Empty tuples and nothing dimension values are ignored, returning the Dimension value if it exists.

Passing Bool as the first argument means true/false will be returned, rather than throwing an error.

Keywords

These are all Bool flags:

source

`,8))]),i("details",I,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.combinedims",href:"#DimensionalData.Dimensions.combinedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.combinedims")],-1)),s[91]||(s[91]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[92]||(s[92]=t('
julia
combinedims(xs; check=true, kw...)

Combine the dimensions of each object in xs, in the order they are found.

Keywords are passed to comparedims.

source

',4))]),i("details",N,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.sortdims",href:"#DimensionalData.Dimensions.sortdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.sortdims")],-1)),s[94]||(s[94]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[95]||(s[95]=t('
julia
sortdims([f], tosort, order) => Tuple

Sort dimensions tosort by order. Dimensions in order but missing from tosort are replaced with nothing.

tosort and order can be Tuples or Vectors or Dimension or dimension type. Abstract supertypes like TimeDim can be used in order.

f is <: by default, but can be >: to sort abstract types by concrete types.

source

',5))]),i("details",V,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.Dimensions.Lookups.basetypeof",href:"#DimensionalData.Dimensions.Lookups.basetypeof"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.basetypeof")],-1)),s[97]||(s[97]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[98]||(s[98]=t('
julia
basetypeof(x) => Type

Get the "base" type of an object - the minimum required to define the object without it's fields. By default this is the full UnionAll for the type. But custom basetypeof methods can be defined for types with free type parameters.

In DimensionalData this is primarily used for comparing Dimensions, where Dim{:x} is different from Dim{:y}.

source

',4))]),i("details",M,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.Dimensions.basedims",href:"#DimensionalData.Dimensions.basedims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.basedims")],-1)),s[100]||(s[100]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[101]||(s[101]=t(`
julia
basedims(ds::Tuple)
+basedims(d::Union{Dimension,Symbol,Type})

Returns basetypeof(d)() or a Tuple of called on a Tuple.

See basetypeof

source

`,4))]),i("details",G,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.Dimensions.setdims",href:"#DimensionalData.Dimensions.setdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.setdims")],-1)),s[103]||(s[103]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[104]||(s[104]=t(`
julia
setdims(X, newdims) => AbstractArray
+setdims(::Tuple, newdims) => Tuple{Vararg{Dimension,N}}

Replaces the first dim matching <: basetypeof(newdim) with newdim, and returns a new object or tuple with the dimension updated.

Arguments

Example

julia
using DimensionalData, DimensionalData.Dimensions, DimensionalData.Lookups
+A = ones(X(10), Y(10:10:100))
+B = setdims(A, Y(Categorical('a':'j'; order=ForwardOrdered())))
+lookup(B, Y)
+# output
+Categorical{Char} ForwardOrdered
+wrapping: 'a':1:'j'

source

`,7))]),i("details",U,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.Dimensions.dimsmatch",href:"#DimensionalData.Dimensions.dimsmatch"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimsmatch")],-1)),s[106]||(s[106]=a()),e(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[107]||(s[107]=t(`
julia
dimsmatch([f], dim, query) => Bool
+dimsmatch([f], dims::Tuple, query::Tuple) => Bool

Compare 2 dimensions or Tuple of Dimension are of the same base type, or are at least rotations/transformations of the same type.

f is <: by default, but can be >: to match abstract types to concrete types.

source

`,4))])])}const is=l(d,[["render",$]]);export{ss as __pageData,is as default}; diff --git a/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.js b/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.js new file mode 100644 index 000000000..37280ae9e --- /dev/null +++ b/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.js @@ -0,0 +1,218 @@ +import{_ as l,c as p,j as i,a,G as n,a4 as t,B as o,o as h}from"./chunks/framework.ByNLHi2E.js";const bs=JSON.parse('{"title":"Lookups","description":"","frontmatter":{},"headers":[],"relativePath":"api/lookuparrays.md","filePath":"api/lookuparrays.md","lastUpdated":null}'),k={name:"api/lookuparrays.md"},r={class:"jldocstring custom-block",open:""},d={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},W={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},K={class:"jldocstring custom-block",open:""},$={class:"jldocstring custom-block",open:""},H={class:"jldocstring custom-block",open:""},J={class:"jldocstring custom-block",open:""},Q={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},_={class:"jldocstring custom-block",open:""},ss={class:"jldocstring custom-block",open:""},is={class:"jldocstring custom-block",open:""},as={class:"jldocstring custom-block",open:""},es={class:"jldocstring custom-block",open:""},ns={class:"jldocstring custom-block",open:""},ts={class:"jldocstring custom-block",open:""},ls={class:"jldocstring custom-block",open:""},ps={class:"jldocstring custom-block",open:""},os={class:"jldocstring custom-block",open:""},hs={class:"jldocstring custom-block",open:""},ks={class:"jldocstring custom-block",open:""},rs={class:"jldocstring custom-block",open:""},ds={class:"jldocstring custom-block",open:""},gs={class:"jldocstring custom-block",open:""},cs={class:"jldocstring custom-block",open:""};function us(ys,s,Es,ms,Ds,Fs){const e=o("Badge");return h(),p("div",null,[s[174]||(s[174]=i("h1",{id:"lookups",tabindex:"-1"},[a("Lookups "),i("a",{class:"header-anchor",href:"#lookups","aria-label":'Permalink to "Lookups"'},"​")],-1)),i("details",r,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.Dimensions.Lookups",href:"#DimensionalData.Dimensions.Lookups"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups")],-1)),s[1]||(s[1]=a()),n(e,{type:"info",class:"jlObjectType jlModule",text:"Module"})]),s[2]||(s[2]=t(`
julia
Lookups

Module for Lookups and Selectors used in DimensionalData.jl

Lookup defines traits and AbstractArray wrappers that give specific behaviours for a lookup index when indexed with Selector.

For example, these allow tracking over array order so fast indexing works even when the array is reversed.

To load Lookup types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Lookups

source

`,7))]),i("details",d,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.Dimensions.Lookups.Lookup",href:"#DimensionalData.Dimensions.Lookups.Lookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Lookup")],-1)),s[4]||(s[4]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=t('
julia
Lookup

Types defining the behaviour of a lookup index, how it is plotted and how Selectors like Between work.

A Lookup may be NoLookup indicating that there are no lookup values, Categorical for ordered or unordered categories, or a Sampled index for Points or Intervals.

source

',4))]),i("details",g,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.Dimensions.Lookups.Aligned",href:"#DimensionalData.Dimensions.Lookups.Aligned"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Aligned")],-1)),s[7]||(s[7]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=t('
julia
Aligned <: Lookup

Abstract supertype for Lookups where the lookup is aligned with the array axes.

This is by far the most common supertype for Lookup.

source

',4))]),i("details",c,[i("summary",null,[s[9]||(s[9]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractSampled",href:"#DimensionalData.Dimensions.Lookups.AbstractSampled"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractSampled")],-1)),s[10]||(s[10]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[11]||(s[11]=t('
julia
AbstractSampled <: Aligned

Abstract supertype for Lookups where the lookup is aligned with the array, and is independent of other dimensions. Sampled is provided by this package.

AbstractSampled must have order, span and sampling fields, or a rebuild method that accepts them as keyword arguments.

source

',4))]),i("details",u,[i("summary",null,[s[12]||(s[12]=i("a",{id:"DimensionalData.Dimensions.Lookups.Sampled",href:"#DimensionalData.Dimensions.Lookups.Sampled"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Sampled")],-1)),s[13]||(s[13]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[14]||(s[14]=t(`
julia
Sampled <: AbstractSampled
+
+Sampled(data::AbstractVector, order::Order, span::Span, sampling::Sampling, metadata)
+Sampled(data=AutoValues(); order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata())

A concrete implementation of the Lookup AbstractSampled. It can be used to represent Points or Intervals.

Sampled is capable of representing gridded data from a wide range of sources, allowing correct bounds and Selectors for points or intervals of regular, irregular, forward and reverse lookups.

On AbstractDimArray construction, Sampled lookup is assigned for all lookups of AbstractRange not assigned to Categorical.

Arguments

Example

Create an array with Interval sampling, and Regular span for a vector with known spacing.

We set the locus of the Intervals to Start specifying that the lookup values are for the locus at the start of each interval.

julia
using DimensionalData, DimensionalData.Lookups
+
+x = X(Sampled(100:-20:10; sampling=Intervals(Start())))
+y = Y(Sampled([1, 4, 7, 10]; span=Regular(3), sampling=Intervals(Start())))
+A = ones(x, y)
+
+# output
+╭──────────────────────────╮
+5×4 DimArray{Float64, 2} │
+├──────────────────────────┴───────────────────────────────────────── dims ┐
+ X Sampled{Int64} 100:-20:20 ReverseOrdered Regular Intervals{Start},
+ Y Sampled{Int64} [1, 4, 7, 10] ForwardOrdered Regular Intervals{Start}
+└──────────────────────────────────────────────────────────────────────────┘
+  1    4    7    10
+ 100    1.0  1.0  1.0   1.0
+  80    1.0  1.0  1.0   1.0
+  60    1.0  1.0  1.0   1.0
+  40    1.0  1.0  1.0   1.0
+  20    1.0  1.0  1.0   1.0

source

`,11))]),i("details",y,[i("summary",null,[s[15]||(s[15]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractCyclic",href:"#DimensionalData.Dimensions.Lookups.AbstractCyclic"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractCyclic")],-1)),s[16]||(s[16]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[17]||(s[17]=t('
julia
AbstractCyclic <: AbstractSampled

An abstract supertype for cyclic lookups.

These are AbstractSampled lookups that are cyclic for Selectors.

source

',4))]),i("details",E,[i("summary",null,[s[18]||(s[18]=i("a",{id:"DimensionalData.Dimensions.Lookups.Cyclic",href:"#DimensionalData.Dimensions.Lookups.Cyclic"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Cyclic")],-1)),s[19]||(s[19]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[20]||(s[20]=t(`
julia
Cyclic <: AbstractCyclic
+
+Cyclic(data; order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata(), cycle)

A Cyclic lookup is similar to Sampled but out of range Selectors At, Near, Contains will cycle the values to typemin or typemax over the length of cycle. Where and .. work as for Sampled.

This is useful when we are using mean annual datasets over a real time-span, or for wrapping longitudes so that -360 and 360 are the same.

Arguments

Notes

  1. If you use dates and e.g. cycle over a Year, every year will have the number and spacing of Weeks and Days as the cycle year. Using At may not be reliable in terms of exact dates, as it will be applied to the specified date plus or minus n years.

  2. Indexing into a Cycled with any AbstractArray or AbstractRange will return a Sampled as the full cycle is likely no longer available.

  3. .. or Between selectors do not work in a cycled way: they work as for Sampled. This may change in future to return cycled values, but there are problems with this, such as leap years breaking correct date cycling of a single year. If you actually need this behaviour, please make a GitHub issue.

source

`,8))]),i("details",m,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractCategorical",href:"#DimensionalData.Dimensions.Lookups.AbstractCategorical"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractCategorical")],-1)),s[22]||(s[22]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[23]||(s[23]=t('
julia
AbstractCategorical <: Aligned

Lookups where the values are categories.

Categorical is the provided concrete implementation. But this can easily be extended, all methods are defined for AbstractCategorical.

All AbstractCategorical must provide a rebuild method with data, order and metadata keyword arguments.

source

',5))]),i("details",D,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.Lookups.Categorical",href:"#DimensionalData.Dimensions.Lookups.Categorical"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Categorical")],-1)),s[25]||(s[25]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[26]||(s[26]=t(`
julia
Categorical <: AbstractCategorical
+
+Categorical(o::Order)
+Categorical(; order=Unordered())

A Lookup where the values are categories.

This will be automatically assigned if the lookup contains AbstractString, Symbol or Char. Otherwise it can be assigned manually.

Order will be determined automatically where possible.

Arguments

Example

Create an array with [Interval] sampling.

julia
using DimensionalData
+
+ds = X(["one", "two", "three"]), Y([:a, :b, :c, :d])
+A = DimArray(rand(3, 4), ds)
+Dimensions.lookup(A)
+
+# output
+
+Categorical{String} ["one", "two", "three"] Unordered,
+Categorical{Symbol} [:a, :b, :c, :d] ForwardOrdered

source

`,10))]),i("details",F,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Lookups.Unaligned",href:"#DimensionalData.Dimensions.Lookups.Unaligned"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Unaligned")],-1)),s[28]||(s[28]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[29]||(s[29]=t('
julia
Unaligned <: Lookup

Abstract supertype for Lookup where the lookup is not aligned to the grid.

Indexing an Unaligned with Selectors must provide all other Unaligned dimensions.

source

',4))]),i("details",C,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.Lookups.Transformed",href:"#DimensionalData.Dimensions.Lookups.Transformed"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Transformed")],-1)),s[31]||(s[31]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[32]||(s[32]=t(`
julia
Transformed <: Unaligned
+
+Transformed(f, dim::Dimension; metadata=NoMetadata())

Lookup that uses an affine transformation to convert dimensions from dims(lookup) to dims(array). This can be useful when the dimensions are e.g. rotated from a more commonly used axis.

Any function can be used to do the transformation, but transformations from CoordinateTransformations.jl may be useful.

Arguments

Keyword Arguments

Example

julia
using DimensionalData, DimensionalData.Lookups, CoordinateTransformations
+
+m = LinearMap([0.5 0.0; 0.0 0.5])
+A = [1 2  3  4
+     5 6  7  8
+     9 10 11 12];
+da = DimArray(A, (X(Transformed(m)), Y(Transformed(m))))
+
+da[X(At(6.0)), Y(At(2.0))]
+
+# output
+9

source

`,10))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.MergedLookup",href:"#DimensionalData.Dimensions.MergedLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.MergedLookup")],-1)),s[34]||(s[34]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[35]||(s[35]=t(`
julia
MergedLookup <: Lookup
+
+MergedLookup(data, dims; [metadata])

A Lookup that holds multiple combined dimensions.

MergedLookup can be indexed with Selectors like At, Between, and Where although Near has undefined meaning.

Arguments

Keywords

source

`,8))]),i("details",f,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.Lookups.NoLookup",href:"#DimensionalData.Dimensions.Lookups.NoLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.NoLookup")],-1)),s[37]||(s[37]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[38]||(s[38]=t(`
julia
NoLookup <: Lookup
+
+NoLookup()

A Lookup that is identical to the array axis. Selectors can't be used on this lookup.

Example

Defining a DimArray without passing lookup values to the dimensions, it will be assigned NoLookup:

julia
using DimensionalData
+
+A = DimArray(rand(3, 3), (X, Y))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

Which is identical to:

julia
using .Lookups
+A = DimArray(rand(3, 3), (X(NoLookup()), Y(NoLookup())))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

source

`,8))]),i("details",v,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoLookup",href:"#DimensionalData.Dimensions.Lookups.AutoLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoLookup")],-1)),s[40]||(s[40]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[41]||(s[41]=t(`
julia
AutoLookup <: Lookup
+
+AutoLookup()
+AutoLookup(values=AutoValues(); kw...)

Automatic Lookup, the default lookup. It will be converted automatically to another Lookup when it is possible to detect it from the lookup values.

Keywords will be used in the detected Lookup constructor.

source

`,4))]),i("details",j,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoValues",href:"#DimensionalData.Dimensions.Lookups.AutoValues"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoValues")],-1)),s[43]||(s[43]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[44]||(s[44]=t('
julia
AutoValues

Detect Lookup values from the context. This is used in NoLookup to simply use the array axis as the index when the array is constructed, and in set to change the Lookup type without changing the index values.

source

',3))]),s[175]||(s[175]=i("p",null,[a("The generic value getter "),i("code",null,"val")],-1)),i("details",B,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.Dimensions.Lookups.val",href:"#DimensionalData.Dimensions.Lookups.val"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.val")],-1)),s[46]||(s[46]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[47]||(s[47]=t(`
julia
val(x)
+val(dims::Tuple) => Tuple

Return the contained value of a wrapper object.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

Objects that don't define a val method are returned unaltered.

source

`,5))]),s[176]||(s[176]=i("p",null,"Lookup methods:",-1)),i("details",L,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.Dimensions.Lookups.bounds",href:"#DimensionalData.Dimensions.Lookups.bounds"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.bounds")],-1)),s[49]||(s[49]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[50]||(s[50]=t(`
julia
bounds(xs, [dims::Tuple]) => Tuple{Vararg{Tuple{T,T}}}
+bounds(xs::Tuple) => Tuple{Vararg{Tuple{T,T}}}
+bounds(x, dim) => Tuple{T,T}
+bounds(dim::Union{Dimension,Lookup}) => Tuple{T,T}

Return the bounds of all dimensions of an object, of a specific dimension, or of a tuple of dimensions.

If bounds are not known, one or both values may be nothing.

dims can be a Dimension, a dimension type, or a tuple of either.

source

`,5))]),i("details",A,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.Dimensions.Lookups.hasselection",href:"#DimensionalData.Dimensions.Lookups.hasselection"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.hasselection")],-1)),s[52]||(s[52]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[53]||(s[53]=t(`
julia
hasselection(x, selector) => Bool
+hasselection(x, selectors::Tuple) => Bool

Check if indexing into x with selectors can be performed, where x is some object with a dims method, and selectors is a Selector or Dimension or a tuple of either.

source

`,3))]),i("details",w,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.Dimensions.Lookups.sampling",href:"#DimensionalData.Dimensions.Lookups.sampling"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.sampling")],-1)),s[55]||(s[55]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[56]||(s[56]=t(`
julia
sampling(x, [dims::Tuple]) => Tuple
+sampling(x, dim) => Sampling
+sampling(xs::Tuple) => Tuple{Vararg{Sampling}}
+sampling(x:Union{Dimension,Lookup}) => Sampling

Return the Sampling for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",x,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.Dimensions.Lookups.span",href:"#DimensionalData.Dimensions.Lookups.span"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.span")],-1)),s[58]||(s[58]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[59]||(s[59]=t(`
julia
span(x, [dims::Tuple]) => Tuple
+span(x, dim) => Span
+span(xs::Tuple) => Tuple{Vararg{Span,N}}
+span(x::Union{Dimension,Lookup}) => Span

Return the Span for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",T,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.Dimensions.Lookups.order",href:"#DimensionalData.Dimensions.Lookups.order"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.order")],-1)),s[61]||(s[61]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[62]||(s[62]=t(`
julia
order(x, [dims::Tuple]) => Tuple
+order(xs::Tuple) => Tuple
+order(x::Union{Dimension,Lookup}) => Order

Return the Ordering of the dimension lookup for each dimension: ForwardOrdered, ReverseOrdered, or Unordered

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",S,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DimensionalData.Dimensions.Lookups.locus",href:"#DimensionalData.Dimensions.Lookups.locus"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.locus")],-1)),s[64]||(s[64]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=t(`
julia
locus(x, [dims::Tuple]) => Tuple
+locus(x, dim) => Locus
+locus(xs::Tuple) => Tuple{Vararg{Locus,N}}
+locus(x::Union{Dimension,Lookup}) => Locus

Return the Position of lookup values for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",P,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.Dimensions.Lookups.shiftlocus",href:"#DimensionalData.Dimensions.Lookups.shiftlocus"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.shiftlocus")],-1)),s[67]||(s[67]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[68]||(s[68]=t('
julia
shiftlocus(locus::Locus, x)

Shift the values of x from the current locus to the new locus.

We only shift Sampled, Regular or Explicit, Intervals.

source

',4))]),s[177]||(s[177]=i("h2",{id:"selectors",tabindex:"-1"},[a("Selectors "),i("a",{class:"header-anchor",href:"#selectors","aria-label":'Permalink to "Selectors"'},"​")],-1)),i("details",R,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Dimensions.Lookups.Selector",href:"#DimensionalData.Dimensions.Lookups.Selector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Selector")],-1)),s[70]||(s[70]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[71]||(s[71]=t('
julia
Selector

Abstract supertype for all selectors.

Selectors are wrappers that indicate that passed values are not the array indices, but values to be selected from the dimension lookup, such as DateTime objects for a Ti dimension.

Selectors provided in DimensionalData are:

Note: Selectors can be modified using:

And IntervalSets.jl Interval can be used instead of Between

source

',10))]),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.Dimensions.Lookups.IntSelector",href:"#DimensionalData.Dimensions.Lookups.IntSelector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.IntSelector")],-1)),s[73]||(s[73]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[74]||(s[74]=t('
julia
IntSelector <: Selector

Abstract supertype for Selectors that return a single Int index.

IntSelectors provided by DimensionalData are:

source

',5))]),i("details",I,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.Dimensions.Lookups.ArraySelector",href:"#DimensionalData.Dimensions.Lookups.ArraySelector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ArraySelector")],-1)),s[76]||(s[76]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[77]||(s[77]=t('
julia
ArraySelector <: Selector

Abstract supertype for Selectors that return an AbstractArray.

ArraySelectors provided by DimensionalData are:

source

',5))]),i("details",q,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.Dimensions.Lookups.At",href:"#DimensionalData.Dimensions.Lookups.At"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.At")],-1)),s[79]||(s[79]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[80]||(s[80]=t(`
julia
At <: IntSelector
+
+At(x; atol=nothing, rtol=nothing)
+At(a, b; kw...)

Selector that exactly matches the value on the passed-in dimensions, or throws an error. For ranges and arrays, every intermediate value must match an existing value - not just the end points.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Keyword atol is passed to isapprox.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(At(20)), Y(At(6))]
+
+# output
+
+5

source

`,7))]),i("details",z,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.Dimensions.Lookups.Near",href:"#DimensionalData.Dimensions.Lookups.Near"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Near")],-1)),s[82]||(s[82]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[83]||(s[83]=t(`
julia
Near <: IntSelector
+
+Near(x)
+Near(a, b)

Selector that selects the nearest index to x.

With Points this is simply the lookup values nearest to the x, however with Intervals it is the interval center nearest to x. This will be offset from the index value for Start and End locus.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between the nearsest value to each of them will be selected.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Near(23)), Y(Near(5.1))]
+
+# output
+4

source

`,7))]),i("details",N,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.Dimensions.Lookups.Between",href:"#DimensionalData.Dimensions.Lookups.Between"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Between")],-1)),s[85]||(s[85]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[86]||(s[86]=t(`
julia
Between <: ArraySelector
+
+Between(a, b)

Depreciated: use a..b instead of Between(a, b). Other Interval objects from IntervalSets.jl, like \`OpenInterval(a, b) will also work, giving the correct open/closed boundaries.

Between will e removed in future to avoid clashes with DataFrames.Between.

Selector that retrieve all indices located between 2 values, evaluated with >= for the lower value, and < for the upper value. This means the same value will not be counted twice in 2 adjacent Between selections.

For Intervals the whole interval must be lie between the values. For Points the points must fall between the values. Different Sampling types may give different results with the same input - this is the intended behaviour.

Between for Irregular intervals is a little complicated. The interval is the distance between a value and the next (for Start locus) or previous (for End locus) value.

For Center, we take the mid point between two index values as the start and end of each interval. This may or may not make sense for the values in your index, so use Between with Irregular Intervals(Center()) with caution.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Between(15, 25)), Y(Between(4, 6.5))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

`,10))]),i("details",M,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.Dimensions.Lookups.Touches",href:"#DimensionalData.Dimensions.Lookups.Touches"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Touches")],-1)),s[88]||(s[88]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[89]||(s[89]=t(`
julia
Touches <: ArraySelector
+
+Touches(a, b)

Selector that retrieves all indices touching the closed interval 2 values, for the maximum possible area that could interact with the supplied range.

This can be better than .. when e.g. subsetting an area to rasterize, as you may wish to include pixels that just touch the area, rather than those that fall within it.

Touches is different to using closed intervals when the lookups also contain intervals - if any of the intervals touch, they are included. With .. they are discarded unless the whole cell interval falls inside the selector interval.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Touches(15, 25)), Y(Touches(4, 6.5))]
+
+# output
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

`,7))]),i("details",U,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.Lookups.Contains",href:"#DimensionalData.Dimensions.Lookups.Contains"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Contains")],-1)),s[91]||(s[91]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[92]||(s[92]=t(`
julia
Contains <: IntSelector
+
+Contains(x)
+Contains(a, b)

Selector that selects the interval the value is contained by. If the interval is not present in the lookup, an error will be thrown.

Can only be used for Intervals or Categorical. For Categorical it falls back to using At. Contains should not be confused with Base.contains - use Where(contains(x)) to check for if values are contain in categorical values like strings.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Example

julia
using DimensionalData; const DD = DimensionalData
+dims_ = X(10:10:20; sampling=DD.Intervals(DD.Center())),
+        Y(5:7; sampling=DD.Intervals(DD.Center()))
+A = DimArray([1 2 3; 4 5 6], dims_)
+A[X(Contains(8)), Y(Contains(6.8))]
+
+# output
+3

source

`,7))]),i("details",X,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.Lookups.Where",href:"#DimensionalData.Dimensions.Lookups.Where"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Where")],-1)),s[94]||(s[94]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[95]||(s[95]=t(`
julia
Where <: ArraySelector
+
+Where(f::Function)

Selector that filters a dimension lookup by any function that accepts a single value and returns a Bool.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(19:21)))
+A[X(Where(x -> x > 15)), Y(Where(x -> x in (19, 21)))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Int64} [20] ForwardOrdered Irregular Points,
+ Y Sampled{Int64} [19, 21] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+  19  21
+ 20     4   6

source

`,5))]),i("details",Y,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.Dimensions.Lookups.All",href:"#DimensionalData.Dimensions.Lookups.All"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.All")],-1)),s[97]||(s[97]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[98]||(s[98]=t(`
julia
All <: Selector
+
+All(selectors::Selector...)

Selector that combines the results of other selectors. The indices used will be the union of all result sorted in ascending order.

Example

julia
using DimensionalData, Unitful
+
+dimz = X(10.0:20:200.0), Ti(1u"s":5u"s":100u"s")
+A = DimArray((1:10) * (1:20)', dimz)
+A[X=All(At(10.0), At(50.0)), Ti=All(1u"s"..10u"s", 90u"s"..100u"s")]
+
+# output
+
+╭────────────────────────╮
+2×4 DimArray{Int64, 2} │
+├────────────────────────┴─────────────────────────────────────────────── dims ┐
+ X  Sampled{Float64} [10.0, 50.0] ForwardOrdered Irregular Points,
+ Ti Sampled{Unitful.Quantity{Int64, 𝐓, Unitful.FreeUnits{(s,), 𝐓, nothing}}} [1 s, 6 s, 91 s, 96 s] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1 s  6 s  91 s  96 s
+ 10.0    1    2    19    20
+ 50.0    3    6    57    60

source

`,5))]),s[178]||(s[178]=i("h2",{id:"Lookup-traits",tabindex:"-1"},[a("Lookup traits "),i("a",{class:"header-anchor",href:"#Lookup-traits","aria-label":'Permalink to "Lookup traits {#Lookup-traits}"'},"​")],-1)),i("details",V,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.Dimensions.Lookups.LookupTrait",href:"#DimensionalData.Dimensions.Lookups.LookupTrait"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.LookupTrait")],-1)),s[100]||(s[100]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[101]||(s[101]=t('
julia
LookupTrait

Abstract supertype of all traits of a Lookup.

These modify the behaviour of the lookup index.

The term "Trait" is used loosely - these may be fields of an object of traits hard-coded to specific types.

source

',5))]),s[179]||(s[179]=i("h3",{id:"order",tabindex:"-1"},[a("Order "),i("a",{class:"header-anchor",href:"#order","aria-label":'Permalink to "Order"'},"​")],-1)),i("details",W,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.Dimensions.Lookups.Order",href:"#DimensionalData.Dimensions.Lookups.Order"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Order")],-1)),s[103]||(s[103]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[104]||(s[104]=t('
julia
Order <: LookupTrait

Traits for the order of a Lookup. These determine how searchsorted finds values in the index, and how objects are plotted.

source

',3))]),i("details",G,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.Dimensions.Lookups.Ordered",href:"#DimensionalData.Dimensions.Lookups.Ordered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Ordered")],-1)),s[106]||(s[106]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[107]||(s[107]=t('
julia
Ordered <: Order

Supertype for the order of an ordered Lookup, including ForwardOrdered and ReverseOrdered.

source

',3))]),i("details",K,[i("summary",null,[s[108]||(s[108]=i("a",{id:"DimensionalData.Dimensions.Lookups.ForwardOrdered",href:"#DimensionalData.Dimensions.Lookups.ForwardOrdered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ForwardOrdered")],-1)),s[109]||(s[109]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[110]||(s[110]=t(`
julia
ForwardOrdered <: Ordered
+
+ForwardOrdered()

Indicates that the Lookup index is in the normal forward order.

source

`,3))]),i("details",$,[i("summary",null,[s[111]||(s[111]=i("a",{id:"DimensionalData.Dimensions.Lookups.ReverseOrdered",href:"#DimensionalData.Dimensions.Lookups.ReverseOrdered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ReverseOrdered")],-1)),s[112]||(s[112]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[113]||(s[113]=t(`
julia
ReverseOrdered <: Ordered
+
+ReverseOrdered()

Indicates that the Lookup index is in the reverse order.

source

`,3))]),i("details",H,[i("summary",null,[s[114]||(s[114]=i("a",{id:"DimensionalData.Dimensions.Lookups.Unordered",href:"#DimensionalData.Dimensions.Lookups.Unordered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Unordered")],-1)),s[115]||(s[115]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[116]||(s[116]=t(`
julia
Unordered <: Order
+
+Unordered()

Indicates that Lookup is unordered.

This means the index cannot be searched with searchsortedfirst or similar optimised methods - instead it will use findfirst.

source

`,4))]),i("details",J,[i("summary",null,[s[117]||(s[117]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoOrder",href:"#DimensionalData.Dimensions.Lookups.AutoOrder"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoOrder")],-1)),s[118]||(s[118]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[119]||(s[119]=t(`
julia
AutoOrder <: Order
+
+AutoOrder()

Specifies that the Order of a Lookup will be found automatically where possible.

source

`,3))]),s[180]||(s[180]=i("h3",{id:"span",tabindex:"-1"},[a("Span "),i("a",{class:"header-anchor",href:"#span","aria-label":'Permalink to "Span"'},"​")],-1)),i("details",Q,[i("summary",null,[s[120]||(s[120]=i("a",{id:"DimensionalData.Dimensions.Lookups.Span",href:"#DimensionalData.Dimensions.Lookups.Span"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Span")],-1)),s[121]||(s[121]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[122]||(s[122]=t('
julia
Span <: LookupTrait

Defines the type of span used in a Sampling index. These are Regular or Irregular.

source

',3))]),i("details",Z,[i("summary",null,[s[123]||(s[123]=i("a",{id:"DimensionalData.Dimensions.Lookups.Regular",href:"#DimensionalData.Dimensions.Lookups.Regular"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Regular")],-1)),s[124]||(s[124]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[125]||(s[125]=t(`
julia
Regular <: Span
+
+Regular(step=AutoStep())

Points or Intervals that have a fixed, regular step.

source

`,3))]),i("details",_,[i("summary",null,[s[126]||(s[126]=i("a",{id:"DimensionalData.Dimensions.Lookups.Irregular",href:"#DimensionalData.Dimensions.Lookups.Irregular"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Irregular")],-1)),s[127]||(s[127]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[128]||(s[128]=t(`
julia
Irregular <: Span
+
+Irregular(bounds::Tuple)
+Irregular(lowerbound, upperbound)

Points or Intervals that have an Irregular step size. To enable bounds tracking and accurate selectors, the starting bounds are provided as a 2 tuple, or 2 arguments. (nothing, nothing) is acceptable input, the bounds will be guessed from the index, but may be inaccurate.

source

`,3))]),i("details",ss,[i("summary",null,[s[129]||(s[129]=i("a",{id:"DimensionalData.Dimensions.Lookups.Explicit",href:"#DimensionalData.Dimensions.Lookups.Explicit"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Explicit")],-1)),s[130]||(s[130]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[131]||(s[131]=t('
julia
Explicit(bounds::AbstractMatrix)

Intervals where the span is explicitly listed for every interval.

This uses a matrix where with length 2 columns for each index value, holding the lower and upper bounds for that specific index.

source

',4))]),i("details",is,[i("summary",null,[s[132]||(s[132]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoSpan",href:"#DimensionalData.Dimensions.Lookups.AutoSpan"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoSpan")],-1)),s[133]||(s[133]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[134]||(s[134]=t(`
julia
AutoSpan <: Span
+
+AutoSpan()

The span will be guessed and replaced in format or set.

source

`,3))]),s[181]||(s[181]=i("h3",{id:"sampling",tabindex:"-1"},[a("Sampling "),i("a",{class:"header-anchor",href:"#sampling","aria-label":'Permalink to "Sampling"'},"​")],-1)),i("details",as,[i("summary",null,[s[135]||(s[135]=i("a",{id:"DimensionalData.Dimensions.Lookups.Sampling",href:"#DimensionalData.Dimensions.Lookups.Sampling"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Sampling")],-1)),s[136]||(s[136]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[137]||(s[137]=t('
julia
Sampling <: LookupTrait

Indicates the sampling method used by the index: Points or Intervals.

source

',3))]),i("details",es,[i("summary",null,[s[138]||(s[138]=i("a",{id:"DimensionalData.Dimensions.Lookups.Points",href:"#DimensionalData.Dimensions.Lookups.Points"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Points")],-1)),s[139]||(s[139]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[140]||(s[140]=t(`
julia
Points <: Sampling
+
+Points()

Sampling lookup where single samples at exact points.

These are always plotted at the center of array cells.

source

`,4))]),i("details",ns,[i("summary",null,[s[141]||(s[141]=i("a",{id:"DimensionalData.Dimensions.Lookups.Intervals",href:"#DimensionalData.Dimensions.Lookups.Intervals"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Intervals")],-1)),s[142]||(s[142]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[143]||(s[143]=t(`
julia
Intervals <: Sampling
+
+Intervals(locus::Position)

Sampling specifying that sampled values are the mean (or similar) value over an interval, rather than at one specific point.

Intervals require a locus of Start, Center or End to define the location in the interval that the index values refer to.

source

`,4))]),s[182]||(s[182]=i("h3",{id:"positions",tabindex:"-1"},[a("Positions "),i("a",{class:"header-anchor",href:"#positions","aria-label":'Permalink to "Positions"'},"​")],-1)),i("details",ts,[i("summary",null,[s[144]||(s[144]=i("a",{id:"DimensionalData.Dimensions.Lookups.Position",href:"#DimensionalData.Dimensions.Lookups.Position"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Position")],-1)),s[145]||(s[145]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[146]||(s[146]=t('
julia
Position <: LookupTrait

Abstract supertype of types that indicate the locus of index values where they represent Intervals.

These allow for values array cells to align with the Start, Center, or End of values in the lookup index.

This means they can be plotted with correct axis markers, and allows automatic conversions to between formats with different standards (such as NetCDF and GeoTiff).

source

',5))]),i("details",ls,[i("summary",null,[s[147]||(s[147]=i("a",{id:"DimensionalData.Dimensions.Lookups.Center",href:"#DimensionalData.Dimensions.Lookups.Center"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Center")],-1)),s[148]||(s[148]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[149]||(s[149]=t(`
julia
Center <: Position
+
+Center()

Used to specify lookup values correspond to the center locus in an interval.

source

`,3))]),i("details",ps,[i("summary",null,[s[150]||(s[150]=i("a",{id:"DimensionalData.Dimensions.Lookups.Start",href:"#DimensionalData.Dimensions.Lookups.Start"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Start")],-1)),s[151]||(s[151]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[152]||(s[152]=t(`
julia
Start <: Position
+
+Start()

Used to specify lookup values correspond to the start locus of an interval.

source

`,3))]),i("details",os,[i("summary",null,[s[153]||(s[153]=i("a",{id:"DimensionalData.Dimensions.Lookups.Begin",href:"#DimensionalData.Dimensions.Lookups.Begin"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Begin")],-1)),s[154]||(s[154]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[155]||(s[155]=t(`
julia
Begin <: Position
+
+Begin()

Used to specify the begin index of a Dimension axis, as regular begin will not work with named dimensions.

Can be used with : to create a BeginEndRange or BeginEndStepRange.

source

`,4))]),i("details",hs,[i("summary",null,[s[156]||(s[156]=i("a",{id:"DimensionalData.Dimensions.Lookups.End",href:"#DimensionalData.Dimensions.Lookups.End"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.End")],-1)),s[157]||(s[157]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[158]||(s[158]=t(`
julia
End <: Position
+
+End()

Used to specify the end index of a Dimension axis, as regular end will not work with named dimensions. Can be used with : to create a BeginEndRange or BeginEndStepRange.

Also used to specify lookup values correspond to the end locus of an interval.

source

`,4))]),i("details",ks,[i("summary",null,[s[159]||(s[159]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoPosition",href:"#DimensionalData.Dimensions.Lookups.AutoPosition"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoPosition")],-1)),s[160]||(s[160]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[161]||(s[161]=t(`
julia
AutoPosition <: Position
+
+AutoPosition()

Indicates a interval where the index locus is not yet known. This will be filled with a default value on object construction.

source

`,3))]),s[183]||(s[183]=i("h2",{id:"metadata",tabindex:"-1"},[a("Metadata "),i("a",{class:"header-anchor",href:"#metadata","aria-label":'Permalink to "Metadata"'},"​")],-1)),i("details",rs,[i("summary",null,[s[162]||(s[162]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractMetadata",href:"#DimensionalData.Dimensions.Lookups.AbstractMetadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractMetadata")],-1)),s[163]||(s[163]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[164]||(s[164]=t('
julia
AbstractMetadata{X,T}

Abstract supertype for all metadata wrappers.

Metadata wrappers allow tracking the contents and origin of metadata. This can facilitate conversion between metadata types (for saving a file to a different format) or simply saving data back to the same file type with identical metadata.

Using a wrapper instead of Dict or NamedTuple also lets us pass metadata objects to set without ambiguity about where to put them.

source

',5))]),i("details",ds,[i("summary",null,[s[165]||(s[165]=i("a",{id:"DimensionalData.Dimensions.Lookups.Metadata",href:"#DimensionalData.Dimensions.Lookups.Metadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Metadata")],-1)),s[166]||(s[166]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[167]||(s[167]=t(`
julia
Metadata <: AbstractMetadata
+
+Metadata{X}(val::Union{Dict,NamedTuple})
+Metadata{X}(pairs::Pair...) => Metadata{Dict}
+Metadata{X}(; kw...) => Metadata{NamedTuple}

General Metadata object. The X type parameter categorises the metadata for method dispatch, if required.

source

`,3))]),i("details",gs,[i("summary",null,[s[168]||(s[168]=i("a",{id:"DimensionalData.Dimensions.Lookups.NoMetadata",href:"#DimensionalData.Dimensions.Lookups.NoMetadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.NoMetadata")],-1)),s[169]||(s[169]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[170]||(s[170]=t(`
julia
NoMetadata <: AbstractMetadata
+
+NoMetadata()

Indicates an object has no metadata. But unlike using nothing, get, keys and haskey will still work on it, get always returning the fallback argument. keys returns () while haskey always returns false.

source

`,3))]),i("details",cs,[i("summary",null,[s[171]||(s[171]=i("a",{id:"DimensionalData.Dimensions.Lookups.units",href:"#DimensionalData.Dimensions.Lookups.units"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.units")],-1)),s[172]||(s[172]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[173]||(s[173]=t(`
julia
units(x) => Union{Nothing,Any}
+units(xs:Tuple) => Tuple
+unit(A::AbstractDimArray, dims::Tuple) => Tuple
+unit(A::AbstractDimArray, dim) => Union{Nothing,Any}

Get the units of an array or Dimension, or a tuple of of either.

Units do not have a set field, and may or may not be included in metadata. This method is to facilitate use in labels and plots when units are available, not a guarantee that they will be. If not available, nothing is returned.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,5))])])}const fs=l(k,[["render",us]]);export{bs as __pageData,fs as default}; diff --git a/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.lean.js b/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.lean.js new file mode 100644 index 000000000..37280ae9e --- /dev/null +++ b/previews/PR872/assets/api_lookuparrays.md.CBN1SYbJ.lean.js @@ -0,0 +1,218 @@ +import{_ as l,c as p,j as i,a,G as n,a4 as t,B as o,o as h}from"./chunks/framework.ByNLHi2E.js";const bs=JSON.parse('{"title":"Lookups","description":"","frontmatter":{},"headers":[],"relativePath":"api/lookuparrays.md","filePath":"api/lookuparrays.md","lastUpdated":null}'),k={name:"api/lookuparrays.md"},r={class:"jldocstring custom-block",open:""},d={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},W={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},K={class:"jldocstring custom-block",open:""},$={class:"jldocstring custom-block",open:""},H={class:"jldocstring custom-block",open:""},J={class:"jldocstring custom-block",open:""},Q={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},_={class:"jldocstring custom-block",open:""},ss={class:"jldocstring custom-block",open:""},is={class:"jldocstring custom-block",open:""},as={class:"jldocstring custom-block",open:""},es={class:"jldocstring custom-block",open:""},ns={class:"jldocstring custom-block",open:""},ts={class:"jldocstring custom-block",open:""},ls={class:"jldocstring custom-block",open:""},ps={class:"jldocstring custom-block",open:""},os={class:"jldocstring custom-block",open:""},hs={class:"jldocstring custom-block",open:""},ks={class:"jldocstring custom-block",open:""},rs={class:"jldocstring custom-block",open:""},ds={class:"jldocstring custom-block",open:""},gs={class:"jldocstring custom-block",open:""},cs={class:"jldocstring custom-block",open:""};function us(ys,s,Es,ms,Ds,Fs){const e=o("Badge");return h(),p("div",null,[s[174]||(s[174]=i("h1",{id:"lookups",tabindex:"-1"},[a("Lookups "),i("a",{class:"header-anchor",href:"#lookups","aria-label":'Permalink to "Lookups"'},"​")],-1)),i("details",r,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.Dimensions.Lookups",href:"#DimensionalData.Dimensions.Lookups"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups")],-1)),s[1]||(s[1]=a()),n(e,{type:"info",class:"jlObjectType jlModule",text:"Module"})]),s[2]||(s[2]=t(`
julia
Lookups

Module for Lookups and Selectors used in DimensionalData.jl

Lookup defines traits and AbstractArray wrappers that give specific behaviours for a lookup index when indexed with Selector.

For example, these allow tracking over array order so fast indexing works even when the array is reversed.

To load Lookup types and methods into scope:

julia
using DimensionalData
+using DimensionalData.Lookups

source

`,7))]),i("details",d,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.Dimensions.Lookups.Lookup",href:"#DimensionalData.Dimensions.Lookups.Lookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Lookup")],-1)),s[4]||(s[4]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=t('
julia
Lookup

Types defining the behaviour of a lookup index, how it is plotted and how Selectors like Between work.

A Lookup may be NoLookup indicating that there are no lookup values, Categorical for ordered or unordered categories, or a Sampled index for Points or Intervals.

source

',4))]),i("details",g,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.Dimensions.Lookups.Aligned",href:"#DimensionalData.Dimensions.Lookups.Aligned"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Aligned")],-1)),s[7]||(s[7]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=t('
julia
Aligned <: Lookup

Abstract supertype for Lookups where the lookup is aligned with the array axes.

This is by far the most common supertype for Lookup.

source

',4))]),i("details",c,[i("summary",null,[s[9]||(s[9]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractSampled",href:"#DimensionalData.Dimensions.Lookups.AbstractSampled"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractSampled")],-1)),s[10]||(s[10]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[11]||(s[11]=t('
julia
AbstractSampled <: Aligned

Abstract supertype for Lookups where the lookup is aligned with the array, and is independent of other dimensions. Sampled is provided by this package.

AbstractSampled must have order, span and sampling fields, or a rebuild method that accepts them as keyword arguments.

source

',4))]),i("details",u,[i("summary",null,[s[12]||(s[12]=i("a",{id:"DimensionalData.Dimensions.Lookups.Sampled",href:"#DimensionalData.Dimensions.Lookups.Sampled"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Sampled")],-1)),s[13]||(s[13]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[14]||(s[14]=t(`
julia
Sampled <: AbstractSampled
+
+Sampled(data::AbstractVector, order::Order, span::Span, sampling::Sampling, metadata)
+Sampled(data=AutoValues(); order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata())

A concrete implementation of the Lookup AbstractSampled. It can be used to represent Points or Intervals.

Sampled is capable of representing gridded data from a wide range of sources, allowing correct bounds and Selectors for points or intervals of regular, irregular, forward and reverse lookups.

On AbstractDimArray construction, Sampled lookup is assigned for all lookups of AbstractRange not assigned to Categorical.

Arguments

Example

Create an array with Interval sampling, and Regular span for a vector with known spacing.

We set the locus of the Intervals to Start specifying that the lookup values are for the locus at the start of each interval.

julia
using DimensionalData, DimensionalData.Lookups
+
+x = X(Sampled(100:-20:10; sampling=Intervals(Start())))
+y = Y(Sampled([1, 4, 7, 10]; span=Regular(3), sampling=Intervals(Start())))
+A = ones(x, y)
+
+# output
+╭──────────────────────────╮
+5×4 DimArray{Float64, 2} │
+├──────────────────────────┴───────────────────────────────────────── dims ┐
+ X Sampled{Int64} 100:-20:20 ReverseOrdered Regular Intervals{Start},
+ Y Sampled{Int64} [1, 4, 7, 10] ForwardOrdered Regular Intervals{Start}
+└──────────────────────────────────────────────────────────────────────────┘
+  1    4    7    10
+ 100    1.0  1.0  1.0   1.0
+  80    1.0  1.0  1.0   1.0
+  60    1.0  1.0  1.0   1.0
+  40    1.0  1.0  1.0   1.0
+  20    1.0  1.0  1.0   1.0

source

`,11))]),i("details",y,[i("summary",null,[s[15]||(s[15]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractCyclic",href:"#DimensionalData.Dimensions.Lookups.AbstractCyclic"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractCyclic")],-1)),s[16]||(s[16]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[17]||(s[17]=t('
julia
AbstractCyclic <: AbstractSampled

An abstract supertype for cyclic lookups.

These are AbstractSampled lookups that are cyclic for Selectors.

source

',4))]),i("details",E,[i("summary",null,[s[18]||(s[18]=i("a",{id:"DimensionalData.Dimensions.Lookups.Cyclic",href:"#DimensionalData.Dimensions.Lookups.Cyclic"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Cyclic")],-1)),s[19]||(s[19]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[20]||(s[20]=t(`
julia
Cyclic <: AbstractCyclic
+
+Cyclic(data; order=AutoOrder(), span=AutoSpan(), sampling=Points(), metadata=NoMetadata(), cycle)

A Cyclic lookup is similar to Sampled but out of range Selectors At, Near, Contains will cycle the values to typemin or typemax over the length of cycle. Where and .. work as for Sampled.

This is useful when we are using mean annual datasets over a real time-span, or for wrapping longitudes so that -360 and 360 are the same.

Arguments

Notes

  1. If you use dates and e.g. cycle over a Year, every year will have the number and spacing of Weeks and Days as the cycle year. Using At may not be reliable in terms of exact dates, as it will be applied to the specified date plus or minus n years.

  2. Indexing into a Cycled with any AbstractArray or AbstractRange will return a Sampled as the full cycle is likely no longer available.

  3. .. or Between selectors do not work in a cycled way: they work as for Sampled. This may change in future to return cycled values, but there are problems with this, such as leap years breaking correct date cycling of a single year. If you actually need this behaviour, please make a GitHub issue.

source

`,8))]),i("details",m,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractCategorical",href:"#DimensionalData.Dimensions.Lookups.AbstractCategorical"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractCategorical")],-1)),s[22]||(s[22]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[23]||(s[23]=t('
julia
AbstractCategorical <: Aligned

Lookups where the values are categories.

Categorical is the provided concrete implementation. But this can easily be extended, all methods are defined for AbstractCategorical.

All AbstractCategorical must provide a rebuild method with data, order and metadata keyword arguments.

source

',5))]),i("details",D,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.Lookups.Categorical",href:"#DimensionalData.Dimensions.Lookups.Categorical"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Categorical")],-1)),s[25]||(s[25]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[26]||(s[26]=t(`
julia
Categorical <: AbstractCategorical
+
+Categorical(o::Order)
+Categorical(; order=Unordered())

A Lookup where the values are categories.

This will be automatically assigned if the lookup contains AbstractString, Symbol or Char. Otherwise it can be assigned manually.

Order will be determined automatically where possible.

Arguments

Example

Create an array with [Interval] sampling.

julia
using DimensionalData
+
+ds = X(["one", "two", "three"]), Y([:a, :b, :c, :d])
+A = DimArray(rand(3, 4), ds)
+Dimensions.lookup(A)
+
+# output
+
+Categorical{String} ["one", "two", "three"] Unordered,
+Categorical{Symbol} [:a, :b, :c, :d] ForwardOrdered

source

`,10))]),i("details",F,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Lookups.Unaligned",href:"#DimensionalData.Dimensions.Lookups.Unaligned"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Unaligned")],-1)),s[28]||(s[28]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[29]||(s[29]=t('
julia
Unaligned <: Lookup

Abstract supertype for Lookup where the lookup is not aligned to the grid.

Indexing an Unaligned with Selectors must provide all other Unaligned dimensions.

source

',4))]),i("details",C,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.Lookups.Transformed",href:"#DimensionalData.Dimensions.Lookups.Transformed"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Transformed")],-1)),s[31]||(s[31]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[32]||(s[32]=t(`
julia
Transformed <: Unaligned
+
+Transformed(f, dim::Dimension; metadata=NoMetadata())

Lookup that uses an affine transformation to convert dimensions from dims(lookup) to dims(array). This can be useful when the dimensions are e.g. rotated from a more commonly used axis.

Any function can be used to do the transformation, but transformations from CoordinateTransformations.jl may be useful.

Arguments

Keyword Arguments

Example

julia
using DimensionalData, DimensionalData.Lookups, CoordinateTransformations
+
+m = LinearMap([0.5 0.0; 0.0 0.5])
+A = [1 2  3  4
+     5 6  7  8
+     9 10 11 12];
+da = DimArray(A, (X(Transformed(m)), Y(Transformed(m))))
+
+da[X(At(6.0)), Y(At(2.0))]
+
+# output
+9

source

`,10))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.MergedLookup",href:"#DimensionalData.Dimensions.MergedLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.MergedLookup")],-1)),s[34]||(s[34]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[35]||(s[35]=t(`
julia
MergedLookup <: Lookup
+
+MergedLookup(data, dims; [metadata])

A Lookup that holds multiple combined dimensions.

MergedLookup can be indexed with Selectors like At, Between, and Where although Near has undefined meaning.

Arguments

Keywords

source

`,8))]),i("details",f,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.Lookups.NoLookup",href:"#DimensionalData.Dimensions.Lookups.NoLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.NoLookup")],-1)),s[37]||(s[37]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[38]||(s[38]=t(`
julia
NoLookup <: Lookup
+
+NoLookup()

A Lookup that is identical to the array axis. Selectors can't be used on this lookup.

Example

Defining a DimArray without passing lookup values to the dimensions, it will be assigned NoLookup:

julia
using DimensionalData
+
+A = DimArray(rand(3, 3), (X, Y))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

Which is identical to:

julia
using .Lookups
+A = DimArray(rand(3, 3), (X(NoLookup()), Y(NoLookup())))
+Dimensions.lookup(A)
+
+# output
+
+NoLookup, NoLookup

source

`,8))]),i("details",v,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoLookup",href:"#DimensionalData.Dimensions.Lookups.AutoLookup"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoLookup")],-1)),s[40]||(s[40]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[41]||(s[41]=t(`
julia
AutoLookup <: Lookup
+
+AutoLookup()
+AutoLookup(values=AutoValues(); kw...)

Automatic Lookup, the default lookup. It will be converted automatically to another Lookup when it is possible to detect it from the lookup values.

Keywords will be used in the detected Lookup constructor.

source

`,4))]),i("details",j,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoValues",href:"#DimensionalData.Dimensions.Lookups.AutoValues"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoValues")],-1)),s[43]||(s[43]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[44]||(s[44]=t('
julia
AutoValues

Detect Lookup values from the context. This is used in NoLookup to simply use the array axis as the index when the array is constructed, and in set to change the Lookup type without changing the index values.

source

',3))]),s[175]||(s[175]=i("p",null,[a("The generic value getter "),i("code",null,"val")],-1)),i("details",B,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.Dimensions.Lookups.val",href:"#DimensionalData.Dimensions.Lookups.val"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.val")],-1)),s[46]||(s[46]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[47]||(s[47]=t(`
julia
val(x)
+val(dims::Tuple) => Tuple

Return the contained value of a wrapper object.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

Objects that don't define a val method are returned unaltered.

source

`,5))]),s[176]||(s[176]=i("p",null,"Lookup methods:",-1)),i("details",L,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.Dimensions.Lookups.bounds",href:"#DimensionalData.Dimensions.Lookups.bounds"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.bounds")],-1)),s[49]||(s[49]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[50]||(s[50]=t(`
julia
bounds(xs, [dims::Tuple]) => Tuple{Vararg{Tuple{T,T}}}
+bounds(xs::Tuple) => Tuple{Vararg{Tuple{T,T}}}
+bounds(x, dim) => Tuple{T,T}
+bounds(dim::Union{Dimension,Lookup}) => Tuple{T,T}

Return the bounds of all dimensions of an object, of a specific dimension, or of a tuple of dimensions.

If bounds are not known, one or both values may be nothing.

dims can be a Dimension, a dimension type, or a tuple of either.

source

`,5))]),i("details",A,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.Dimensions.Lookups.hasselection",href:"#DimensionalData.Dimensions.Lookups.hasselection"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.hasselection")],-1)),s[52]||(s[52]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[53]||(s[53]=t(`
julia
hasselection(x, selector) => Bool
+hasselection(x, selectors::Tuple) => Bool

Check if indexing into x with selectors can be performed, where x is some object with a dims method, and selectors is a Selector or Dimension or a tuple of either.

source

`,3))]),i("details",w,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.Dimensions.Lookups.sampling",href:"#DimensionalData.Dimensions.Lookups.sampling"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.sampling")],-1)),s[55]||(s[55]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[56]||(s[56]=t(`
julia
sampling(x, [dims::Tuple]) => Tuple
+sampling(x, dim) => Sampling
+sampling(xs::Tuple) => Tuple{Vararg{Sampling}}
+sampling(x:Union{Dimension,Lookup}) => Sampling

Return the Sampling for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",x,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.Dimensions.Lookups.span",href:"#DimensionalData.Dimensions.Lookups.span"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.span")],-1)),s[58]||(s[58]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[59]||(s[59]=t(`
julia
span(x, [dims::Tuple]) => Tuple
+span(x, dim) => Span
+span(xs::Tuple) => Tuple{Vararg{Span,N}}
+span(x::Union{Dimension,Lookup}) => Span

Return the Span for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",T,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.Dimensions.Lookups.order",href:"#DimensionalData.Dimensions.Lookups.order"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.order")],-1)),s[61]||(s[61]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[62]||(s[62]=t(`
julia
order(x, [dims::Tuple]) => Tuple
+order(xs::Tuple) => Tuple
+order(x::Union{Dimension,Lookup}) => Order

Return the Ordering of the dimension lookup for each dimension: ForwardOrdered, ReverseOrdered, or Unordered

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",S,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DimensionalData.Dimensions.Lookups.locus",href:"#DimensionalData.Dimensions.Lookups.locus"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.locus")],-1)),s[64]||(s[64]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=t(`
julia
locus(x, [dims::Tuple]) => Tuple
+locus(x, dim) => Locus
+locus(xs::Tuple) => Tuple{Vararg{Locus,N}}
+locus(x::Union{Dimension,Lookup}) => Locus

Return the Position of lookup values for each dimension.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",P,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.Dimensions.Lookups.shiftlocus",href:"#DimensionalData.Dimensions.Lookups.shiftlocus"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.shiftlocus")],-1)),s[67]||(s[67]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[68]||(s[68]=t('
julia
shiftlocus(locus::Locus, x)

Shift the values of x from the current locus to the new locus.

We only shift Sampled, Regular or Explicit, Intervals.

source

',4))]),s[177]||(s[177]=i("h2",{id:"selectors",tabindex:"-1"},[a("Selectors "),i("a",{class:"header-anchor",href:"#selectors","aria-label":'Permalink to "Selectors"'},"​")],-1)),i("details",R,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Dimensions.Lookups.Selector",href:"#DimensionalData.Dimensions.Lookups.Selector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Selector")],-1)),s[70]||(s[70]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[71]||(s[71]=t('
julia
Selector

Abstract supertype for all selectors.

Selectors are wrappers that indicate that passed values are not the array indices, but values to be selected from the dimension lookup, such as DateTime objects for a Ti dimension.

Selectors provided in DimensionalData are:

Note: Selectors can be modified using:

And IntervalSets.jl Interval can be used instead of Between

source

',10))]),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.Dimensions.Lookups.IntSelector",href:"#DimensionalData.Dimensions.Lookups.IntSelector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.IntSelector")],-1)),s[73]||(s[73]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[74]||(s[74]=t('
julia
IntSelector <: Selector

Abstract supertype for Selectors that return a single Int index.

IntSelectors provided by DimensionalData are:

source

',5))]),i("details",I,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.Dimensions.Lookups.ArraySelector",href:"#DimensionalData.Dimensions.Lookups.ArraySelector"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ArraySelector")],-1)),s[76]||(s[76]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[77]||(s[77]=t('
julia
ArraySelector <: Selector

Abstract supertype for Selectors that return an AbstractArray.

ArraySelectors provided by DimensionalData are:

source

',5))]),i("details",q,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.Dimensions.Lookups.At",href:"#DimensionalData.Dimensions.Lookups.At"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.At")],-1)),s[79]||(s[79]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[80]||(s[80]=t(`
julia
At <: IntSelector
+
+At(x; atol=nothing, rtol=nothing)
+At(a, b; kw...)

Selector that exactly matches the value on the passed-in dimensions, or throws an error. For ranges and arrays, every intermediate value must match an existing value - not just the end points.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Keyword atol is passed to isapprox.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(At(20)), Y(At(6))]
+
+# output
+
+5

source

`,7))]),i("details",z,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.Dimensions.Lookups.Near",href:"#DimensionalData.Dimensions.Lookups.Near"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Near")],-1)),s[82]||(s[82]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[83]||(s[83]=t(`
julia
Near <: IntSelector
+
+Near(x)
+Near(a, b)

Selector that selects the nearest index to x.

With Points this is simply the lookup values nearest to the x, however with Intervals it is the interval center nearest to x. This will be offset from the index value for Start and End locus.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between the nearsest value to each of them will be selected.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Near(23)), Y(Near(5.1))]
+
+# output
+4

source

`,7))]),i("details",N,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.Dimensions.Lookups.Between",href:"#DimensionalData.Dimensions.Lookups.Between"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Between")],-1)),s[85]||(s[85]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[86]||(s[86]=t(`
julia
Between <: ArraySelector
+
+Between(a, b)

Depreciated: use a..b instead of Between(a, b). Other Interval objects from IntervalSets.jl, like \`OpenInterval(a, b) will also work, giving the correct open/closed boundaries.

Between will e removed in future to avoid clashes with DataFrames.Between.

Selector that retrieve all indices located between 2 values, evaluated with >= for the lower value, and < for the upper value. This means the same value will not be counted twice in 2 adjacent Between selections.

For Intervals the whole interval must be lie between the values. For Points the points must fall between the values. Different Sampling types may give different results with the same input - this is the intended behaviour.

Between for Irregular intervals is a little complicated. The interval is the distance between a value and the next (for Start locus) or previous (for End locus) value.

For Center, we take the mid point between two index values as the start and end of each interval. This may or may not make sense for the values in your index, so use Between with Irregular Intervals(Center()) with caution.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Between(15, 25)), Y(Between(4, 6.5))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

`,10))]),i("details",M,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.Dimensions.Lookups.Touches",href:"#DimensionalData.Dimensions.Lookups.Touches"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Touches")],-1)),s[88]||(s[88]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[89]||(s[89]=t(`
julia
Touches <: ArraySelector
+
+Touches(a, b)

Selector that retrieves all indices touching the closed interval 2 values, for the maximum possible area that could interact with the supplied range.

This can be better than .. when e.g. subsetting an area to rasterize, as you may wish to include pixels that just touch the area, rather than those that fall within it.

Touches is different to using closed intervals when the lookups also contain intervals - if any of the intervals touch, they are included. With .. they are discarded unless the whole cell interval falls inside the selector interval.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(5:7)))
+A[X(Touches(15, 25)), Y(Touches(4, 6.5))]
+
+# output
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴───────────────────────────── dims ┐
+ X Sampled{Int64} 20:10:20 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 5:6 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────┘
+  5  6
+ 20    4  5

source

`,7))]),i("details",U,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.Lookups.Contains",href:"#DimensionalData.Dimensions.Lookups.Contains"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Contains")],-1)),s[91]||(s[91]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[92]||(s[92]=t(`
julia
Contains <: IntSelector
+
+Contains(x)
+Contains(a, b)

Selector that selects the interval the value is contained by. If the interval is not present in the lookup, an error will be thrown.

Can only be used for Intervals or Categorical. For Categorical it falls back to using At. Contains should not be confused with Base.contains - use Where(contains(x)) to check for if values are contain in categorical values like strings.

x can be any value to select a single index, or a Vector of values to select vector of indices. If two values a and b are used, the range between them will be selected.

Example

julia
using DimensionalData; const DD = DimensionalData
+dims_ = X(10:10:20; sampling=DD.Intervals(DD.Center())),
+        Y(5:7; sampling=DD.Intervals(DD.Center()))
+A = DimArray([1 2 3; 4 5 6], dims_)
+A[X(Contains(8)), Y(Contains(6.8))]
+
+# output
+3

source

`,7))]),i("details",X,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.Lookups.Where",href:"#DimensionalData.Dimensions.Lookups.Where"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Where")],-1)),s[94]||(s[94]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[95]||(s[95]=t(`
julia
Where <: ArraySelector
+
+Where(f::Function)

Selector that filters a dimension lookup by any function that accepts a single value and returns a Bool.

Example

julia
using DimensionalData
+
+A = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(19:21)))
+A[X(Where(x -> x > 15)), Y(Where(x -> x in (19, 21)))]
+
+# output
+
+╭────────────────────────╮
+1×2 DimArray{Int64, 2} │
+├────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Int64} [20] ForwardOrdered Irregular Points,
+ Y Sampled{Int64} [19, 21] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+  19  21
+ 20     4   6

source

`,5))]),i("details",Y,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.Dimensions.Lookups.All",href:"#DimensionalData.Dimensions.Lookups.All"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.All")],-1)),s[97]||(s[97]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[98]||(s[98]=t(`
julia
All <: Selector
+
+All(selectors::Selector...)

Selector that combines the results of other selectors. The indices used will be the union of all result sorted in ascending order.

Example

julia
using DimensionalData, Unitful
+
+dimz = X(10.0:20:200.0), Ti(1u"s":5u"s":100u"s")
+A = DimArray((1:10) * (1:20)', dimz)
+A[X=All(At(10.0), At(50.0)), Ti=All(1u"s"..10u"s", 90u"s"..100u"s")]
+
+# output
+
+╭────────────────────────╮
+2×4 DimArray{Int64, 2} │
+├────────────────────────┴─────────────────────────────────────────────── dims ┐
+ X  Sampled{Float64} [10.0, 50.0] ForwardOrdered Irregular Points,
+ Ti Sampled{Unitful.Quantity{Int64, 𝐓, Unitful.FreeUnits{(s,), 𝐓, nothing}}} [1 s, 6 s, 91 s, 96 s] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1 s  6 s  91 s  96 s
+ 10.0    1    2    19    20
+ 50.0    3    6    57    60

source

`,5))]),s[178]||(s[178]=i("h2",{id:"Lookup-traits",tabindex:"-1"},[a("Lookup traits "),i("a",{class:"header-anchor",href:"#Lookup-traits","aria-label":'Permalink to "Lookup traits {#Lookup-traits}"'},"​")],-1)),i("details",V,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.Dimensions.Lookups.LookupTrait",href:"#DimensionalData.Dimensions.Lookups.LookupTrait"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.LookupTrait")],-1)),s[100]||(s[100]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[101]||(s[101]=t('
julia
LookupTrait

Abstract supertype of all traits of a Lookup.

These modify the behaviour of the lookup index.

The term "Trait" is used loosely - these may be fields of an object of traits hard-coded to specific types.

source

',5))]),s[179]||(s[179]=i("h3",{id:"order",tabindex:"-1"},[a("Order "),i("a",{class:"header-anchor",href:"#order","aria-label":'Permalink to "Order"'},"​")],-1)),i("details",W,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.Dimensions.Lookups.Order",href:"#DimensionalData.Dimensions.Lookups.Order"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Order")],-1)),s[103]||(s[103]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[104]||(s[104]=t('
julia
Order <: LookupTrait

Traits for the order of a Lookup. These determine how searchsorted finds values in the index, and how objects are plotted.

source

',3))]),i("details",G,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.Dimensions.Lookups.Ordered",href:"#DimensionalData.Dimensions.Lookups.Ordered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Ordered")],-1)),s[106]||(s[106]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[107]||(s[107]=t('
julia
Ordered <: Order

Supertype for the order of an ordered Lookup, including ForwardOrdered and ReverseOrdered.

source

',3))]),i("details",K,[i("summary",null,[s[108]||(s[108]=i("a",{id:"DimensionalData.Dimensions.Lookups.ForwardOrdered",href:"#DimensionalData.Dimensions.Lookups.ForwardOrdered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ForwardOrdered")],-1)),s[109]||(s[109]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[110]||(s[110]=t(`
julia
ForwardOrdered <: Ordered
+
+ForwardOrdered()

Indicates that the Lookup index is in the normal forward order.

source

`,3))]),i("details",$,[i("summary",null,[s[111]||(s[111]=i("a",{id:"DimensionalData.Dimensions.Lookups.ReverseOrdered",href:"#DimensionalData.Dimensions.Lookups.ReverseOrdered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.ReverseOrdered")],-1)),s[112]||(s[112]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[113]||(s[113]=t(`
julia
ReverseOrdered <: Ordered
+
+ReverseOrdered()

Indicates that the Lookup index is in the reverse order.

source

`,3))]),i("details",H,[i("summary",null,[s[114]||(s[114]=i("a",{id:"DimensionalData.Dimensions.Lookups.Unordered",href:"#DimensionalData.Dimensions.Lookups.Unordered"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Unordered")],-1)),s[115]||(s[115]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[116]||(s[116]=t(`
julia
Unordered <: Order
+
+Unordered()

Indicates that Lookup is unordered.

This means the index cannot be searched with searchsortedfirst or similar optimised methods - instead it will use findfirst.

source

`,4))]),i("details",J,[i("summary",null,[s[117]||(s[117]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoOrder",href:"#DimensionalData.Dimensions.Lookups.AutoOrder"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoOrder")],-1)),s[118]||(s[118]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[119]||(s[119]=t(`
julia
AutoOrder <: Order
+
+AutoOrder()

Specifies that the Order of a Lookup will be found automatically where possible.

source

`,3))]),s[180]||(s[180]=i("h3",{id:"span",tabindex:"-1"},[a("Span "),i("a",{class:"header-anchor",href:"#span","aria-label":'Permalink to "Span"'},"​")],-1)),i("details",Q,[i("summary",null,[s[120]||(s[120]=i("a",{id:"DimensionalData.Dimensions.Lookups.Span",href:"#DimensionalData.Dimensions.Lookups.Span"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Span")],-1)),s[121]||(s[121]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[122]||(s[122]=t('
julia
Span <: LookupTrait

Defines the type of span used in a Sampling index. These are Regular or Irregular.

source

',3))]),i("details",Z,[i("summary",null,[s[123]||(s[123]=i("a",{id:"DimensionalData.Dimensions.Lookups.Regular",href:"#DimensionalData.Dimensions.Lookups.Regular"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Regular")],-1)),s[124]||(s[124]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[125]||(s[125]=t(`
julia
Regular <: Span
+
+Regular(step=AutoStep())

Points or Intervals that have a fixed, regular step.

source

`,3))]),i("details",_,[i("summary",null,[s[126]||(s[126]=i("a",{id:"DimensionalData.Dimensions.Lookups.Irregular",href:"#DimensionalData.Dimensions.Lookups.Irregular"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Irregular")],-1)),s[127]||(s[127]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[128]||(s[128]=t(`
julia
Irregular <: Span
+
+Irregular(bounds::Tuple)
+Irregular(lowerbound, upperbound)

Points or Intervals that have an Irregular step size. To enable bounds tracking and accurate selectors, the starting bounds are provided as a 2 tuple, or 2 arguments. (nothing, nothing) is acceptable input, the bounds will be guessed from the index, but may be inaccurate.

source

`,3))]),i("details",ss,[i("summary",null,[s[129]||(s[129]=i("a",{id:"DimensionalData.Dimensions.Lookups.Explicit",href:"#DimensionalData.Dimensions.Lookups.Explicit"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Explicit")],-1)),s[130]||(s[130]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[131]||(s[131]=t('
julia
Explicit(bounds::AbstractMatrix)

Intervals where the span is explicitly listed for every interval.

This uses a matrix where with length 2 columns for each index value, holding the lower and upper bounds for that specific index.

source

',4))]),i("details",is,[i("summary",null,[s[132]||(s[132]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoSpan",href:"#DimensionalData.Dimensions.Lookups.AutoSpan"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoSpan")],-1)),s[133]||(s[133]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[134]||(s[134]=t(`
julia
AutoSpan <: Span
+
+AutoSpan()

The span will be guessed and replaced in format or set.

source

`,3))]),s[181]||(s[181]=i("h3",{id:"sampling",tabindex:"-1"},[a("Sampling "),i("a",{class:"header-anchor",href:"#sampling","aria-label":'Permalink to "Sampling"'},"​")],-1)),i("details",as,[i("summary",null,[s[135]||(s[135]=i("a",{id:"DimensionalData.Dimensions.Lookups.Sampling",href:"#DimensionalData.Dimensions.Lookups.Sampling"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Sampling")],-1)),s[136]||(s[136]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[137]||(s[137]=t('
julia
Sampling <: LookupTrait

Indicates the sampling method used by the index: Points or Intervals.

source

',3))]),i("details",es,[i("summary",null,[s[138]||(s[138]=i("a",{id:"DimensionalData.Dimensions.Lookups.Points",href:"#DimensionalData.Dimensions.Lookups.Points"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Points")],-1)),s[139]||(s[139]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[140]||(s[140]=t(`
julia
Points <: Sampling
+
+Points()

Sampling lookup where single samples at exact points.

These are always plotted at the center of array cells.

source

`,4))]),i("details",ns,[i("summary",null,[s[141]||(s[141]=i("a",{id:"DimensionalData.Dimensions.Lookups.Intervals",href:"#DimensionalData.Dimensions.Lookups.Intervals"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Intervals")],-1)),s[142]||(s[142]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[143]||(s[143]=t(`
julia
Intervals <: Sampling
+
+Intervals(locus::Position)

Sampling specifying that sampled values are the mean (or similar) value over an interval, rather than at one specific point.

Intervals require a locus of Start, Center or End to define the location in the interval that the index values refer to.

source

`,4))]),s[182]||(s[182]=i("h3",{id:"positions",tabindex:"-1"},[a("Positions "),i("a",{class:"header-anchor",href:"#positions","aria-label":'Permalink to "Positions"'},"​")],-1)),i("details",ts,[i("summary",null,[s[144]||(s[144]=i("a",{id:"DimensionalData.Dimensions.Lookups.Position",href:"#DimensionalData.Dimensions.Lookups.Position"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Position")],-1)),s[145]||(s[145]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[146]||(s[146]=t('
julia
Position <: LookupTrait

Abstract supertype of types that indicate the locus of index values where they represent Intervals.

These allow for values array cells to align with the Start, Center, or End of values in the lookup index.

This means they can be plotted with correct axis markers, and allows automatic conversions to between formats with different standards (such as NetCDF and GeoTiff).

source

',5))]),i("details",ls,[i("summary",null,[s[147]||(s[147]=i("a",{id:"DimensionalData.Dimensions.Lookups.Center",href:"#DimensionalData.Dimensions.Lookups.Center"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Center")],-1)),s[148]||(s[148]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[149]||(s[149]=t(`
julia
Center <: Position
+
+Center()

Used to specify lookup values correspond to the center locus in an interval.

source

`,3))]),i("details",ps,[i("summary",null,[s[150]||(s[150]=i("a",{id:"DimensionalData.Dimensions.Lookups.Start",href:"#DimensionalData.Dimensions.Lookups.Start"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Start")],-1)),s[151]||(s[151]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[152]||(s[152]=t(`
julia
Start <: Position
+
+Start()

Used to specify lookup values correspond to the start locus of an interval.

source

`,3))]),i("details",os,[i("summary",null,[s[153]||(s[153]=i("a",{id:"DimensionalData.Dimensions.Lookups.Begin",href:"#DimensionalData.Dimensions.Lookups.Begin"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Begin")],-1)),s[154]||(s[154]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[155]||(s[155]=t(`
julia
Begin <: Position
+
+Begin()

Used to specify the begin index of a Dimension axis, as regular begin will not work with named dimensions.

Can be used with : to create a BeginEndRange or BeginEndStepRange.

source

`,4))]),i("details",hs,[i("summary",null,[s[156]||(s[156]=i("a",{id:"DimensionalData.Dimensions.Lookups.End",href:"#DimensionalData.Dimensions.Lookups.End"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.End")],-1)),s[157]||(s[157]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[158]||(s[158]=t(`
julia
End <: Position
+
+End()

Used to specify the end index of a Dimension axis, as regular end will not work with named dimensions. Can be used with : to create a BeginEndRange or BeginEndStepRange.

Also used to specify lookup values correspond to the end locus of an interval.

source

`,4))]),i("details",ks,[i("summary",null,[s[159]||(s[159]=i("a",{id:"DimensionalData.Dimensions.Lookups.AutoPosition",href:"#DimensionalData.Dimensions.Lookups.AutoPosition"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AutoPosition")],-1)),s[160]||(s[160]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[161]||(s[161]=t(`
julia
AutoPosition <: Position
+
+AutoPosition()

Indicates a interval where the index locus is not yet known. This will be filled with a default value on object construction.

source

`,3))]),s[183]||(s[183]=i("h2",{id:"metadata",tabindex:"-1"},[a("Metadata "),i("a",{class:"header-anchor",href:"#metadata","aria-label":'Permalink to "Metadata"'},"​")],-1)),i("details",rs,[i("summary",null,[s[162]||(s[162]=i("a",{id:"DimensionalData.Dimensions.Lookups.AbstractMetadata",href:"#DimensionalData.Dimensions.Lookups.AbstractMetadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.AbstractMetadata")],-1)),s[163]||(s[163]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[164]||(s[164]=t('
julia
AbstractMetadata{X,T}

Abstract supertype for all metadata wrappers.

Metadata wrappers allow tracking the contents and origin of metadata. This can facilitate conversion between metadata types (for saving a file to a different format) or simply saving data back to the same file type with identical metadata.

Using a wrapper instead of Dict or NamedTuple also lets us pass metadata objects to set without ambiguity about where to put them.

source

',5))]),i("details",ds,[i("summary",null,[s[165]||(s[165]=i("a",{id:"DimensionalData.Dimensions.Lookups.Metadata",href:"#DimensionalData.Dimensions.Lookups.Metadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.Metadata")],-1)),s[166]||(s[166]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[167]||(s[167]=t(`
julia
Metadata <: AbstractMetadata
+
+Metadata{X}(val::Union{Dict,NamedTuple})
+Metadata{X}(pairs::Pair...) => Metadata{Dict}
+Metadata{X}(; kw...) => Metadata{NamedTuple}

General Metadata object. The X type parameter categorises the metadata for method dispatch, if required.

source

`,3))]),i("details",gs,[i("summary",null,[s[168]||(s[168]=i("a",{id:"DimensionalData.Dimensions.Lookups.NoMetadata",href:"#DimensionalData.Dimensions.Lookups.NoMetadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.NoMetadata")],-1)),s[169]||(s[169]=a()),n(e,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[170]||(s[170]=t(`
julia
NoMetadata <: AbstractMetadata
+
+NoMetadata()

Indicates an object has no metadata. But unlike using nothing, get, keys and haskey will still work on it, get always returning the fallback argument. keys returns () while haskey always returns false.

source

`,3))]),i("details",cs,[i("summary",null,[s[171]||(s[171]=i("a",{id:"DimensionalData.Dimensions.Lookups.units",href:"#DimensionalData.Dimensions.Lookups.units"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.units")],-1)),s[172]||(s[172]=a()),n(e,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[173]||(s[173]=t(`
julia
units(x) => Union{Nothing,Any}
+units(xs:Tuple) => Tuple
+unit(A::AbstractDimArray, dims::Tuple) => Tuple
+unit(A::AbstractDimArray, dim) => Union{Nothing,Any}

Get the units of an array or Dimension, or a tuple of of either.

Units do not have a set field, and may or may not be included in metadata. This method is to facilitate use in labels and plots when units are available, not a guarantee that they will be. If not available, nothing is returned.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,5))])])}const fs=l(k,[["render",us]]);export{bs as __pageData,fs as default}; diff --git a/previews/PR872/assets/api_reference.md.CCH-UrsK.js b/previews/PR872/assets/api_reference.md.CCH-UrsK.js new file mode 100644 index 000000000..6c282b2f2 --- /dev/null +++ b/previews/PR872/assets/api_reference.md.CCH-UrsK.js @@ -0,0 +1,474 @@ +import{_ as e,c as h,j as i,a,G as t,a4 as l,B as k,o as p}from"./chunks/framework.ByNLHi2E.js";const ms=JSON.parse('{"title":"API Reference","description":"","frontmatter":{},"headers":[],"relativePath":"api/reference.md","filePath":"api/reference.md","lastUpdated":null}'),d={name:"api/reference.md"},r={class:"jldocstring custom-block",open:""},o={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},K={class:"jldocstring custom-block",open:""},W={class:"jldocstring custom-block",open:""},J={class:"jldocstring custom-block",open:""},$={class:"jldocstring custom-block",open:""},H={class:"jldocstring custom-block",open:""},Q={class:"jldocstring custom-block",open:""},_={class:"jldocstring custom-block",open:""},ss={class:"jldocstring custom-block",open:""},is={class:"jldocstring custom-block",open:""},as={class:"jldocstring custom-block",open:""},ns={class:"jldocstring custom-block",open:""},ts={class:"jldocstring custom-block",open:""},ls={class:"jldocstring custom-block",open:""},es={class:"jldocstring custom-block",open:""},hs={class:"jldocstring custom-block",open:""},ks={class:"jldocstring custom-block",open:""},ps={class:"jldocstring custom-block",open:""},ds={class:"jldocstring custom-block",open:""},rs={class:"jldocstring custom-block",open:""};function os(Es,s,gs,ys,cs,Fs){const n=k("Badge");return p(),h("div",null,[s[165]||(s[165]=i("h1",{id:"API-Reference",tabindex:"-1"},[a("API Reference "),i("a",{class:"header-anchor",href:"#API-Reference","aria-label":'Permalink to "API Reference {#API-Reference}"'},"​")],-1)),s[166]||(s[166]=i("h2",{id:"arrays",tabindex:"-1"},[a("Arrays "),i("a",{class:"header-anchor",href:"#arrays","aria-label":'Permalink to "Arrays"'},"​")],-1)),i("details",r,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.AbstractBasicDimArray",href:"#DimensionalData.AbstractBasicDimArray"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractBasicDimArray")],-1)),s[1]||(s[1]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[2]||(s[2]=l('
julia
AbstractBasicDimArray <: AbstractArray

The abstract supertype for all arrays with a dims method that returns a Tuple of Dimension

Only keyword rebuild is guaranteed to work with AbstractBasicDimArray.

source

',4))]),i("details",o,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.AbstractDimArray",href:"#DimensionalData.AbstractDimArray"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimArray")],-1)),s[4]||(s[4]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=l('
julia
AbstractDimArray <: AbstractBasicArray

Abstract supertype for all "dim" arrays.

These arrays return a Tuple of Dimension from a dims method, and can be rebuilt using rebuild.

parent must return the source array.

They should have metadata, name and refdims methods, although these are optional.

A rebuild method for AbstractDimArray must accept data, dims, refdims, name, metadata arguments.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

source

',8))]),i("details",E,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.DimArray",href:"#DimensionalData.DimArray"},[i("span",{class:"jlbinding"},"DimensionalData.DimArray")],-1)),s[7]||(s[7]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=l(`
julia
DimArray <: AbstractDimArray
+
+DimArray(data, dims, refdims, name, metadata)
+DimArray(data, dims::Tuple; refdims=(), name=NoName(), metadata=NoMetadata())
+DimArray(gen; kw...)

The main concrete subtype of AbstractDimArray.

DimArray maintains and updates its Dimensions through transformations and moves dimensions to reference dimension refdims after reducing operations (like e.g. mean).

Arguments

Indexing can be done with all regular indices, or with Dimensions and/or Selectors.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

Note that the generator expression syntax requires usage of the semi-colon ; to distinguish generator dimensions from keywords.

Example:

julia
julia> using Dates, DimensionalData
+
+julia> ti = Ti(DateTime(2001):Month(1):DateTime(2001,12));
+
+julia> x = X(10:10:100);
+
+julia> A = DimArray(rand(12,10), (ti, x), name="example");
+
+julia> A[X(Near([12, 35])), Ti(At(DateTime(2001,5)))]
+╭────────────────────────────────────────╮
+2-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴────────────── dims ┐
+ X Sampled{Int64} [10, 40] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+ 10  0.253849
+ 40  0.637077
+
+julia> A[Near(DateTime(2001, 5, 4)), Between(20, 50)]
+╭────────────────────────────────────────╮
+4-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴──────────── dims ┐
+ X Sampled{Int64} 20:10:50 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────┘
+ 20  0.774092
+ 30  0.823656
+ 40  0.637077
+ 50  0.692235

Generator expression:

julia
julia> DimArray((x, y) for x in X(1:3), y in Y(1:2); name = :Value)
+╭────────────────────────────────────────────╮
+3×2 DimArray{Tuple{Int64, Int64}, 2} Value │
+├────────────────────────────────────────────┴──── dims ┐
+ X Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 1:2 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────┘
+  1        2
+ 1     (1, 1)   (1, 2)
+ 2     (2, 1)   (2, 2)
+ 3     (3, 1)   (3, 2)

source

`,13))]),s[167]||(s[167]=i("p",null,[a("Shorthand "),i("code",null,"AbstractDimArray"),a(" constructors:")],-1)),i("details",g,[i("summary",null,[s[9]||(s[9]=i("a",{id:"Base.fill",href:"#Base.fill"},[i("span",{class:"jlbinding"},"Base.fill")],-1)),s[10]||(s[10]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[11]||(s[11]=l(`
julia
Base.fill(x, dims::Dimension...; kw...) => DimArray
+Base.fill(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray with a fill value of x.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData, Random; Random.seed!(123);
+
+julia> fill(true, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1

source

`,8))]),i("details",y,[i("summary",null,[s[12]||(s[12]=i("a",{id:"Base.rand",href:"#Base.rand"},[i("span",{class:"jlbinding"},"Base.rand")],-1)),s[13]||(s[13]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[14]||(s[14]=l(`
julia
Base.rand(x, dims::Dimension...; kw...) => DimArray
+Base.rand(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Dimension...; kw...) => DimArray

Create a DimArray of random values.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> rand(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 1  0  0  1
+
+julia> rand(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0       150.0       200.0
+  :a    0.443494    0.253849    0.867547
+  :b    0.745673    0.334152    0.0802658
+  :c    0.512083    0.427328    0.311448

source

`,8))]),i("details",c,[i("summary",null,[s[15]||(s[15]=i("a",{id:"Base.zeros",href:"#Base.zeros"},[i("span",{class:"jlbinding"},"Base.zeros")],-1)),s[16]||(s[16]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[17]||(s[17]=l(`
julia
Base.zeros(x, dims::Dimension...; kw...) => DimArray
+Base.zeros(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of zeros.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> zeros(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 0  0  0  0
+
+julia> zeros(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    0.0    0.0    0.0
+  :b    0.0    0.0    0.0
+  :c    0.0    0.0    0.0

source

`,8))]),i("details",F,[i("summary",null,[s[18]||(s[18]=i("a",{id:"Base.ones",href:"#Base.ones"},[i("span",{class:"jlbinding"},"Base.ones")],-1)),s[19]||(s[19]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[20]||(s[20]=l(`
julia
Base.ones(x, dims::Dimension...; kw...) => DimArray
+Base.ones(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of ones.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> ones(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1
+
+julia> ones(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    1.0    1.0    1.0
+  :b    1.0    1.0    1.0
+  :c    1.0    1.0    1.0

source

`,8))]),s[168]||(s[168]=i("p",null,"Functions for getting information from objects:",-1)),i("details",C,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.dims",href:"#DimensionalData.Dimensions.dims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims")],-1)),s[22]||(s[22]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[23]||(s[23]=l(`
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

`,13))]),i("details",m,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.refdims",href:"#DimensionalData.Dimensions.refdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.refdims")],-1)),s[25]||(s[25]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[26]||(s[26]=l(`
julia
refdims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+refdims(x, dim) => Dimension

Reference dimensions for an array that is a slice or view of another array with more dimensions.

slicedims(a, dims) returns a tuple containing the current new dimensions and the new reference dimensions. Refdims can be stored in a field or discarded, as it is mostly to give context to plots. Ignoring refdims will simply leave some captions empty.

The default is to return an empty Tuple ().

source

`,5))]),i("details",u,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Lookups.metadata",href:"#DimensionalData.Dimensions.Lookups.metadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.metadata")],-1)),s[28]||(s[28]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[29]||(s[29]=l(`
julia
metadata(x) => (object metadata)
+metadata(x, dims::Tuple)  => Tuple (Dimension metadata)
+metadata(xs::Tuple) => Tuple

Returns the metadata for an object or for the specified dimension(s)

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",D,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.name",href:"#DimensionalData.Dimensions.name"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.name")],-1)),s[31]||(s[31]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[32]||(s[32]=l(`
julia
name(x) => Symbol
+name(xs:Tuple) => NTuple{N,Symbol}
+name(x, dims::Tuple) => NTuple{N,Symbol}
+name(x, dim) => Symbol

Get the name of an array or Dimension, or a tuple of of either as a Symbol.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.otherdims",href:"#DimensionalData.Dimensions.otherdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.otherdims")],-1)),s[34]||(s[34]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[35]||(s[35]=l(`
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

`,8))]),i("details",B,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.dimnum",href:"#DimensionalData.Dimensions.dimnum"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimnum")],-1)),s[37]||(s[37]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[38]||(s[38]=l(`
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

`,8))]),i("details",A,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.hasdim",href:"#DimensionalData.Dimensions.hasdim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.hasdim")],-1)),s[40]||(s[40]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[41]||(s[41]=l(`
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

`,8))]),s[169]||(s[169]=i("h2",{id:"Multi-array-datasets",tabindex:"-1"},[a("Multi-array datasets "),i("a",{class:"header-anchor",href:"#Multi-array-datasets","aria-label":'Permalink to "Multi-array datasets {#Multi-array-datasets}"'},"​")],-1)),i("details",f,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.AbstractDimStack",href:"#DimensionalData.AbstractDimStack"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimStack")],-1)),s[43]||(s[43]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[44]||(s[44]=l('
julia
AbstractDimStack

Abstract supertype for dimensional stacks.

These have multiple layers of data, but share dimensions.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

This design gives very succinct code when working with many-layered, mixed-dimension objects. But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

See DimStack for the concrete implementation. Most methods are defined on the abstract type.

To extend AbstractDimStack, implement argument and keyword version of rebuild and also rebuild_from_arrays.

The constructor of an AbstractDimStack must accept a NamedTuple.

source

',10))]),i("details",j,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.DimStack",href:"#DimensionalData.DimStack"},[i("span",{class:"jlbinding"},"DimensionalData.DimStack")],-1)),s[46]||(s[46]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[47]||(s[47]=l(`
julia
DimStack <: AbstractDimStack
+
+DimStack(data::AbstractDimArray...; kw...)
+DimStack(data::Tuple{Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple{Keys,Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple, dims::DimTuple; metadata=NoMetadata(); kw...)

DimStack holds multiple objects sharing some dimensions, in a NamedTuple.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

julia
function DimStack(A::AbstractDimArray;
+    layersfrom=nothing, name=nothing, metadata=metadata(A), refdims=refdims(A), kw...
+)

For example, here we take the mean over the time dimension for all layers:

julia
mean(mydimstack; dims=Ti)

And this equivalent to:

julia
map(A -> mean(A; dims=Ti), mydimstack)

This design gives succinct code when working with many-layered, mixed-dimension objects.

But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

DimStack can be constructed from multiple AbstractDimArray or a NamedTuple of AbstractArray and a matching dims tuple.

Most Base and Statistics methods that apply to AbstractArray can be used on all layers of the stack simulataneously. The result is a DimStack, or a NamedTuple if methods like mean are used without dims arguments, and return a single non-array value.

Example

julia
julia> using DimensionalData
+
+julia> A = [1.0 2.0 3.0; 4.0 5.0 6.0];
+
+julia> dimz = (X([:a, :b]), Y(10.0:10.0:30.0))
+( X [:a, :b],
+ Y 10.0:10.0:30.0)
+
+julia> da1 = DimArray(1A, dimz; name=:one);
+
+julia> da2 = DimArray(2A, dimz; name=:two);
+
+julia> da3 = DimArray(3A, dimz; name=:three);
+
+julia> s = DimStack(da1, da2, da3);
+
+julia> s[At(:b), At(10.0)]
+(one = 4.0, two = 8.0, three = 12.0)
+
+julia> s[X(At(:a))] isa DimStack
+true

source

`,16))]),s[170]||(s[170]=i("h2",{id:"Dimension-generators",tabindex:"-1"},[a("Dimension generators "),i("a",{class:"header-anchor",href:"#Dimension-generators","aria-label":'Permalink to "Dimension generators {#Dimension-generators}"'},"​")],-1)),i("details",v,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.DimIndices",href:"#DimensionalData.DimIndices"},[i("span",{class:"jlbinding"},"DimensionalData.DimIndices")],-1)),s[49]||(s[49]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[50]||(s[50]=l(`
julia
DimIndices <: AbstractArray
+
+DimIndices(x)
+DimIndices(dims::Tuple)
+DimIndices(dims::Dimension)

Like CartesianIndices, but for Dimensions. Behaves as an Array of Tuple of Dimension(i) for all combinations of the axis indices of dims.

This can be used to view/index into arbitrary dimensions over an array, and is especially useful when combined with otherdims, to iterate over the indices of unknown dimension.

DimIndices can be used directly in getindex like CartesianIndices, and freely mixed with individual Dimensions or tuples of Dimension.

Example

Index a DimArray with DimIndices.

Notice that unlike CartesianIndices, it doesn't matter if the dimensions are not in the same order. Or even if they are not all contained in each.

julia
julia> A = rand(Y(0.0:0.3:1.0), X('a':'f'))
+╭──────────────────────────╮
+4×6 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.3:0.9 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':1:'f' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'b'       'c'        'd'        'e'       'f'
+ 0.0  0.9063    0.253849  0.0991336  0.0320967  0.774092  0.893537
+ 0.3  0.443494  0.334152  0.125287   0.350546   0.183555  0.354868
+ 0.6  0.745673  0.427328  0.692209   0.930332   0.297023  0.131798
+ 0.9  0.512083  0.867547  0.136551   0.959434   0.150155  0.941133
+
+julia> di = DimIndices((X(1:2:4), Y(1:2:4)))
+╭──────────────────────────────────────────────╮
+2×2 DimIndices{Tuple{X{Int64}, Y{Int64}}, 2} │
+├──────────────────────────────────────── dims ┤
+ X 1:2:3,
+ Y 1:2:3
+└──────────────────────────────────────────────┘
+  1                3
+ 1     ( X 1,  Y 1)   ( X 1,  Y 3)
+ 3     ( X 3,  Y 1)   ( X 3,  Y 3)
+
+julia> A[di] # Index A with these indices
+╭──────────────────────────╮
+2×2 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.6:0.6 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':2:'c' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'c'
+ 0.0  0.9063    0.0991336
+ 0.6  0.745673  0.692209

source

`,9))]),i("details",w,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.DimSelectors",href:"#DimensionalData.DimSelectors"},[i("span",{class:"jlbinding"},"DimensionalData.DimSelectors")],-1)),s[52]||(s[52]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[53]||(s[53]=l(`
julia
DimSelectors <: AbstractArray
+
+DimSelectors(x; selectors, atol...)
+DimSelectors(dims::Tuple; selectors, atol...)
+DimSelectors(dims::Dimension; selectors, atol...)

Like DimIndices, but returns Dimensions holding the chosen Selectors.

Indexing into another AbstractDimArray with DimSelectors is similar to doing an interpolation.

Keywords

Example

Here we can interpolate a DimArray to the lookups of another DimArray using DimSelectors with Near. This is essentially equivalent to nearest neighbour interpolation.

julia
julia> A = rand(X(1.0:3.0:30.0), Y(1.0:5.0:30.0), Ti(1:2));
+
+julia> target = rand(X(1.0:10.0:30.0), Y(1.0:10.0:30.0));
+
+julia> A[DimSelectors(target; selectors=Near), Ti=2]
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ X Sampled{Float64} [1.0, 10.0, 22.0] ForwardOrdered Irregular Points,
+ Y Sampled{Float64} [1.0, 11.0, 21.0] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  1.0        11.0       21.0
+  1.0  0.691162    0.218579   0.539076
+ 10.0  0.0303789   0.420756   0.485687
+ 22.0  0.0967863   0.864856   0.870485

Using At would make sure we only use exact interpolation, while Contains with sampling of Intervals would make sure that each values is taken only from an Interval that is present in the lookups.

source

`,10))]),i("details",x,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.DimPoints",href:"#DimensionalData.DimPoints"},[i("span",{class:"jlbinding"},"DimensionalData.DimPoints")],-1)),s[55]||(s[55]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[56]||(s[56]=l(`
julia
DimPoints <: AbstractArray
+
+DimPoints(x; order)
+DimPoints(dims::Tuple; order)
+DimPoints(dims::Dimension; order)

Like CartesianIndices, but for the point values of the dimension index. Behaves as an Array of Tuple lookup values (whatever they are) for all combinations of the lookup values of dims.

Either a Dimension, a Tuple of Dimension or an object x that defines a dims method can be passed in.

Keywords

source

`,6))]),s[171]||(s[171]=i("h2",{id:"Tables.jl/TableTraits.jl-interface",tabindex:"-1"},[a("Tables.jl/TableTraits.jl interface "),i("a",{class:"header-anchor",href:"#Tables.jl/TableTraits.jl-interface","aria-label":'Permalink to "Tables.jl/TableTraits.jl interface {#Tables.jl/TableTraits.jl-interface}"'},"​")],-1)),i("details",T,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.AbstractDimTable",href:"#DimensionalData.AbstractDimTable"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimTable")],-1)),s[58]||(s[58]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[59]||(s[59]=l('
julia
AbstractDimTable <: Tables.AbstractColumns

Abstract supertype for dim tables

source

',3))]),i("details",L,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.DimTable",href:"#DimensionalData.DimTable"},[i("span",{class:"jlbinding"},"DimensionalData.DimTable")],-1)),s[61]||(s[61]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[62]||(s[62]=l(`
julia
DimTable <: AbstractDimTable
+
+DimTable(s::AbstractDimStack; mergedims=nothing)
+DimTable(x::AbstractDimArray; layersfrom=nothing, mergedims=nothing)
+DimTable(xs::Vararg{AbstractDimArray}; layernames=nothing, mergedims=nothing)

Construct a Tables.jl/TableTraits.jl compatible object out of an AbstractDimArray or AbstractDimStack.

This table will have columns for the array data and columns for each Dimension index, as a [DimColumn]. These are lazy, and generated as required.

Column names are converted from the dimension types using DimensionalData.name. This means type Ti becomes the column name :Ti, and Dim{:custom} becomes :custom.

To get dimension columns, you can index with Dimension (X()) or Dimension type (X) as well as the regular Int or Symbol.

Keywords

Example

julia
julia> using DimensionalData, Tables
+
+julia> a = DimArray(ones(16, 16, 3), (X, Y, Dim{:band}))
+╭──────────────────────────────╮
+16×16×3 DimArray{Float64, 3} │
+├──────────────────────── dims ┤
+ X,  Y, ↗ band
+└──────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+
+julia>

source

`,10))]),s[172]||(s[172]=i("h1",{id:"Group-by-methods",tabindex:"-1"},[a("Group by methods "),i("a",{class:"header-anchor",href:"#Group-by-methods","aria-label":'Permalink to "Group by methods {#Group-by-methods}"'},"​")],-1)),s[173]||(s[173]=i("p",null,"For transforming DimensionalData objects:",-1)),i("details",S,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DataAPI.groupby",href:"#DataAPI.groupby"},[i("span",{class:"jlbinding"},"DataAPI.groupby")],-1)),s[64]||(s[64]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=l(`
julia
groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Pair...)
+groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Dimension{<:Callable}...)

Group A by grouping functions or Bins over multiple dimensions.

Arguments

Return value

A DimGroupByArray is returned, which is basically a regular AbstractDimArray but holding the grouped AbstractDimArray or AbstractDimStack. Its dims hold the sorted values returned by the grouping function/s.

Base julia and package methods work on DimGroupByArray as for any other AbstractArray of AbstractArray.

It is common to broadcast or map a reducing function over groups, such as mean or sum, like mean.(groups) or map(mean, groups). This will return a regular DimArray, or DimGroupByArray if dims keyword is used in the reducing function or it otherwise returns an AbstractDimArray or AbstractDimStack.

Example

Group some data along the time dimension:

julia
julia> using DimensionalData, Dates
+
+julia> A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
+
+julia> groups = groupby(A, Ti => month) # Group by month
+╭───────────────────────────────────────────────────╮
+12-element DimGroupByArray{DimArray{Float64,2},1} │
+├───────────────────────────────────────────────────┴───────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+├─────────────────────────────────────────────────────────── group dims ┤
+ X,  Y, ↗ Ti
+└───────────────────────────────────────────────────────────────────────┘
+  1  191×20×32 DimArray
+  2  191×20×28 DimArray
+  3  191×20×31 DimArray
+
+ 11  191×20×30 DimArray
+ 12  191×20×31 DimArray

And take the mean:

julia
julia> groupmeans = mean.(groups) # Take the monthly mean
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴─────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+└───────────────────────────────────────────────────────────────────────┘
+  1  0.500064
+  2  0.499762
+  3  0.500083
+  4  0.499985
+
+ 10  0.500874
+ 11  0.498704
+ 12  0.50047

Calculate daily anomalies from the monthly mean. Notice we map a broadcast .- rather than -. This is because the size of the arrays to not match after application of mean.

julia
julia> map(.-, groupby(A, Ti=>month), mean.(groupby(A, Ti=>month), dims=Ti));

Or do something else with Y:

julia
julia> groupmeans = mean.(groupby(A, Ti=>month, Y=>isodd))
+╭───────────────────────────╮
+12×2 DimArray{Float64, 2} │
+├───────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points,
+ Y  Sampled{Bool} [false, true] ForwardOrdered Irregular Points
+├────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => (:Ti=>month, :Y=>isodd)
+└────────────────────────────────────────────────────────────────────────┘
+  false         true
+  1        0.499594     0.500533
+  2        0.498145     0.501379
+
+ 10        0.501105     0.500644
+ 11        0.498606     0.498801
+ 12        0.501643     0.499298

source

`,18))]),i("details",I,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.DimGroupByArray",href:"#DimensionalData.DimGroupByArray"},[i("span",{class:"jlbinding"},"DimensionalData.DimGroupByArray")],-1)),s[67]||(s[67]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[68]||(s[68]=l('
julia
DimGroupByArray <: AbstractDimArray

DimGroupByArray is essentially a DimArray but holding the results of a groupby operation.

Its dimensions are the sorted results of the grouping functions used in groupby.

This wrapper allows for specialisations on later broadcast or reducing operations, e.g. for chunk reading with DiskArrays.jl, because we know the data originates from a single array.

source

',5))]),i("details",P,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Bins",href:"#DimensionalData.Bins"},[i("span",{class:"jlbinding"},"DimensionalData.Bins")],-1)),s[70]||(s[70]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[71]||(s[71]=l(`
julia
Bins(f, bins; labels, pad)
+Bins(bins; labels, pad)

Specify bins to reduce groups after applying function f.

Keywords

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

`,7))]),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.ranges",href:"#DimensionalData.ranges"},[i("span",{class:"jlbinding"},"DimensionalData.ranges")],-1)),s[73]||(s[73]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[74]||(s[74]=l('
julia
ranges(A::AbstractRange{<:Integer})

Generate a Vector of UnitRange with length step(A)

source

',3))]),i("details",R,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.intervals",href:"#DimensionalData.intervals"},[i("span",{class:"jlbinding"},"DimensionalData.intervals")],-1)),s[76]||(s[76]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[77]||(s[77]=l('
julia
intervals(A::AbstractRange)

Generate a Vector of UnitRange with length step(A)

source

',3))]),i("details",N,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.CyclicBins",href:"#DimensionalData.CyclicBins"},[i("span",{class:"jlbinding"},"DimensionalData.CyclicBins")],-1)),s[79]||(s[79]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[80]||(s[80]=l('
julia
CyclicBins(f; cycle, start, step, labels)

Cyclic bins to reduce groups after applying function f. Groups can wrap around the cycle. This is used for grouping in seasons, months and hours but can also be used for custom cycles.

Keywords

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

',7))]),i("details",q,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.seasons",href:"#DimensionalData.seasons"},[i("span",{class:"jlbinding"},"DimensionalData.seasons")],-1)),s[82]||(s[82]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[83]||(s[83]=l('
julia
seasons(; [start=Dates.December, labels])

Generates CyclicBins for three month periods.

Keywords

source

',5))]),i("details",z,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.months",href:"#DimensionalData.months"},[i("span",{class:"jlbinding"},"DimensionalData.months")],-1)),s[85]||(s[85]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[86]||(s[86]=l('
julia
months(step; [start=Dates.January, labels])

Generates CyclicBins for grouping to arbitrary month periods. These can wrap around the end of a year.

Keywords

source

',6))]),i("details",X,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.hours",href:"#DimensionalData.hours"},[i("span",{class:"jlbinding"},"DimensionalData.hours")],-1)),s[88]||(s[88]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[89]||(s[89]=l('
julia
hours(step; [start=0, labels])

Generates CyclicBins for grouping to arbitrary hour periods. These can wrap around the end of the day.

Keywords

source

',6))]),s[174]||(s[174]=i("h1",{id:"Utility-methods",tabindex:"-1"},[a("Utility methods "),i("a",{class:"header-anchor",href:"#Utility-methods","aria-label":'Permalink to "Utility methods {#Utility-methods}"'},"​")],-1)),s[175]||(s[175]=i("p",null,"For transforming DimensionalData objects:",-1)),i("details",Y,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.Lookups.set",href:"#DimensionalData.Dimensions.Lookups.set"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.set")],-1)),s[91]||(s[91]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[92]||(s[92]=l(`
julia
set(x, val)
+set(x, args::Pairs...) => x with updated field/s
+set(x, args...; kw...) => x with updated field/s
+set(x, args::Tuple{Vararg{Dimension}}; kw...) => x with updated field/s
+
+set(dim::Dimension, index::AbstractArray) => Dimension
+set(dim::Dimension, lookup::Lookup) => Dimension
+set(dim::Dimension, lookupcomponent::LookupTrait) => Dimension
+set(dim::Dimension, metadata::AbstractMetadata) => Dimension

Set the properties of an object, its internal data or the traits of its dimensions and lookup index.

As DimensionalData is so strongly typed you do not need to specify what field of a Lookup to set - there is no ambiguity.

To set fields of a Lookup you need to specify the dimension. This can be done using X => val pairs, X = val keyword arguments, or X(val) wrapped arguments.

You can also set the fields of all dimensions by simply passing a single Lookup or lookup trait - it will be set for all dimensions.

When a Dimension or Lookup is passed to set to replace the existing ones, fields that are not set will keep their original values.

Notes:

Changing a lookup index range/vector will also update the step size and order where applicable.

Setting the Order like ForwardOrdered will not reverse the array or dimension to match. Use reverse and reorder to do this.

Examples

julia
julia> using DimensionalData; const DD = DimensionalData;
+
+julia> da = DimArray(zeros(3, 4), (custom=10.0:010.0:30.0, Z=-20:010.0:10.0));
+
+julia> set(da, ones(3, 4))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    1.0    1.0  1.0   1.0
+ 20.0    1.0    1.0  1.0   1.0
+ 30.0    1.0    1.0  1.0   1.0

Change the Dimension wrapper type:

julia
julia> set(da, :Z => Ti, :custom => Z)
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ Z  Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Ti Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

Change the lookup Vector:

julia
julia> set(da, Z => [:a, :b, :c, :d], :custom => [4, 5, 6])
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Int64} [4, 5, 6] ForwardOrdered Regular Points,
+ Z      Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+   :a   :b   :c   :d
+ 4    0.0  0.0  0.0  0.0
+ 5    0.0  0.0  0.0  0.0
+ 6    0.0  0.0  0.0  0.0

Change the Lookup type:

julia
julia> set(da, Z=DD.NoLookup(), custom=DD.Sampled())
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z
+└─────────────────────────────────────────────────────────────────────────┘
+ 10.0  0.0  0.0  0.0  0.0
+ 20.0  0.0  0.0  0.0  0.0
+ 30.0  0.0  0.0  0.0  0.0

Change the Sampling trait:

julia
julia> set(da, :custom => DD.Irregular(10, 12), Z => DD.Regular(9.9))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴────────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Irregular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

source

`,20))]),i("details",G,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.Lookups.rebuild",href:"#DimensionalData.Dimensions.Lookups.rebuild"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.rebuild")],-1)),s[94]||(s[94]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[95]||(s[95]=l('
julia
rebuild(x; kw...)

Rebuild an object struct with updated field values.

x can be a AbstractDimArray, a Dimension, Lookup or other custom types.

This is an abstraction that allows inbuilt and custom types to be rebuilt to update their fields, as most objects in DimensionalData.jl are immutable.

Rebuild is mostly automated using ConstructionBase.setproperties. It should only be defined if your object has fields with with different names to DimensionalData objects. Try not to do that!

The arguments required are defined for the abstract type that has a rebuild method.

AbstractBasicDimArray:

AbstractDimArray:

AbstractDimStack:

Dimension:

Lookup:

AbstractDimStack in favour of always using the keyword version. In future the argument version will only be used on Dimension, which only have one argument.

source

',18))]),i("details",V,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.modify",href:"#DimensionalData.modify"},[i("span",{class:"jlbinding"},"DimensionalData.modify")],-1)),s[97]||(s[97]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[98]||(s[98]=l(`
julia
modify(f, A::AbstractDimArray) => AbstractDimArray
+modify(f, s::AbstractDimStack) => AbstractDimStack
+modify(f, dim::Dimension) => Dimension
+modify(f, x, lookupdim::Dimension) => typeof(x)

Modify the parent data, rebuilding the object wrapper without change. f must return a AbstractArray of the same size as the original.

This method is mostly useful as a way of swapping the parent array type of an object.

Example

If we have a previously-defined DimArray, we can copy it to an Nvidia GPU with:

julia
A = DimArray(rand(100, 100), (X, Y))
+modify(CuArray, A)

This also works for all the data layers in a DimStack.

source

`,8))]),i("details",M,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.@d",href:"#DimensionalData.@d"},[i("span",{class:"jlbinding"},"DimensionalData.@d")],-1)),s[100]||(s[100]=a()),t(n,{type:"info",class:"jlObjectType jlMacro",text:"Macro"})]),s[101]||(s[101]=l(`
julia
@d broadcast_expression options

Dimensional broadcast macro extending Base Julia broadcasting to work with missing and permuted dimensions.

Will permute and reshape singleton dimensions so that all AbstractDimArray in a broadcast will broadcast over matching dimensions.

It is possible to pass options as the second argument of the macro to control the behaviour, as a single assignment or as a NamedTuple. Options names must be written explicitly, not passed in namedtuple variable.

Options

All other keywords are passed to DimensionalData.rebuild. This means name, metadata, etc for the returned array can be set here, or for example missingval in Rasters.jl.

Example

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d da1 .* da2
+@d da1 .* da2 .+ 5 dims=(Y, X)
+@d da1 .* da2 .+ 5 (dims=(Y, X), strict=false, name=:testname)

Use with @.

@d does not imply @.. You need to specify each broadcast. But @. can be used with @d as the inner macro.

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d @. da1 * da2
+# Use parentheses around \`@.\` if you need to pass options
+@d (@. da1 * da2 .+ 5) dims=(Y, X)

source

`,13))]),i("details",U,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.broadcast_dims",href:"#DimensionalData.broadcast_dims"},[i("span",{class:"jlbinding"},"DimensionalData.broadcast_dims")],-1)),s[103]||(s[103]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[104]||(s[104]=l('
julia
broadcast_dims(f, sources::AbstractDimArray...) => AbstractDimArray

Broadcast function f over the AbstractDimArrays in sources, permuting and reshaping dimensions to match where required. The result will contain all the dimensions in all passed in arrays in the order in which they are found.

Arguments

This is like broadcasting over every slice of A if it is sliced by the dimensions of B.

source

',6))]),i("details",Z,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.broadcast_dims!",href:"#DimensionalData.broadcast_dims!"},[i("span",{class:"jlbinding"},"DimensionalData.broadcast_dims!")],-1)),s[106]||(s[106]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[107]||(s[107]=l('
julia
broadcast_dims!(f, dest::AbstractDimArray, sources::AbstractDimArray...) => dest

Broadcast function f over the AbstractDimArrays in sources, writing to dest. sources are permuting and reshaping dimensions to match where required.

The result will contain all the dimensions in all passed in arrays, in the order in which they are found.

Arguments

source

',6))]),i("details",K,[i("summary",null,[s[108]||(s[108]=i("a",{id:"DimensionalData.mergedims",href:"#DimensionalData.mergedims"},[i("span",{class:"jlbinding"},"DimensionalData.mergedims")],-1)),s[109]||(s[109]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[110]||(s[110]=l(`
julia
mergedims(old_dims => new_dim) => Dimension

Return a dimension new_dim whose indices are a MergedLookup of the indices of old_dims.

source

julia
mergedims(dims, old_dims => new_dim, others::Pair...) => dims_new

If dimensions old_dims, new_dim, etc. are found in dims, then return new dims_new where all dims in old_dims have been combined into a single dim new_dim. The returned dimension will keep only the name of new_dim. Its coords will be a MergedLookup of the coords of the dims in old_dims. New dimensions are always placed at the end of dims_new. others contains other dimension pairs to be merged.

Example

julia
julia> using DimensionalData
+
+julia> ds = (X(0:0.1:0.4), Y(10:10:100), Ti([0, 3, 4]))
+( X  0.0:0.1:0.4,
+ Y  10:10:100,
+↗ Ti [0, 3, 4])
+
+julia> mergedims(ds, (X, Y) => :space)
+( Ti    [0, 3, 4],
+ space MergedLookup{Tuple{Float64, Int64}} [(0.0, 10), (0.1, 10), , (0.3, 100), (0.4, 100)] ( X,  Y))

source

julia
mergedims(A::AbstractDimArray, dim_pairs::Pair...) => AbstractDimArray
+mergedims(A::AbstractDimStack, dim_pairs::Pair...) => AbstractDimStack

Return a new array or stack whose dimensions are the result of mergedims(dims(A), dim_pairs).

source

`,11))]),i("details",W,[i("summary",null,[s[111]||(s[111]=i("a",{id:"DimensionalData.unmergedims",href:"#DimensionalData.unmergedims"},[i("span",{class:"jlbinding"},"DimensionalData.unmergedims")],-1)),s[112]||(s[112]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[113]||(s[113]=l(`
julia
unmergedims(merged_dims::Tuple{Vararg{Dimension}}) => Tuple{Vararg{Dimension}}

Return the unmerged dimensions from a tuple of merged dimensions. However, the order of the original dimensions are not necessarily preserved.

source

julia
unmergedims(A::AbstractDimArray, original_dims) => AbstractDimArray
+unmergedims(A::AbstractDimStack, original_dims) => AbstractDimStack

Return a new array or stack whose dimensions are restored to their original prior to calling mergedims(A, dim_pairs).

source

`,6))]),i("details",J,[i("summary",null,[s[114]||(s[114]=i("a",{id:"DimensionalData.reorder",href:"#DimensionalData.reorder"},[i("span",{class:"jlbinding"},"DimensionalData.reorder")],-1)),s[115]||(s[115]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[116]||(s[116]=l(`
julia
reorder(A::Union{AbstractDimArray,AbstractDimStack}, order::Pair...)
+reorder(A::Union{AbstractDimArray,AbstractDimStack}, order)
+reorder(A::Dimension, order::Order)

Reorder every dims index/array to order, or reorder index for the given dimension(s) in order.

order can be an Order, Dimension => Order pairs. A Tuple of Dimensions or any object that defines dims can be used in which case the dimensions of this object are used for reordering.

If no axis reversal is required the same objects will be returned, without allocation.

Example

julia
using DimensionalData
+
+# Create a DimArray
+da = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(300:-100:100)))
+
+# Reverse it
+rev = reverse(da, dims=Y)
+
+# using \`da\` in reorder will return it to the original order
+reorder(rev, da) == da
+
+# output
+true

source

`,7))]),s[176]||(s[176]=i("h1",{id:"Global-lookup-strictness-settings",tabindex:"-1"},[a("Global lookup strictness settings "),i("a",{class:"header-anchor",href:"#Global-lookup-strictness-settings","aria-label":'Permalink to "Global lookup strictness settings {#Global-lookup-strictness-settings}"'},"​")],-1)),s[177]||(s[177]=i("p",null,[a("Control how strict DimensionalData when comparing "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Lookup"},[i("code",null,"Lookup")]),a("s before doing broadcasts and matrix multipications.")],-1)),s[178]||(s[178]=i("p",null,[a("In some cases (especially "),i("code",null,"DimVector"),a(" and small "),i("code",null,"DimArray"),a(") checking lookup values match may be too costly compared to the operations. You can turn check the current setting and turn them on or off with these methods.")],-1)),i("details",$,[i("summary",null,[s[117]||(s[117]=i("a",{id:"DimensionalData.strict_broadcast",href:"#DimensionalData.strict_broadcast"},[i("span",{class:"jlbinding"},"DimensionalData.strict_broadcast")],-1)),s[118]||(s[118]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[119]||(s[119]=l('
julia
strict_broadcast()

Check if strict broadcasting checks are active.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

',6))]),i("details",H,[i("summary",null,[s[120]||(s[120]=i("a",{id:"DimensionalData.strict_broadcast!",href:"#DimensionalData.strict_broadcast!"},[i("span",{class:"jlbinding"},"DimensionalData.strict_broadcast!")],-1)),s[121]||(s[121]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[122]||(s[122]=l('
julia
strict_broadcast!(x::Bool)

Set global broadcasting checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

',6))]),i("details",Q,[i("summary",null,[s[123]||(s[123]=i("a",{id:"DimensionalData.strict_matmul",href:"#DimensionalData.strict_matmul"},[i("span",{class:"jlbinding"},"DimensionalData.strict_matmul")],-1)),s[124]||(s[124]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[125]||(s[125]=l('
julia
strict_matmul()

Check if strickt broadcasting checks are active.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

',5))]),i("details",_,[i("summary",null,[s[126]||(s[126]=i("a",{id:"DimensionalData.strict_matmul!",href:"#DimensionalData.strict_matmul!"},[i("span",{class:"jlbinding"},"DimensionalData.strict_matmul!")],-1)),s[127]||(s[127]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[128]||(s[128]=l('
julia
strict_matmul!(x::Bool)

Set global matrix multiplication checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

',5))]),s[179]||(s[179]=i("p",null,"Base methods",-1)),i("details",ss,[i("summary",null,[s[129]||(s[129]=i("a",{id:"Base.cat",href:"#Base.cat"},[i("span",{class:"jlbinding"},"Base.cat")],-1)),s[130]||(s[130]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[131]||(s[131]=l('
julia
Base.cat(stacks::AbstractDimStack...; [keys=keys(stacks[1])], dims)

Concatenate all or a subset of layers for all passed in stacks.

Keywords

Example

Concatenate the :sea_surface_temp and :humidity layers in the time dimension:

julia
cat(stacks...; keys=(:sea_surface_temp, :humidity), dims=Ti)

source

',8))]),i("details",is,[i("summary",null,[s[132]||(s[132]=i("a",{id:"Base.copy!",href:"#Base.copy!"},[i("span",{class:"jlbinding"},"Base.copy!")],-1)),s[133]||(s[133]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[134]||(s[134]=l('
julia
Base.copy!(dst::AbstractArray, src::AbstractDimStack, key::Key)

Copy the stack layer key to dst, which can be any AbstractArray.

Example

Copy the :humidity layer from stack to array.

julia
copy!(array, stack, :humidity)

source

julia
Base.copy!(dst::AbstractDimStack, src::AbstractDimStack, [keys=keys(dst)])

Copy all or a subset of layers from one stack to another.

Example

Copy just the :sea_surface_temp and :humidity layers from src to dst.

julia
copy!(dst::AbstractDimStack, src::AbstractDimStack, keys=(:sea_surface_temp, :humidity))

source

',12))]),i("details",as,[i("summary",null,[s[135]||(s[135]=i("a",{id:"Base.eachslice",href:"#Base.eachslice"},[i("span",{class:"jlbinding"},"Base.eachslice")],-1)),s[136]||(s[136]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[137]||(s[137]=l(`
julia
Base.eachslice(A::AbstractDimArray; dims,drop=true)

Create a generator that iterates over dimensions dims of A, returning arrays that select all the data from the other dimensions in A using views.

The generator has size and axes equivalent to those of the provided dims if drop=true. Otherwise it will have the same dimensionality as the underlying array with inner dimensions having size 1.

source

julia
Base.eachslice(stack::AbstractDimStack; dims, drop=true)

Create a generator that iterates over dimensions dims of stack, returning stacks that select all the data from the other dimensions in stack using views.

The generator has size and axes equivalent to those of the provided dims.

Examples

julia
julia> ds = DimStack((
+           x=DimArray(randn(2, 3, 4), (X([:x1, :x2]), Y(1:3), Z)),
+           y=DimArray(randn(2, 3, 5), (X([:x1, :x2]), Y(1:3), Ti))
+       ));
+
+julia> slices = eachslice(ds; dims=(Z, X));
+
+julia> size(slices)
+(4, 2)
+
+julia> map(dims, axes(slices))
+( Z Base.OneTo(4),
+ X Base.OneTo(2))
+
+julia> first(slices)
+╭──────────────╮
+3×5 DimStack │
+├──────────────┴─────────────────────────────────── dims ┐
+ Y  Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Ti
+├──────────────────────────────────────────────── layers ┤
+  :x eltype: Float64 dims: Y size: 3
+  :y eltype: Float64 dims: Y, Ti size: 3×5
+└────────────────────────────────────────────────────────┘

source

`,10))]),s[180]||(s[180]=i("p",null,[a("Most base methods work as expected, using "),i("code",null,"Dimension"),a(" wherever a "),i("code",null,"dims"),a(" keyword is used. They are not all specifically documented here.")],-1)),s[181]||(s[181]=i("h2",{id:"name",tabindex:"-1"},[a("Name "),i("a",{class:"header-anchor",href:"#name","aria-label":'Permalink to "Name"'},"​")],-1)),i("details",ns,[i("summary",null,[s[138]||(s[138]=i("a",{id:"DimensionalData.AbstractName",href:"#DimensionalData.AbstractName"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractName")],-1)),s[139]||(s[139]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[140]||(s[140]=l('
julia
AbstractName

Abstract supertype for name wrappers.

source

',3))]),i("details",ts,[i("summary",null,[s[141]||(s[141]=i("a",{id:"DimensionalData.Name",href:"#DimensionalData.Name"},[i("span",{class:"jlbinding"},"DimensionalData.Name")],-1)),s[142]||(s[142]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[143]||(s[143]=l(`
julia
Name <: AbstractName
+
+Name(name::Union{Symbol,Name) => Name
+Name(name::NoName) => NoName

Name wrapper. This lets arrays keep symbol names when the array wrapper needs to be isbits, like for use on GPUs. It makes the name a property of the type. It's not necessary to use in normal use, a symbol is probably easier.

source

`,3))]),i("details",ls,[i("summary",null,[s[144]||(s[144]=i("a",{id:"DimensionalData.NoName",href:"#DimensionalData.NoName"},[i("span",{class:"jlbinding"},"DimensionalData.NoName")],-1)),s[145]||(s[145]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[146]||(s[146]=l(`
julia
NoName <: AbstractName
+
+NoName()

NoName specifies an array is not named, and is the default name value for all AbstractDimArrays.

source

`,3))]),s[182]||(s[182]=i("h2",{id:"Internal-interface",tabindex:"-1"},[a("Internal interface "),i("a",{class:"header-anchor",href:"#Internal-interface","aria-label":'Permalink to "Internal interface {#Internal-interface}"'},"​")],-1)),i("details",es,[i("summary",null,[s[147]||(s[147]=i("a",{id:"DimensionalData.DimArrayInterface",href:"#DimensionalData.DimArrayInterface"},[i("span",{class:"jlbinding"},"DimensionalData.DimArrayInterface")],-1)),s[148]||(s[148]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[149]||(s[149]=l('
julia
    DimArrayInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_parent_kw, :rebuild_dims_kw, :rebuild) and optional components (:refdims, :name, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

Optional keys:

source

',11))]),i("details",hs,[i("summary",null,[s[150]||(s[150]=i("a",{id:"DimensionalData.DimStackInterface",href:"#DimensionalData.DimStackInterface"},[i("span",{class:"jlbinding"},"DimensionalData.DimStackInterface")],-1)),s[151]||(s[151]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[152]||(s[152]=l('
julia
    DimStackInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_layerdims, :rebuild_dims_kw, :rebuild_parent_kw, :rebuild_layerdims_kw, :rebuild) and optional components (:refdims, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

Optional keys:

source

',11))]),i("details",ks,[i("summary",null,[s[153]||(s[153]=i("a",{id:"DimensionalData.rebuild_from_arrays",href:"#DimensionalData.rebuild_from_arrays"},[i("span",{class:"jlbinding"},"DimensionalData.rebuild_from_arrays")],-1)),s[154]||(s[154]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[155]||(s[155]=l('
julia
rebuild_from_arrays(s::AbstractDimStack, das::NamedTuple{<:Any,<:Tuple{Vararg{AbstractDimArray}}}; kw...)

Rebuild an AbstractDimStack from a Tuple or NamedTuple of AbstractDimArray and an existing stack.

Keywords

Keywords are simply the fields of the stack object:

source

',6))]),i("details",ps,[i("summary",null,[s[156]||(s[156]=i("a",{id:"DimensionalData.show_main",href:"#DimensionalData.show_main"},[i("span",{class:"jlbinding"},"DimensionalData.show_main")],-1)),s[157]||(s[157]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[158]||(s[158]=l(`
julia
show_main(io::IO, mime, A::AbstractDimArray)
+show_main(io::IO, mime, A::AbstractDimStack)

Interface methods for adding the main part of show

At the least, you likely want to call:

julia
print_top(io, mime, A)

But read the DimensionalData.jl show.jl code for details.

source

`,6))]),i("details",ds,[i("summary",null,[s[159]||(s[159]=i("a",{id:"DimensionalData.show_after",href:"#DimensionalData.show_after"},[i("span",{class:"jlbinding"},"DimensionalData.show_after")],-1)),s[160]||(s[160]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[161]||(s[161]=l(`
julia
show_after(io::IO, mime, A::AbstractDimArray)
+show_after(io::IO, mime, A::AbstractDimStack)

Interface methods for adding additional show text for AbstractDimArray/AbstractDimStack subtypes.

Always include kw to avoid future breaking changes

Additional keywords may be added at any time.

blockwidth is passed in context

julia
blockwidth = get(io, :blockwidth, 10000)

Note - a ANSI box is left unclosed. This method needs to close it, or add more. blockwidth is the maximum length of the inner text.

Most likely you always want to at least close the show blocks with:

julia
print_block_close(io, blockwidth)

But read the DimensionalData.jl show.jl code for details.

source

`,11))]),i("details",rs,[i("summary",null,[s[162]||(s[162]=i("a",{id:"DimensionalData.refdims_title",href:"#DimensionalData.refdims_title"},[i("span",{class:"jlbinding"},"DimensionalData.refdims_title")],-1)),s[163]||(s[163]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[164]||(s[164]=l(`
julia
refdims_title(A::AbstractDimArray)
+refdims_title(refdims::Tuple)
+refdims_title(refdim::Dimension)

Generate a title string based on reference dimension values.

source

`,3))])])}const us=e(d,[["render",os]]);export{ms as __pageData,us as default}; diff --git a/previews/PR872/assets/api_reference.md.CCH-UrsK.lean.js b/previews/PR872/assets/api_reference.md.CCH-UrsK.lean.js new file mode 100644 index 000000000..6c282b2f2 --- /dev/null +++ b/previews/PR872/assets/api_reference.md.CCH-UrsK.lean.js @@ -0,0 +1,474 @@ +import{_ as e,c as h,j as i,a,G as t,a4 as l,B as k,o as p}from"./chunks/framework.ByNLHi2E.js";const ms=JSON.parse('{"title":"API Reference","description":"","frontmatter":{},"headers":[],"relativePath":"api/reference.md","filePath":"api/reference.md","lastUpdated":null}'),d={name:"api/reference.md"},r={class:"jldocstring custom-block",open:""},o={class:"jldocstring custom-block",open:""},E={class:"jldocstring custom-block",open:""},g={class:"jldocstring custom-block",open:""},y={class:"jldocstring custom-block",open:""},c={class:"jldocstring custom-block",open:""},F={class:"jldocstring custom-block",open:""},C={class:"jldocstring custom-block",open:""},m={class:"jldocstring custom-block",open:""},u={class:"jldocstring custom-block",open:""},D={class:"jldocstring custom-block",open:""},b={class:"jldocstring custom-block",open:""},B={class:"jldocstring custom-block",open:""},A={class:"jldocstring custom-block",open:""},f={class:"jldocstring custom-block",open:""},j={class:"jldocstring custom-block",open:""},v={class:"jldocstring custom-block",open:""},w={class:"jldocstring custom-block",open:""},x={class:"jldocstring custom-block",open:""},T={class:"jldocstring custom-block",open:""},L={class:"jldocstring custom-block",open:""},S={class:"jldocstring custom-block",open:""},I={class:"jldocstring custom-block",open:""},P={class:"jldocstring custom-block",open:""},O={class:"jldocstring custom-block",open:""},R={class:"jldocstring custom-block",open:""},N={class:"jldocstring custom-block",open:""},q={class:"jldocstring custom-block",open:""},z={class:"jldocstring custom-block",open:""},X={class:"jldocstring custom-block",open:""},Y={class:"jldocstring custom-block",open:""},G={class:"jldocstring custom-block",open:""},V={class:"jldocstring custom-block",open:""},M={class:"jldocstring custom-block",open:""},U={class:"jldocstring custom-block",open:""},Z={class:"jldocstring custom-block",open:""},K={class:"jldocstring custom-block",open:""},W={class:"jldocstring custom-block",open:""},J={class:"jldocstring custom-block",open:""},$={class:"jldocstring custom-block",open:""},H={class:"jldocstring custom-block",open:""},Q={class:"jldocstring custom-block",open:""},_={class:"jldocstring custom-block",open:""},ss={class:"jldocstring custom-block",open:""},is={class:"jldocstring custom-block",open:""},as={class:"jldocstring custom-block",open:""},ns={class:"jldocstring custom-block",open:""},ts={class:"jldocstring custom-block",open:""},ls={class:"jldocstring custom-block",open:""},es={class:"jldocstring custom-block",open:""},hs={class:"jldocstring custom-block",open:""},ks={class:"jldocstring custom-block",open:""},ps={class:"jldocstring custom-block",open:""},ds={class:"jldocstring custom-block",open:""},rs={class:"jldocstring custom-block",open:""};function os(Es,s,gs,ys,cs,Fs){const n=k("Badge");return p(),h("div",null,[s[165]||(s[165]=i("h1",{id:"API-Reference",tabindex:"-1"},[a("API Reference "),i("a",{class:"header-anchor",href:"#API-Reference","aria-label":'Permalink to "API Reference {#API-Reference}"'},"​")],-1)),s[166]||(s[166]=i("h2",{id:"arrays",tabindex:"-1"},[a("Arrays "),i("a",{class:"header-anchor",href:"#arrays","aria-label":'Permalink to "Arrays"'},"​")],-1)),i("details",r,[i("summary",null,[s[0]||(s[0]=i("a",{id:"DimensionalData.AbstractBasicDimArray",href:"#DimensionalData.AbstractBasicDimArray"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractBasicDimArray")],-1)),s[1]||(s[1]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[2]||(s[2]=l('
julia
AbstractBasicDimArray <: AbstractArray

The abstract supertype for all arrays with a dims method that returns a Tuple of Dimension

Only keyword rebuild is guaranteed to work with AbstractBasicDimArray.

source

',4))]),i("details",o,[i("summary",null,[s[3]||(s[3]=i("a",{id:"DimensionalData.AbstractDimArray",href:"#DimensionalData.AbstractDimArray"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimArray")],-1)),s[4]||(s[4]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[5]||(s[5]=l('
julia
AbstractDimArray <: AbstractBasicArray

Abstract supertype for all "dim" arrays.

These arrays return a Tuple of Dimension from a dims method, and can be rebuilt using rebuild.

parent must return the source array.

They should have metadata, name and refdims methods, although these are optional.

A rebuild method for AbstractDimArray must accept data, dims, refdims, name, metadata arguments.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

source

',8))]),i("details",E,[i("summary",null,[s[6]||(s[6]=i("a",{id:"DimensionalData.DimArray",href:"#DimensionalData.DimArray"},[i("span",{class:"jlbinding"},"DimensionalData.DimArray")],-1)),s[7]||(s[7]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[8]||(s[8]=l(`
julia
DimArray <: AbstractDimArray
+
+DimArray(data, dims, refdims, name, metadata)
+DimArray(data, dims::Tuple; refdims=(), name=NoName(), metadata=NoMetadata())
+DimArray(gen; kw...)

The main concrete subtype of AbstractDimArray.

DimArray maintains and updates its Dimensions through transformations and moves dimensions to reference dimension refdims after reducing operations (like e.g. mean).

Arguments

Indexing can be done with all regular indices, or with Dimensions and/or Selectors.

Indexing AbstractDimArray with non-range AbstractArray has undefined effects on the Dimension index. Use forward-ordered arrays only"

Note that the generator expression syntax requires usage of the semi-colon ; to distinguish generator dimensions from keywords.

Example:

julia
julia> using Dates, DimensionalData
+
+julia> ti = Ti(DateTime(2001):Month(1):DateTime(2001,12));
+
+julia> x = X(10:10:100);
+
+julia> A = DimArray(rand(12,10), (ti, x), name="example");
+
+julia> A[X(Near([12, 35])), Ti(At(DateTime(2001,5)))]
+╭────────────────────────────────────────╮
+2-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴────────────── dims ┐
+ X Sampled{Int64} [10, 40] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────┘
+ 10  0.253849
+ 40  0.637077
+
+julia> A[Near(DateTime(2001, 5, 4)), Between(20, 50)]
+╭────────────────────────────────────────╮
+4-element DimArray{Float64, 1} example │
+├────────────────────────────────────────┴──────────── dims ┐
+ X Sampled{Int64} 20:10:50 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────┘
+ 20  0.774092
+ 30  0.823656
+ 40  0.637077
+ 50  0.692235

Generator expression:

julia
julia> DimArray((x, y) for x in X(1:3), y in Y(1:2); name = :Value)
+╭────────────────────────────────────────────╮
+3×2 DimArray{Tuple{Int64, Int64}, 2} Value │
+├────────────────────────────────────────────┴──── dims ┐
+ X Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Y Sampled{Int64} 1:2 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────┘
+  1        2
+ 1     (1, 1)   (1, 2)
+ 2     (2, 1)   (2, 2)
+ 3     (3, 1)   (3, 2)

source

`,13))]),s[167]||(s[167]=i("p",null,[a("Shorthand "),i("code",null,"AbstractDimArray"),a(" constructors:")],-1)),i("details",g,[i("summary",null,[s[9]||(s[9]=i("a",{id:"Base.fill",href:"#Base.fill"},[i("span",{class:"jlbinding"},"Base.fill")],-1)),s[10]||(s[10]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[11]||(s[11]=l(`
julia
Base.fill(x, dims::Dimension...; kw...) => DimArray
+Base.fill(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray with a fill value of x.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData, Random; Random.seed!(123);
+
+julia> fill(true, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1

source

`,8))]),i("details",y,[i("summary",null,[s[12]||(s[12]=i("a",{id:"Base.rand",href:"#Base.rand"},[i("span",{class:"jlbinding"},"Base.rand")],-1)),s[13]||(s[13]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[14]||(s[14]=l(`
julia
Base.rand(x, dims::Dimension...; kw...) => DimArray
+Base.rand(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray
+Base.rand(r::AbstractRNG, x, dims::Dimension...; kw...) => DimArray

Create a DimArray of random values.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> rand(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 1  0  0  1
+
+julia> rand(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0       150.0       200.0
+  :a    0.443494    0.253849    0.867547
+  :b    0.745673    0.334152    0.0802658
+  :c    0.512083    0.427328    0.311448

source

`,8))]),i("details",c,[i("summary",null,[s[15]||(s[15]=i("a",{id:"Base.zeros",href:"#Base.zeros"},[i("span",{class:"jlbinding"},"Base.zeros")],-1)),s[16]||(s[16]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[17]||(s[17]=l(`
julia
Base.zeros(x, dims::Dimension...; kw...) => DimArray
+Base.zeros(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of zeros.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> zeros(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 0  0  0  0
+ 0  0  0  0
+
+julia> zeros(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    0.0    0.0    0.0
+  :b    0.0    0.0    0.0
+  :c    0.0    0.0    0.0

source

`,8))]),i("details",F,[i("summary",null,[s[18]||(s[18]=i("a",{id:"Base.ones",href:"#Base.ones"},[i("span",{class:"jlbinding"},"Base.ones")],-1)),s[19]||(s[19]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[20]||(s[20]=l(`
julia
Base.ones(x, dims::Dimension...; kw...) => DimArray
+Base.ones(x, dims::Tuple{Vararg{Dimension}}; kw...) => DimArray

Create a DimArray of ones.

There are two kinds of Dimension value acepted:

Keywords are the same as for DimArray.

Example

julia
julia> using DimensionalData
+
+julia> ones(Bool, X(2), Y(4))
+╭───────────────────────╮
+2×4 DimArray{Bool, 2} │
+├───────────────── dims ┤
+ X,  Y
+└───────────────────────┘
+ 1  1  1  1
+ 1  1  1  1
+
+julia> ones(X([:a, :b, :c]), Y(100.0:50:200.0))
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ X Categorical{Symbol} [:a, :b, :c] ForwardOrdered,
+ Y Sampled{Float64} 100.0:50.0:200.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  100.0  150.0  200.0
+  :a    1.0    1.0    1.0
+  :b    1.0    1.0    1.0
+  :c    1.0    1.0    1.0

source

`,8))]),s[168]||(s[168]=i("p",null,"Functions for getting information from objects:",-1)),i("details",C,[i("summary",null,[s[21]||(s[21]=i("a",{id:"DimensionalData.Dimensions.dims",href:"#DimensionalData.Dimensions.dims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dims")],-1)),s[22]||(s[22]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[23]||(s[23]=l(`
julia
dims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+dims(x, dim) => Dimension

Return a tuple of Dimensions for an object, in the order that matches the axes or columns of the underlying data.

dims can be Dimension, Dimension types, or Symbols for Dim{Symbol}.

The default is to return nothing.

source

julia
dims(x, query) => Tuple{Vararg{Dimension}}
+dims(x, query...) => Tuple{Vararg{Dimension}}

Get the dimension(s) matching the type(s) of the query dimension.

Lookup can be an Int or an Dimension, or a tuple containing any combination of either.

Arguments

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(2, 3, 2), (X, Y, Z))
+╭────────────────────────────╮
+2×3×2 DimArray{Float64, 3} │
+├────────────────────── dims ┤
+ X,  Y, ↗ Z
+└────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+
+julia> dims(A, (X, Y))
+( X,  Y)

source

`,13))]),i("details",m,[i("summary",null,[s[24]||(s[24]=i("a",{id:"DimensionalData.Dimensions.refdims",href:"#DimensionalData.Dimensions.refdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.refdims")],-1)),s[25]||(s[25]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[26]||(s[26]=l(`
julia
refdims(x, [dims::Tuple]) => Tuple{Vararg{Dimension}}
+refdims(x, dim) => Dimension

Reference dimensions for an array that is a slice or view of another array with more dimensions.

slicedims(a, dims) returns a tuple containing the current new dimensions and the new reference dimensions. Refdims can be stored in a field or discarded, as it is mostly to give context to plots. Ignoring refdims will simply leave some captions empty.

The default is to return an empty Tuple ().

source

`,5))]),i("details",u,[i("summary",null,[s[27]||(s[27]=i("a",{id:"DimensionalData.Dimensions.Lookups.metadata",href:"#DimensionalData.Dimensions.Lookups.metadata"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.metadata")],-1)),s[28]||(s[28]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[29]||(s[29]=l(`
julia
metadata(x) => (object metadata)
+metadata(x, dims::Tuple)  => Tuple (Dimension metadata)
+metadata(xs::Tuple) => Tuple

Returns the metadata for an object or for the specified dimension(s)

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",D,[i("summary",null,[s[30]||(s[30]=i("a",{id:"DimensionalData.Dimensions.name",href:"#DimensionalData.Dimensions.name"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.name")],-1)),s[31]||(s[31]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[32]||(s[32]=l(`
julia
name(x) => Symbol
+name(xs:Tuple) => NTuple{N,Symbol}
+name(x, dims::Tuple) => NTuple{N,Symbol}
+name(x, dim) => Symbol

Get the name of an array or Dimension, or a tuple of of either as a Symbol.

Second argument dims can be Dimensions, Dimension types, or Symbols for Dim{Symbol}.

source

`,4))]),i("details",b,[i("summary",null,[s[33]||(s[33]=i("a",{id:"DimensionalData.Dimensions.otherdims",href:"#DimensionalData.Dimensions.otherdims"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.otherdims")],-1)),s[34]||(s[34]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[35]||(s[35]=l(`
julia
otherdims(x, query) => Tuple{Vararg{Dimension,N}}

Get the dimensions of an object not in query.

Arguments

A tuple holding the unmatched dimensions is always returned.

Example

julia
julia> using DimensionalData, DimensionalData.Dimensions
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> otherdims(A, X)
+( Y,  Z)
+
+julia> otherdims(A, (Y, Z))
+( X)

source

`,8))]),i("details",B,[i("summary",null,[s[36]||(s[36]=i("a",{id:"DimensionalData.Dimensions.dimnum",href:"#DimensionalData.Dimensions.dimnum"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.dimnum")],-1)),s[37]||(s[37]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[38]||(s[38]=l(`
julia
dimnum(x, query::Tuple) => NTuple{Int}
+dimnum(x, query) => Int

Get the number(s) of Dimension(s) as ordered in the dimensions of an object.

Arguments

The return type will be a Tuple of Int or a single Int, depending on whether query is a Tuple or single Dimension.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> dimnum(A, (Z, X, Y))
+(3, 1, 2)
+
+julia> dimnum(A, Y)
+2

source

`,8))]),i("details",A,[i("summary",null,[s[39]||(s[39]=i("a",{id:"DimensionalData.Dimensions.hasdim",href:"#DimensionalData.Dimensions.hasdim"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.hasdim")],-1)),s[40]||(s[40]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[41]||(s[41]=l(`
julia
hasdim([f], x, query::Tuple) => NTuple{Bool}
+hasdim([f], x, query...) => NTuple{Bool}
+hasdim([f], x, query) => Bool

Check if an object x has dimensions that match or inherit from the query dimensions.

Arguments

Check if an object or tuple contains an Dimension, or a tuple of dimensions.

Example

julia
julia> using DimensionalData
+
+julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
+
+julia> hasdim(A, X)
+true
+
+julia> hasdim(A, (Z, X, Y))
+(true, true, true)
+
+julia> hasdim(A, Ti)
+false

source

`,8))]),s[169]||(s[169]=i("h2",{id:"Multi-array-datasets",tabindex:"-1"},[a("Multi-array datasets "),i("a",{class:"header-anchor",href:"#Multi-array-datasets","aria-label":'Permalink to "Multi-array datasets {#Multi-array-datasets}"'},"​")],-1)),i("details",f,[i("summary",null,[s[42]||(s[42]=i("a",{id:"DimensionalData.AbstractDimStack",href:"#DimensionalData.AbstractDimStack"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimStack")],-1)),s[43]||(s[43]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[44]||(s[44]=l('
julia
AbstractDimStack

Abstract supertype for dimensional stacks.

These have multiple layers of data, but share dimensions.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

This design gives very succinct code when working with many-layered, mixed-dimension objects. But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

See DimStack for the concrete implementation. Most methods are defined on the abstract type.

To extend AbstractDimStack, implement argument and keyword version of rebuild and also rebuild_from_arrays.

The constructor of an AbstractDimStack must accept a NamedTuple.

source

',10))]),i("details",j,[i("summary",null,[s[45]||(s[45]=i("a",{id:"DimensionalData.DimStack",href:"#DimensionalData.DimStack"},[i("span",{class:"jlbinding"},"DimensionalData.DimStack")],-1)),s[46]||(s[46]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[47]||(s[47]=l(`
julia
DimStack <: AbstractDimStack
+
+DimStack(data::AbstractDimArray...; kw...)
+DimStack(data::Tuple{Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple{Keys,Vararg{AbstractDimArray}}; kw...)
+DimStack(data::NamedTuple, dims::DimTuple; metadata=NoMetadata(); kw...)

DimStack holds multiple objects sharing some dimensions, in a NamedTuple.

Notably, their behaviour lies somewhere between a DimArray and a NamedTuple:

julia
function DimStack(A::AbstractDimArray;
+    layersfrom=nothing, name=nothing, metadata=metadata(A), refdims=refdims(A), kw...
+)

For example, here we take the mean over the time dimension for all layers:

julia
mean(mydimstack; dims=Ti)

And this equivalent to:

julia
map(A -> mean(A; dims=Ti), mydimstack)

This design gives succinct code when working with many-layered, mixed-dimension objects.

But it may be jarring initially - the most surprising outcome is that dimstack[1] will return a NamedTuple of values for the first index in all layers, while first(dimstack) will return the first value of the iterator - the DimArray for the first layer.

DimStack can be constructed from multiple AbstractDimArray or a NamedTuple of AbstractArray and a matching dims tuple.

Most Base and Statistics methods that apply to AbstractArray can be used on all layers of the stack simulataneously. The result is a DimStack, or a NamedTuple if methods like mean are used without dims arguments, and return a single non-array value.

Example

julia
julia> using DimensionalData
+
+julia> A = [1.0 2.0 3.0; 4.0 5.0 6.0];
+
+julia> dimz = (X([:a, :b]), Y(10.0:10.0:30.0))
+( X [:a, :b],
+ Y 10.0:10.0:30.0)
+
+julia> da1 = DimArray(1A, dimz; name=:one);
+
+julia> da2 = DimArray(2A, dimz; name=:two);
+
+julia> da3 = DimArray(3A, dimz; name=:three);
+
+julia> s = DimStack(da1, da2, da3);
+
+julia> s[At(:b), At(10.0)]
+(one = 4.0, two = 8.0, three = 12.0)
+
+julia> s[X(At(:a))] isa DimStack
+true

source

`,16))]),s[170]||(s[170]=i("h2",{id:"Dimension-generators",tabindex:"-1"},[a("Dimension generators "),i("a",{class:"header-anchor",href:"#Dimension-generators","aria-label":'Permalink to "Dimension generators {#Dimension-generators}"'},"​")],-1)),i("details",v,[i("summary",null,[s[48]||(s[48]=i("a",{id:"DimensionalData.DimIndices",href:"#DimensionalData.DimIndices"},[i("span",{class:"jlbinding"},"DimensionalData.DimIndices")],-1)),s[49]||(s[49]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[50]||(s[50]=l(`
julia
DimIndices <: AbstractArray
+
+DimIndices(x)
+DimIndices(dims::Tuple)
+DimIndices(dims::Dimension)

Like CartesianIndices, but for Dimensions. Behaves as an Array of Tuple of Dimension(i) for all combinations of the axis indices of dims.

This can be used to view/index into arbitrary dimensions over an array, and is especially useful when combined with otherdims, to iterate over the indices of unknown dimension.

DimIndices can be used directly in getindex like CartesianIndices, and freely mixed with individual Dimensions or tuples of Dimension.

Example

Index a DimArray with DimIndices.

Notice that unlike CartesianIndices, it doesn't matter if the dimensions are not in the same order. Or even if they are not all contained in each.

julia
julia> A = rand(Y(0.0:0.3:1.0), X('a':'f'))
+╭──────────────────────────╮
+4×6 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.3:0.9 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':1:'f' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'b'       'c'        'd'        'e'       'f'
+ 0.0  0.9063    0.253849  0.0991336  0.0320967  0.774092  0.893537
+ 0.3  0.443494  0.334152  0.125287   0.350546   0.183555  0.354868
+ 0.6  0.745673  0.427328  0.692209   0.930332   0.297023  0.131798
+ 0.9  0.512083  0.867547  0.136551   0.959434   0.150155  0.941133
+
+julia> di = DimIndices((X(1:2:4), Y(1:2:4)))
+╭──────────────────────────────────────────────╮
+2×2 DimIndices{Tuple{X{Int64}, Y{Int64}}, 2} │
+├──────────────────────────────────────── dims ┤
+ X 1:2:3,
+ Y 1:2:3
+└──────────────────────────────────────────────┘
+  1                3
+ 1     ( X 1,  Y 1)   ( X 1,  Y 3)
+ 3     ( X 3,  Y 1)   ( X 3,  Y 3)
+
+julia> A[di] # Index A with these indices
+╭──────────────────────────╮
+2×2 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────── dims ┐
+ Y Sampled{Float64} 0.0:0.6:0.6 ForwardOrdered Regular Points,
+ X Categorical{Char} 'a':2:'c' ForwardOrdered
+└─────────────────────────────────────────────────────────────────┘
+   'a'       'c'
+ 0.0  0.9063    0.0991336
+ 0.6  0.745673  0.692209

source

`,9))]),i("details",w,[i("summary",null,[s[51]||(s[51]=i("a",{id:"DimensionalData.DimSelectors",href:"#DimensionalData.DimSelectors"},[i("span",{class:"jlbinding"},"DimensionalData.DimSelectors")],-1)),s[52]||(s[52]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[53]||(s[53]=l(`
julia
DimSelectors <: AbstractArray
+
+DimSelectors(x; selectors, atol...)
+DimSelectors(dims::Tuple; selectors, atol...)
+DimSelectors(dims::Dimension; selectors, atol...)

Like DimIndices, but returns Dimensions holding the chosen Selectors.

Indexing into another AbstractDimArray with DimSelectors is similar to doing an interpolation.

Keywords

Example

Here we can interpolate a DimArray to the lookups of another DimArray using DimSelectors with Near. This is essentially equivalent to nearest neighbour interpolation.

julia
julia> A = rand(X(1.0:3.0:30.0), Y(1.0:5.0:30.0), Ti(1:2));
+
+julia> target = rand(X(1.0:10.0:30.0), Y(1.0:10.0:30.0));
+
+julia> A[DimSelectors(target; selectors=Near), Ti=2]
+╭──────────────────────────╮
+3×3 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ X Sampled{Float64} [1.0, 10.0, 22.0] ForwardOrdered Irregular Points,
+ Y Sampled{Float64} [1.0, 11.0, 21.0] ForwardOrdered Irregular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  1.0        11.0       21.0
+  1.0  0.691162    0.218579   0.539076
+ 10.0  0.0303789   0.420756   0.485687
+ 22.0  0.0967863   0.864856   0.870485

Using At would make sure we only use exact interpolation, while Contains with sampling of Intervals would make sure that each values is taken only from an Interval that is present in the lookups.

source

`,10))]),i("details",x,[i("summary",null,[s[54]||(s[54]=i("a",{id:"DimensionalData.DimPoints",href:"#DimensionalData.DimPoints"},[i("span",{class:"jlbinding"},"DimensionalData.DimPoints")],-1)),s[55]||(s[55]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[56]||(s[56]=l(`
julia
DimPoints <: AbstractArray
+
+DimPoints(x; order)
+DimPoints(dims::Tuple; order)
+DimPoints(dims::Dimension; order)

Like CartesianIndices, but for the point values of the dimension index. Behaves as an Array of Tuple lookup values (whatever they are) for all combinations of the lookup values of dims.

Either a Dimension, a Tuple of Dimension or an object x that defines a dims method can be passed in.

Keywords

source

`,6))]),s[171]||(s[171]=i("h2",{id:"Tables.jl/TableTraits.jl-interface",tabindex:"-1"},[a("Tables.jl/TableTraits.jl interface "),i("a",{class:"header-anchor",href:"#Tables.jl/TableTraits.jl-interface","aria-label":'Permalink to "Tables.jl/TableTraits.jl interface {#Tables.jl/TableTraits.jl-interface}"'},"​")],-1)),i("details",T,[i("summary",null,[s[57]||(s[57]=i("a",{id:"DimensionalData.AbstractDimTable",href:"#DimensionalData.AbstractDimTable"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractDimTable")],-1)),s[58]||(s[58]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[59]||(s[59]=l('
julia
AbstractDimTable <: Tables.AbstractColumns

Abstract supertype for dim tables

source

',3))]),i("details",L,[i("summary",null,[s[60]||(s[60]=i("a",{id:"DimensionalData.DimTable",href:"#DimensionalData.DimTable"},[i("span",{class:"jlbinding"},"DimensionalData.DimTable")],-1)),s[61]||(s[61]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[62]||(s[62]=l(`
julia
DimTable <: AbstractDimTable
+
+DimTable(s::AbstractDimStack; mergedims=nothing)
+DimTable(x::AbstractDimArray; layersfrom=nothing, mergedims=nothing)
+DimTable(xs::Vararg{AbstractDimArray}; layernames=nothing, mergedims=nothing)

Construct a Tables.jl/TableTraits.jl compatible object out of an AbstractDimArray or AbstractDimStack.

This table will have columns for the array data and columns for each Dimension index, as a [DimColumn]. These are lazy, and generated as required.

Column names are converted from the dimension types using DimensionalData.name. This means type Ti becomes the column name :Ti, and Dim{:custom} becomes :custom.

To get dimension columns, you can index with Dimension (X()) or Dimension type (X) as well as the regular Int or Symbol.

Keywords

Example

julia
julia> using DimensionalData, Tables
+
+julia> a = DimArray(ones(16, 16, 3), (X, Y, Dim{:band}))
+╭──────────────────────────────╮
+16×16×3 DimArray{Float64, 3} │
+├──────────────────────── dims ┤
+ X,  Y, ↗ band
+└──────────────────────────────┘
+[:, :, 1]
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0     1.0  1.0  1.0  1.0  1.0  1.0  1.0
+ 1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0
+
+julia>

source

`,10))]),s[172]||(s[172]=i("h1",{id:"Group-by-methods",tabindex:"-1"},[a("Group by methods "),i("a",{class:"header-anchor",href:"#Group-by-methods","aria-label":'Permalink to "Group by methods {#Group-by-methods}"'},"​")],-1)),s[173]||(s[173]=i("p",null,"For transforming DimensionalData objects:",-1)),i("details",S,[i("summary",null,[s[63]||(s[63]=i("a",{id:"DataAPI.groupby",href:"#DataAPI.groupby"},[i("span",{class:"jlbinding"},"DataAPI.groupby")],-1)),s[64]||(s[64]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[65]||(s[65]=l(`
julia
groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Pair...)
+groupby(A::Union{AbstractDimArray,AbstractDimStack}, dims::Dimension{<:Callable}...)

Group A by grouping functions or Bins over multiple dimensions.

Arguments

Return value

A DimGroupByArray is returned, which is basically a regular AbstractDimArray but holding the grouped AbstractDimArray or AbstractDimStack. Its dims hold the sorted values returned by the grouping function/s.

Base julia and package methods work on DimGroupByArray as for any other AbstractArray of AbstractArray.

It is common to broadcast or map a reducing function over groups, such as mean or sum, like mean.(groups) or map(mean, groups). This will return a regular DimArray, or DimGroupByArray if dims keyword is used in the reducing function or it otherwise returns an AbstractDimArray or AbstractDimStack.

Example

Group some data along the time dimension:

julia
julia> using DimensionalData, Dates
+
+julia> A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
+
+julia> groups = groupby(A, Ti => month) # Group by month
+╭───────────────────────────────────────────────────╮
+12-element DimGroupByArray{DimArray{Float64,2},1} │
+├───────────────────────────────────────────────────┴───────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+├─────────────────────────────────────────────────────────── group dims ┤
+ X,  Y, ↗ Ti
+└───────────────────────────────────────────────────────────────────────┘
+  1  191×20×32 DimArray
+  2  191×20×28 DimArray
+  3  191×20×31 DimArray
+
+ 11  191×20×30 DimArray
+ 12  191×20×31 DimArray

And take the mean:

julia
julia> groupmeans = mean.(groups) # Take the monthly mean
+╭─────────────────────────────────╮
+12-element DimArray{Float64, 1} │
+├─────────────────────────────────┴─────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points
+├───────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+└───────────────────────────────────────────────────────────────────────┘
+  1  0.500064
+  2  0.499762
+  3  0.500083
+  4  0.499985
+
+ 10  0.500874
+ 11  0.498704
+ 12  0.50047

Calculate daily anomalies from the monthly mean. Notice we map a broadcast .- rather than -. This is because the size of the arrays to not match after application of mean.

julia
julia> map(.-, groupby(A, Ti=>month), mean.(groupby(A, Ti=>month), dims=Ti));

Or do something else with Y:

julia
julia> groupmeans = mean.(groupby(A, Ti=>month, Y=>isodd))
+╭───────────────────────────╮
+12×2 DimArray{Float64, 2} │
+├───────────────────────────┴────────────────────────────────────── dims ┐
+ Ti Sampled{Int64} [1, 2, , 11, 12] ForwardOrdered Irregular Points,
+ Y  Sampled{Bool} [false, true] ForwardOrdered Irregular Points
+├────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => (:Ti=>month, :Y=>isodd)
+└────────────────────────────────────────────────────────────────────────┘
+  false         true
+  1        0.499594     0.500533
+  2        0.498145     0.501379
+
+ 10        0.501105     0.500644
+ 11        0.498606     0.498801
+ 12        0.501643     0.499298

source

`,18))]),i("details",I,[i("summary",null,[s[66]||(s[66]=i("a",{id:"DimensionalData.DimGroupByArray",href:"#DimensionalData.DimGroupByArray"},[i("span",{class:"jlbinding"},"DimensionalData.DimGroupByArray")],-1)),s[67]||(s[67]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[68]||(s[68]=l('
julia
DimGroupByArray <: AbstractDimArray

DimGroupByArray is essentially a DimArray but holding the results of a groupby operation.

Its dimensions are the sorted results of the grouping functions used in groupby.

This wrapper allows for specialisations on later broadcast or reducing operations, e.g. for chunk reading with DiskArrays.jl, because we know the data originates from a single array.

source

',5))]),i("details",P,[i("summary",null,[s[69]||(s[69]=i("a",{id:"DimensionalData.Bins",href:"#DimensionalData.Bins"},[i("span",{class:"jlbinding"},"DimensionalData.Bins")],-1)),s[70]||(s[70]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[71]||(s[71]=l(`
julia
Bins(f, bins; labels, pad)
+Bins(bins; labels, pad)

Specify bins to reduce groups after applying function f.

Keywords

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

`,7))]),i("details",O,[i("summary",null,[s[72]||(s[72]=i("a",{id:"DimensionalData.ranges",href:"#DimensionalData.ranges"},[i("span",{class:"jlbinding"},"DimensionalData.ranges")],-1)),s[73]||(s[73]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[74]||(s[74]=l('
julia
ranges(A::AbstractRange{<:Integer})

Generate a Vector of UnitRange with length step(A)

source

',3))]),i("details",R,[i("summary",null,[s[75]||(s[75]=i("a",{id:"DimensionalData.intervals",href:"#DimensionalData.intervals"},[i("span",{class:"jlbinding"},"DimensionalData.intervals")],-1)),s[76]||(s[76]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[77]||(s[77]=l('
julia
intervals(A::AbstractRange)

Generate a Vector of UnitRange with length step(A)

source

',3))]),i("details",N,[i("summary",null,[s[78]||(s[78]=i("a",{id:"DimensionalData.CyclicBins",href:"#DimensionalData.CyclicBins"},[i("span",{class:"jlbinding"},"DimensionalData.CyclicBins")],-1)),s[79]||(s[79]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[80]||(s[80]=l('
julia
CyclicBins(f; cycle, start, step, labels)

Cyclic bins to reduce groups after applying function f. Groups can wrap around the cycle. This is used for grouping in seasons, months and hours but can also be used for custom cycles.

Keywords

When the return value of f is a tuple, binning is applied to the last value of the tuples.

source

',7))]),i("details",q,[i("summary",null,[s[81]||(s[81]=i("a",{id:"DimensionalData.seasons",href:"#DimensionalData.seasons"},[i("span",{class:"jlbinding"},"DimensionalData.seasons")],-1)),s[82]||(s[82]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[83]||(s[83]=l('
julia
seasons(; [start=Dates.December, labels])

Generates CyclicBins for three month periods.

Keywords

source

',5))]),i("details",z,[i("summary",null,[s[84]||(s[84]=i("a",{id:"DimensionalData.months",href:"#DimensionalData.months"},[i("span",{class:"jlbinding"},"DimensionalData.months")],-1)),s[85]||(s[85]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[86]||(s[86]=l('
julia
months(step; [start=Dates.January, labels])

Generates CyclicBins for grouping to arbitrary month periods. These can wrap around the end of a year.

Keywords

source

',6))]),i("details",X,[i("summary",null,[s[87]||(s[87]=i("a",{id:"DimensionalData.hours",href:"#DimensionalData.hours"},[i("span",{class:"jlbinding"},"DimensionalData.hours")],-1)),s[88]||(s[88]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[89]||(s[89]=l('
julia
hours(step; [start=0, labels])

Generates CyclicBins for grouping to arbitrary hour periods. These can wrap around the end of the day.

Keywords

source

',6))]),s[174]||(s[174]=i("h1",{id:"Utility-methods",tabindex:"-1"},[a("Utility methods "),i("a",{class:"header-anchor",href:"#Utility-methods","aria-label":'Permalink to "Utility methods {#Utility-methods}"'},"​")],-1)),s[175]||(s[175]=i("p",null,"For transforming DimensionalData objects:",-1)),i("details",Y,[i("summary",null,[s[90]||(s[90]=i("a",{id:"DimensionalData.Dimensions.Lookups.set",href:"#DimensionalData.Dimensions.Lookups.set"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.set")],-1)),s[91]||(s[91]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[92]||(s[92]=l(`
julia
set(x, val)
+set(x, args::Pairs...) => x with updated field/s
+set(x, args...; kw...) => x with updated field/s
+set(x, args::Tuple{Vararg{Dimension}}; kw...) => x with updated field/s
+
+set(dim::Dimension, index::AbstractArray) => Dimension
+set(dim::Dimension, lookup::Lookup) => Dimension
+set(dim::Dimension, lookupcomponent::LookupTrait) => Dimension
+set(dim::Dimension, metadata::AbstractMetadata) => Dimension

Set the properties of an object, its internal data or the traits of its dimensions and lookup index.

As DimensionalData is so strongly typed you do not need to specify what field of a Lookup to set - there is no ambiguity.

To set fields of a Lookup you need to specify the dimension. This can be done using X => val pairs, X = val keyword arguments, or X(val) wrapped arguments.

You can also set the fields of all dimensions by simply passing a single Lookup or lookup trait - it will be set for all dimensions.

When a Dimension or Lookup is passed to set to replace the existing ones, fields that are not set will keep their original values.

Notes:

Changing a lookup index range/vector will also update the step size and order where applicable.

Setting the Order like ForwardOrdered will not reverse the array or dimension to match. Use reverse and reorder to do this.

Examples

julia
julia> using DimensionalData; const DD = DimensionalData;
+
+julia> da = DimArray(zeros(3, 4), (custom=10.0:010.0:30.0, Z=-20:010.0:10.0));
+
+julia> set(da, ones(3, 4))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    1.0    1.0  1.0   1.0
+ 20.0    1.0    1.0  1.0   1.0
+ 30.0    1.0    1.0  1.0   1.0

Change the Dimension wrapper type:

julia
julia> set(da, :Z => Ti, :custom => Z)
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────── dims ┐
+ Z  Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Ti Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

Change the lookup Vector:

julia
julia> set(da, Z => [:a, :b, :c, :d], :custom => [4, 5, 6])
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Int64} [4, 5, 6] ForwardOrdered Regular Points,
+ Z      Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Points
+└─────────────────────────────────────────────────────────────────────────┘
+   :a   :b   :c   :d
+ 4    0.0  0.0  0.0  0.0
+ 5    0.0  0.0  0.0  0.0
+ 6    0.0  0.0  0.0  0.0

Change the Lookup type:

julia
julia> set(da, Z=DD.NoLookup(), custom=DD.Sampled())
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴──────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
+ Z
+└─────────────────────────────────────────────────────────────────────────┘
+ 10.0  0.0  0.0  0.0  0.0
+ 20.0  0.0  0.0  0.0  0.0
+ 30.0  0.0  0.0  0.0  0.0

Change the Sampling trait:

julia
julia> set(da, :custom => DD.Irregular(10, 12), Z => DD.Regular(9.9))
+╭──────────────────────────╮
+3×4 DimArray{Float64, 2} │
+├──────────────────────────┴────────────────────────────────────────── dims ┐
+ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Irregular Points,
+ Z      Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
+└───────────────────────────────────────────────────────────────────────────┘
+  -20.0  -10.0  0.0  10.0
+ 10.0    0.0    0.0  0.0   0.0
+ 20.0    0.0    0.0  0.0   0.0
+ 30.0    0.0    0.0  0.0   0.0

source

`,20))]),i("details",G,[i("summary",null,[s[93]||(s[93]=i("a",{id:"DimensionalData.Dimensions.Lookups.rebuild",href:"#DimensionalData.Dimensions.Lookups.rebuild"},[i("span",{class:"jlbinding"},"DimensionalData.Dimensions.Lookups.rebuild")],-1)),s[94]||(s[94]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[95]||(s[95]=l('
julia
rebuild(x; kw...)

Rebuild an object struct with updated field values.

x can be a AbstractDimArray, a Dimension, Lookup or other custom types.

This is an abstraction that allows inbuilt and custom types to be rebuilt to update their fields, as most objects in DimensionalData.jl are immutable.

Rebuild is mostly automated using ConstructionBase.setproperties. It should only be defined if your object has fields with with different names to DimensionalData objects. Try not to do that!

The arguments required are defined for the abstract type that has a rebuild method.

AbstractBasicDimArray:

AbstractDimArray:

AbstractDimStack:

Dimension:

Lookup:

AbstractDimStack in favour of always using the keyword version. In future the argument version will only be used on Dimension, which only have one argument.

source

',18))]),i("details",V,[i("summary",null,[s[96]||(s[96]=i("a",{id:"DimensionalData.modify",href:"#DimensionalData.modify"},[i("span",{class:"jlbinding"},"DimensionalData.modify")],-1)),s[97]||(s[97]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[98]||(s[98]=l(`
julia
modify(f, A::AbstractDimArray) => AbstractDimArray
+modify(f, s::AbstractDimStack) => AbstractDimStack
+modify(f, dim::Dimension) => Dimension
+modify(f, x, lookupdim::Dimension) => typeof(x)

Modify the parent data, rebuilding the object wrapper without change. f must return a AbstractArray of the same size as the original.

This method is mostly useful as a way of swapping the parent array type of an object.

Example

If we have a previously-defined DimArray, we can copy it to an Nvidia GPU with:

julia
A = DimArray(rand(100, 100), (X, Y))
+modify(CuArray, A)

This also works for all the data layers in a DimStack.

source

`,8))]),i("details",M,[i("summary",null,[s[99]||(s[99]=i("a",{id:"DimensionalData.@d",href:"#DimensionalData.@d"},[i("span",{class:"jlbinding"},"DimensionalData.@d")],-1)),s[100]||(s[100]=a()),t(n,{type:"info",class:"jlObjectType jlMacro",text:"Macro"})]),s[101]||(s[101]=l(`
julia
@d broadcast_expression options

Dimensional broadcast macro extending Base Julia broadcasting to work with missing and permuted dimensions.

Will permute and reshape singleton dimensions so that all AbstractDimArray in a broadcast will broadcast over matching dimensions.

It is possible to pass options as the second argument of the macro to control the behaviour, as a single assignment or as a NamedTuple. Options names must be written explicitly, not passed in namedtuple variable.

Options

All other keywords are passed to DimensionalData.rebuild. This means name, metadata, etc for the returned array can be set here, or for example missingval in Rasters.jl.

Example

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d da1 .* da2
+@d da1 .* da2 .+ 5 dims=(Y, X)
+@d da1 .* da2 .+ 5 (dims=(Y, X), strict=false, name=:testname)

Use with @.

@d does not imply @.. You need to specify each broadcast. But @. can be used with @d as the inner macro.

julia
using DimensionalData
+da1 = ones(X(3))
+da2 = fill(2, Y(4), X(3))
+
+@d @. da1 * da2
+# Use parentheses around \`@.\` if you need to pass options
+@d (@. da1 * da2 .+ 5) dims=(Y, X)

source

`,13))]),i("details",U,[i("summary",null,[s[102]||(s[102]=i("a",{id:"DimensionalData.broadcast_dims",href:"#DimensionalData.broadcast_dims"},[i("span",{class:"jlbinding"},"DimensionalData.broadcast_dims")],-1)),s[103]||(s[103]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[104]||(s[104]=l('
julia
broadcast_dims(f, sources::AbstractDimArray...) => AbstractDimArray

Broadcast function f over the AbstractDimArrays in sources, permuting and reshaping dimensions to match where required. The result will contain all the dimensions in all passed in arrays in the order in which they are found.

Arguments

This is like broadcasting over every slice of A if it is sliced by the dimensions of B.

source

',6))]),i("details",Z,[i("summary",null,[s[105]||(s[105]=i("a",{id:"DimensionalData.broadcast_dims!",href:"#DimensionalData.broadcast_dims!"},[i("span",{class:"jlbinding"},"DimensionalData.broadcast_dims!")],-1)),s[106]||(s[106]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[107]||(s[107]=l('
julia
broadcast_dims!(f, dest::AbstractDimArray, sources::AbstractDimArray...) => dest

Broadcast function f over the AbstractDimArrays in sources, writing to dest. sources are permuting and reshaping dimensions to match where required.

The result will contain all the dimensions in all passed in arrays, in the order in which they are found.

Arguments

source

',6))]),i("details",K,[i("summary",null,[s[108]||(s[108]=i("a",{id:"DimensionalData.mergedims",href:"#DimensionalData.mergedims"},[i("span",{class:"jlbinding"},"DimensionalData.mergedims")],-1)),s[109]||(s[109]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[110]||(s[110]=l(`
julia
mergedims(old_dims => new_dim) => Dimension

Return a dimension new_dim whose indices are a MergedLookup of the indices of old_dims.

source

julia
mergedims(dims, old_dims => new_dim, others::Pair...) => dims_new

If dimensions old_dims, new_dim, etc. are found in dims, then return new dims_new where all dims in old_dims have been combined into a single dim new_dim. The returned dimension will keep only the name of new_dim. Its coords will be a MergedLookup of the coords of the dims in old_dims. New dimensions are always placed at the end of dims_new. others contains other dimension pairs to be merged.

Example

julia
julia> using DimensionalData
+
+julia> ds = (X(0:0.1:0.4), Y(10:10:100), Ti([0, 3, 4]))
+( X  0.0:0.1:0.4,
+ Y  10:10:100,
+↗ Ti [0, 3, 4])
+
+julia> mergedims(ds, (X, Y) => :space)
+( Ti    [0, 3, 4],
+ space MergedLookup{Tuple{Float64, Int64}} [(0.0, 10), (0.1, 10), , (0.3, 100), (0.4, 100)] ( X,  Y))

source

julia
mergedims(A::AbstractDimArray, dim_pairs::Pair...) => AbstractDimArray
+mergedims(A::AbstractDimStack, dim_pairs::Pair...) => AbstractDimStack

Return a new array or stack whose dimensions are the result of mergedims(dims(A), dim_pairs).

source

`,11))]),i("details",W,[i("summary",null,[s[111]||(s[111]=i("a",{id:"DimensionalData.unmergedims",href:"#DimensionalData.unmergedims"},[i("span",{class:"jlbinding"},"DimensionalData.unmergedims")],-1)),s[112]||(s[112]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[113]||(s[113]=l(`
julia
unmergedims(merged_dims::Tuple{Vararg{Dimension}}) => Tuple{Vararg{Dimension}}

Return the unmerged dimensions from a tuple of merged dimensions. However, the order of the original dimensions are not necessarily preserved.

source

julia
unmergedims(A::AbstractDimArray, original_dims) => AbstractDimArray
+unmergedims(A::AbstractDimStack, original_dims) => AbstractDimStack

Return a new array or stack whose dimensions are restored to their original prior to calling mergedims(A, dim_pairs).

source

`,6))]),i("details",J,[i("summary",null,[s[114]||(s[114]=i("a",{id:"DimensionalData.reorder",href:"#DimensionalData.reorder"},[i("span",{class:"jlbinding"},"DimensionalData.reorder")],-1)),s[115]||(s[115]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[116]||(s[116]=l(`
julia
reorder(A::Union{AbstractDimArray,AbstractDimStack}, order::Pair...)
+reorder(A::Union{AbstractDimArray,AbstractDimStack}, order)
+reorder(A::Dimension, order::Order)

Reorder every dims index/array to order, or reorder index for the given dimension(s) in order.

order can be an Order, Dimension => Order pairs. A Tuple of Dimensions or any object that defines dims can be used in which case the dimensions of this object are used for reordering.

If no axis reversal is required the same objects will be returned, without allocation.

Example

julia
using DimensionalData
+
+# Create a DimArray
+da = DimArray([1 2 3; 4 5 6], (X(10:10:20), Y(300:-100:100)))
+
+# Reverse it
+rev = reverse(da, dims=Y)
+
+# using \`da\` in reorder will return it to the original order
+reorder(rev, da) == da
+
+# output
+true

source

`,7))]),s[176]||(s[176]=i("h1",{id:"Global-lookup-strictness-settings",tabindex:"-1"},[a("Global lookup strictness settings "),i("a",{class:"header-anchor",href:"#Global-lookup-strictness-settings","aria-label":'Permalink to "Global lookup strictness settings {#Global-lookup-strictness-settings}"'},"​")],-1)),s[177]||(s[177]=i("p",null,[a("Control how strict DimensionalData when comparing "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Lookup"},[i("code",null,"Lookup")]),a("s before doing broadcasts and matrix multipications.")],-1)),s[178]||(s[178]=i("p",null,[a("In some cases (especially "),i("code",null,"DimVector"),a(" and small "),i("code",null,"DimArray"),a(") checking lookup values match may be too costly compared to the operations. You can turn check the current setting and turn them on or off with these methods.")],-1)),i("details",$,[i("summary",null,[s[117]||(s[117]=i("a",{id:"DimensionalData.strict_broadcast",href:"#DimensionalData.strict_broadcast"},[i("span",{class:"jlbinding"},"DimensionalData.strict_broadcast")],-1)),s[118]||(s[118]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[119]||(s[119]=l('
julia
strict_broadcast()

Check if strict broadcasting checks are active.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

',6))]),i("details",H,[i("summary",null,[s[120]||(s[120]=i("a",{id:"DimensionalData.strict_broadcast!",href:"#DimensionalData.strict_broadcast!"},[i("span",{class:"jlbinding"},"DimensionalData.strict_broadcast!")],-1)),s[121]||(s[121]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[122]||(s[122]=l('
julia
strict_broadcast!(x::Bool)

Set global broadcasting checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before brodcasting, to ensure that dimensions match closely.

An exception to this rule is when dimension are of length one, as these is ignored in broadcasts.

We always check that dimension names match in broadcasts. If you don't want this either, explicitly use parent(A) before broadcasting to remove the AbstractDimArray wrapper completely.

source

',6))]),i("details",Q,[i("summary",null,[s[123]||(s[123]=i("a",{id:"DimensionalData.strict_matmul",href:"#DimensionalData.strict_matmul"},[i("span",{class:"jlbinding"},"DimensionalData.strict_matmul")],-1)),s[124]||(s[124]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[125]||(s[125]=l('
julia
strict_matmul()

Check if strickt broadcasting checks are active.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

',5))]),i("details",_,[i("summary",null,[s[126]||(s[126]=i("a",{id:"DimensionalData.strict_matmul!",href:"#DimensionalData.strict_matmul!"},[i("span",{class:"jlbinding"},"DimensionalData.strict_matmul!")],-1)),s[127]||(s[127]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[128]||(s[128]=l('
julia
strict_matmul!(x::Bool)

Set global matrix multiplication checks to strict, or not for all AbstractDimArray.

With strict=true we check Lookup Order and values before attempting matrix multiplication, to ensure that dimensions match closely.

We always check that dimension names match in matrix multiplication. If you don't want this either, explicitly use parent(A) before multiplying to remove the AbstractDimArray wrapper completely.

source

',5))]),s[179]||(s[179]=i("p",null,"Base methods",-1)),i("details",ss,[i("summary",null,[s[129]||(s[129]=i("a",{id:"Base.cat",href:"#Base.cat"},[i("span",{class:"jlbinding"},"Base.cat")],-1)),s[130]||(s[130]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[131]||(s[131]=l('
julia
Base.cat(stacks::AbstractDimStack...; [keys=keys(stacks[1])], dims)

Concatenate all or a subset of layers for all passed in stacks.

Keywords

Example

Concatenate the :sea_surface_temp and :humidity layers in the time dimension:

julia
cat(stacks...; keys=(:sea_surface_temp, :humidity), dims=Ti)

source

',8))]),i("details",is,[i("summary",null,[s[132]||(s[132]=i("a",{id:"Base.copy!",href:"#Base.copy!"},[i("span",{class:"jlbinding"},"Base.copy!")],-1)),s[133]||(s[133]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[134]||(s[134]=l('
julia
Base.copy!(dst::AbstractArray, src::AbstractDimStack, key::Key)

Copy the stack layer key to dst, which can be any AbstractArray.

Example

Copy the :humidity layer from stack to array.

julia
copy!(array, stack, :humidity)

source

julia
Base.copy!(dst::AbstractDimStack, src::AbstractDimStack, [keys=keys(dst)])

Copy all or a subset of layers from one stack to another.

Example

Copy just the :sea_surface_temp and :humidity layers from src to dst.

julia
copy!(dst::AbstractDimStack, src::AbstractDimStack, keys=(:sea_surface_temp, :humidity))

source

',12))]),i("details",as,[i("summary",null,[s[135]||(s[135]=i("a",{id:"Base.eachslice",href:"#Base.eachslice"},[i("span",{class:"jlbinding"},"Base.eachslice")],-1)),s[136]||(s[136]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[137]||(s[137]=l(`
julia
Base.eachslice(A::AbstractDimArray; dims,drop=true)

Create a generator that iterates over dimensions dims of A, returning arrays that select all the data from the other dimensions in A using views.

The generator has size and axes equivalent to those of the provided dims if drop=true. Otherwise it will have the same dimensionality as the underlying array with inner dimensions having size 1.

source

julia
Base.eachslice(stack::AbstractDimStack; dims, drop=true)

Create a generator that iterates over dimensions dims of stack, returning stacks that select all the data from the other dimensions in stack using views.

The generator has size and axes equivalent to those of the provided dims.

Examples

julia
julia> ds = DimStack((
+           x=DimArray(randn(2, 3, 4), (X([:x1, :x2]), Y(1:3), Z)),
+           y=DimArray(randn(2, 3, 5), (X([:x1, :x2]), Y(1:3), Ti))
+       ));
+
+julia> slices = eachslice(ds; dims=(Z, X));
+
+julia> size(slices)
+(4, 2)
+
+julia> map(dims, axes(slices))
+( Z Base.OneTo(4),
+ X Base.OneTo(2))
+
+julia> first(slices)
+╭──────────────╮
+3×5 DimStack │
+├──────────────┴─────────────────────────────────── dims ┐
+ Y  Sampled{Int64} 1:3 ForwardOrdered Regular Points,
+ Ti
+├──────────────────────────────────────────────── layers ┤
+  :x eltype: Float64 dims: Y size: 3
+  :y eltype: Float64 dims: Y, Ti size: 3×5
+└────────────────────────────────────────────────────────┘

source

`,10))]),s[180]||(s[180]=i("p",null,[a("Most base methods work as expected, using "),i("code",null,"Dimension"),a(" wherever a "),i("code",null,"dims"),a(" keyword is used. They are not all specifically documented here.")],-1)),s[181]||(s[181]=i("h2",{id:"name",tabindex:"-1"},[a("Name "),i("a",{class:"header-anchor",href:"#name","aria-label":'Permalink to "Name"'},"​")],-1)),i("details",ns,[i("summary",null,[s[138]||(s[138]=i("a",{id:"DimensionalData.AbstractName",href:"#DimensionalData.AbstractName"},[i("span",{class:"jlbinding"},"DimensionalData.AbstractName")],-1)),s[139]||(s[139]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[140]||(s[140]=l('
julia
AbstractName

Abstract supertype for name wrappers.

source

',3))]),i("details",ts,[i("summary",null,[s[141]||(s[141]=i("a",{id:"DimensionalData.Name",href:"#DimensionalData.Name"},[i("span",{class:"jlbinding"},"DimensionalData.Name")],-1)),s[142]||(s[142]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[143]||(s[143]=l(`
julia
Name <: AbstractName
+
+Name(name::Union{Symbol,Name) => Name
+Name(name::NoName) => NoName

Name wrapper. This lets arrays keep symbol names when the array wrapper needs to be isbits, like for use on GPUs. It makes the name a property of the type. It's not necessary to use in normal use, a symbol is probably easier.

source

`,3))]),i("details",ls,[i("summary",null,[s[144]||(s[144]=i("a",{id:"DimensionalData.NoName",href:"#DimensionalData.NoName"},[i("span",{class:"jlbinding"},"DimensionalData.NoName")],-1)),s[145]||(s[145]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[146]||(s[146]=l(`
julia
NoName <: AbstractName
+
+NoName()

NoName specifies an array is not named, and is the default name value for all AbstractDimArrays.

source

`,3))]),s[182]||(s[182]=i("h2",{id:"Internal-interface",tabindex:"-1"},[a("Internal interface "),i("a",{class:"header-anchor",href:"#Internal-interface","aria-label":'Permalink to "Internal interface {#Internal-interface}"'},"​")],-1)),i("details",es,[i("summary",null,[s[147]||(s[147]=i("a",{id:"DimensionalData.DimArrayInterface",href:"#DimensionalData.DimArrayInterface"},[i("span",{class:"jlbinding"},"DimensionalData.DimArrayInterface")],-1)),s[148]||(s[148]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[149]||(s[149]=l('
julia
    DimArrayInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_parent_kw, :rebuild_dims_kw, :rebuild) and optional components (:refdims, :name, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

Optional keys:

source

',11))]),i("details",hs,[i("summary",null,[s[150]||(s[150]=i("a",{id:"DimensionalData.DimStackInterface",href:"#DimensionalData.DimStackInterface"},[i("span",{class:"jlbinding"},"DimensionalData.DimStackInterface")],-1)),s[151]||(s[151]=a()),t(n,{type:"info",class:"jlObjectType jlType",text:"Type"})]),s[152]||(s[152]=l('
julia
    DimStackInterface

An Interfaces.jl Interface with mandatory components (:dims, :refdims_base, :ndims, :size, :rebuild_parent, :rebuild_dims, :rebuild_layerdims, :rebuild_dims_kw, :rebuild_parent_kw, :rebuild_layerdims_kw, :rebuild) and optional components (:refdims, :metadata).

This is an early stage of inteface definition, many things are not yet tested.

Pass constructed AbstractDimArrays as test data.

They must not be zero dimensional, and should test at least 1, 2, and 3 dimensions.

Extended help

Mandatory keys:

Optional keys:

source

',11))]),i("details",ks,[i("summary",null,[s[153]||(s[153]=i("a",{id:"DimensionalData.rebuild_from_arrays",href:"#DimensionalData.rebuild_from_arrays"},[i("span",{class:"jlbinding"},"DimensionalData.rebuild_from_arrays")],-1)),s[154]||(s[154]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[155]||(s[155]=l('
julia
rebuild_from_arrays(s::AbstractDimStack, das::NamedTuple{<:Any,<:Tuple{Vararg{AbstractDimArray}}}; kw...)

Rebuild an AbstractDimStack from a Tuple or NamedTuple of AbstractDimArray and an existing stack.

Keywords

Keywords are simply the fields of the stack object:

source

',6))]),i("details",ps,[i("summary",null,[s[156]||(s[156]=i("a",{id:"DimensionalData.show_main",href:"#DimensionalData.show_main"},[i("span",{class:"jlbinding"},"DimensionalData.show_main")],-1)),s[157]||(s[157]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[158]||(s[158]=l(`
julia
show_main(io::IO, mime, A::AbstractDimArray)
+show_main(io::IO, mime, A::AbstractDimStack)

Interface methods for adding the main part of show

At the least, you likely want to call:

julia
print_top(io, mime, A)

But read the DimensionalData.jl show.jl code for details.

source

`,6))]),i("details",ds,[i("summary",null,[s[159]||(s[159]=i("a",{id:"DimensionalData.show_after",href:"#DimensionalData.show_after"},[i("span",{class:"jlbinding"},"DimensionalData.show_after")],-1)),s[160]||(s[160]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[161]||(s[161]=l(`
julia
show_after(io::IO, mime, A::AbstractDimArray)
+show_after(io::IO, mime, A::AbstractDimStack)

Interface methods for adding additional show text for AbstractDimArray/AbstractDimStack subtypes.

Always include kw to avoid future breaking changes

Additional keywords may be added at any time.

blockwidth is passed in context

julia
blockwidth = get(io, :blockwidth, 10000)

Note - a ANSI box is left unclosed. This method needs to close it, or add more. blockwidth is the maximum length of the inner text.

Most likely you always want to at least close the show blocks with:

julia
print_block_close(io, blockwidth)

But read the DimensionalData.jl show.jl code for details.

source

`,11))]),i("details",rs,[i("summary",null,[s[162]||(s[162]=i("a",{id:"DimensionalData.refdims_title",href:"#DimensionalData.refdims_title"},[i("span",{class:"jlbinding"},"DimensionalData.refdims_title")],-1)),s[163]||(s[163]=a()),t(n,{type:"info",class:"jlObjectType jlFunction",text:"Function"})]),s[164]||(s[164]=l(`
julia
refdims_title(A::AbstractDimArray)
+refdims_title(refdims::Tuple)
+refdims_title(refdim::Dimension)

Generate a title string based on reference dimension values.

source

`,3))])])}const us=e(d,[["render",os]]);export{ms as __pageData,us as default}; diff --git a/previews/PR872/assets/app.DzXQX5Hg.js b/previews/PR872/assets/app.DzXQX5Hg.js new file mode 100644 index 000000000..c7d7157bc --- /dev/null +++ b/previews/PR872/assets/app.DzXQX5Hg.js @@ -0,0 +1 @@ +import{R as p}from"./chunks/theme.DYW__FGo.js";import{R as o,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as g,ad as A,ae as v,d as P,u as R,v as w,s as y,af as C,ag as b,ah as E,ai as S}from"./chunks/framework.ByNLHi2E.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=j(),a=_();a.provide(c,e);const t=l(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function _(){return g(T)}function j(){let e=o,a;return A(t=>{let n=v(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{D as createApp}; diff --git a/previews/PR872/assets/basics.md.BXnzUzzq.js b/previews/PR872/assets/basics.md.BXnzUzzq.js new file mode 100644 index 000000000..85bf34fd4 --- /dev/null +++ b/previews/PR872/assets/basics.md.BXnzUzzq.js @@ -0,0 +1,49 @@ +import{_ as i,c as a,a4 as n,o as h}from"./chunks/framework.ByNLHi2E.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"basics.md","filePath":"basics.md","lastUpdated":null}'),l={name:"basics.md"};function k(t,s,e,p,d,r){return h(),a("div",null,s[0]||(s[0]=[n(`

Installation

If you want to use this package you need to install it first. You can do it using the following commands:

julia
julia> ] # ']' should be pressed
+pkg> add DimensionalData

or

julia
julia> using Pkg
+julia> Pkg.add("DimensionalData")

Additionally, it is recommended to check the version that you have installed with the status command.

julia
julia> ]
+pkg> status DimensionalData

Basics

Start using the package:

julia
using DimensionalData

and create your first DimArray

julia
julia> A = DimArray(rand(4,5), (a=1:4, b=1:5))
╭──────────────────────────╮
+4×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+a Sampled{Int64} 1:4 ForwardOrdered Regular Points,
+b Sampled{Int64} 1:5 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1          2         3          4          5
+ 1    0.0333106  0.758203  0.973154   0.0710221  0.868064
+ 2    0.52849    0.571821  0.920182   0.545156   0.106593
+ 3    0.70366    0.539028  0.0670111  0.404635   0.799977
+ 4    0.68316    0.965008  0.0781957  0.130775   0.570914

or

julia
julia> C = DimArray(rand(Int8, 10), (alpha='a':'j',))
╭──────────────────────────────╮
+10-element DimArray{Int8, 1}
+├──────────────────────────────┴───────────────────────────────────────── dims ┐
+alpha Categorical{Char} 'a':1:'j' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+ 'a'  -21
+ 'b'  101
+ 'c'   51
+ 'd'  -35
+ 'e'  106
+ 'f'   88
+ 'g'  -98
+ 'h'   14
+ 'i'  -73
+ 'j'  -54

or something a little bit more complicated:

julia
julia> data = rand(Int8, 2, 10, 3) .|> abs
2×10×3 Array{Int8, 3}:
+[:, :, 1] =
+ 46  76  38  32  120  122  29  57   9  23
+ 78  26   6  50   16  125  11  98  39  95
+
+[:, :, 2] =
+  50  101  46  48  76  17    1   69  11  112
+ 105   15  50  90   5  70  107  120  86   15
+
+[:, :, 3] =
+ 38  59   41  47  41   11  117   82   74   61
+ 76  72  112  89  39  109   86  117  117  120
julia
julia> B = DimArray(data, (channel=[:left, :right], time=1:10, iter=1:3))
╭──────────────────────────╮
+2×10×3 DimArray{Int8, 3}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+channel Categorical{Symbol} [:left, :right] ForwardOrdered,
+time    Sampled{Int64} 1:10 ForwardOrdered Regular Points,
+iter    Sampled{Int64} 1:3 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+       1   2   3   4    5    6   7   8   9  10
+  :left   46  76  38  32  120  122  29  57   9  23
+  :right  78  26   6  50   16  125  11  98  39  95
`,21)]))}const f=i(l,[["render",k]]);export{y as __pageData,f as default}; diff --git a/previews/PR872/assets/basics.md.BXnzUzzq.lean.js b/previews/PR872/assets/basics.md.BXnzUzzq.lean.js new file mode 100644 index 000000000..85bf34fd4 --- /dev/null +++ b/previews/PR872/assets/basics.md.BXnzUzzq.lean.js @@ -0,0 +1,49 @@ +import{_ as i,c as a,a4 as n,o as h}from"./chunks/framework.ByNLHi2E.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"basics.md","filePath":"basics.md","lastUpdated":null}'),l={name:"basics.md"};function k(t,s,e,p,d,r){return h(),a("div",null,s[0]||(s[0]=[n(`

Installation

If you want to use this package you need to install it first. You can do it using the following commands:

julia
julia> ] # ']' should be pressed
+pkg> add DimensionalData

or

julia
julia> using Pkg
+julia> Pkg.add("DimensionalData")

Additionally, it is recommended to check the version that you have installed with the status command.

julia
julia> ]
+pkg> status DimensionalData

Basics

Start using the package:

julia
using DimensionalData

and create your first DimArray

julia
julia> A = DimArray(rand(4,5), (a=1:4, b=1:5))
╭──────────────────────────╮
+4×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+a Sampled{Int64} 1:4 ForwardOrdered Regular Points,
+b Sampled{Int64} 1:5 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1          2         3          4          5
+ 1    0.0333106  0.758203  0.973154   0.0710221  0.868064
+ 2    0.52849    0.571821  0.920182   0.545156   0.106593
+ 3    0.70366    0.539028  0.0670111  0.404635   0.799977
+ 4    0.68316    0.965008  0.0781957  0.130775   0.570914

or

julia
julia> C = DimArray(rand(Int8, 10), (alpha='a':'j',))
╭──────────────────────────────╮
+10-element DimArray{Int8, 1}
+├──────────────────────────────┴───────────────────────────────────────── dims ┐
+alpha Categorical{Char} 'a':1:'j' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+ 'a'  -21
+ 'b'  101
+ 'c'   51
+ 'd'  -35
+ 'e'  106
+ 'f'   88
+ 'g'  -98
+ 'h'   14
+ 'i'  -73
+ 'j'  -54

or something a little bit more complicated:

julia
julia> data = rand(Int8, 2, 10, 3) .|> abs
2×10×3 Array{Int8, 3}:
+[:, :, 1] =
+ 46  76  38  32  120  122  29  57   9  23
+ 78  26   6  50   16  125  11  98  39  95
+
+[:, :, 2] =
+  50  101  46  48  76  17    1   69  11  112
+ 105   15  50  90   5  70  107  120  86   15
+
+[:, :, 3] =
+ 38  59   41  47  41   11  117   82   74   61
+ 76  72  112  89  39  109   86  117  117  120
julia
julia> B = DimArray(data, (channel=[:left, :right], time=1:10, iter=1:3))
╭──────────────────────────╮
+2×10×3 DimArray{Int8, 3}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+channel Categorical{Symbol} [:left, :right] ForwardOrdered,
+time    Sampled{Int64} 1:10 ForwardOrdered Regular Points,
+iter    Sampled{Int64} 1:3 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+       1   2   3   4    5    6   7   8   9  10
+  :left   46  76  38  32  120  122  29  57   9  23
+  :right  78  26   6  50   16  125  11  98  39  95
`,21)]))}const f=i(l,[["render",k]]);export{y as __pageData,f as default}; diff --git a/previews/PR872/assets/broadcasts.md.B0LiXm06.js b/previews/PR872/assets/broadcasts.md.B0LiXm06.js new file mode 100644 index 000000000..52d0b02f0 --- /dev/null +++ b/previews/PR872/assets/broadcasts.md.B0LiXm06.js @@ -0,0 +1,138 @@ +import{_ as i,c as a,a4 as n,o as e}from"./chunks/framework.ByNLHi2E.js";const g=JSON.parse('{"title":"Dimensional broadcasts with @d and broadcast_dims","description":"","frontmatter":{},"headers":[],"relativePath":"broadcasts.md","filePath":"broadcasts.md","lastUpdated":null}'),h={name:"broadcasts.md"};function l(k,s,t,p,d,f){return e(),a("div",null,s[0]||(s[0]=[n(`

Dimensional broadcasts with @d and broadcast_dims

Broadcasting over AbstractDimArray works as usual with Base Julia broadcasts, except that dimensions are checked for compatibility with each other, and that values match. Strict checks can be turned off globally with strict_broadcast!(false). To avoid even dimension name checks, broadcast over parent(dimarray).

The @d macro is a dimension-aware extension to regular dot broadcasting. broadcast_dims is analogous to Base Julia's broadcast.

Because we know the names of the dimensions, there is no ambiguity in which ones we mean to broadcast together. This means we can permute and reshape dims so that broadcasts that would fail with a regular Array just work with a DimArray.

As an added bonus, broadcast_dims even works on DimStacks. Currently, @d does not work on DimStack.

Example: scaling along the time dimension

Define some dimensions:

julia
using DimensionalData
+using Dates
+using Statistics
julia
julia> x, y, t = X(1:100), Y(1:25), Ti(DateTime(2000):Month(1):DateTime(2000, 12))
(X  1:100,
+Y  1:25,
+Ti DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00"))

A DimArray from 1:12 to scale with:

julia
julia> month_scalars = DimArray(month, t)
╭─────────────────────────────────────────╮
+12-element DimArray{Int64, 1} month(Ti)
+├─────────────────────────────────────────┴────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00   1
+ 2000-02-01T00:00:00   2
+ 2000-03-01T00:00:00   3
+ 2000-04-01T00:00:00   4
+ 2000-05-01T00:00:00   5
+ 2000-06-01T00:00:00   6
+ 2000-07-01T00:00:00   7
+ 2000-08-01T00:00:00   8
+ 2000-09-01T00:00:00   9
+ 2000-10-01T00:00:00  10
+ 2000-11-01T00:00:00  11
+ 2000-12-01T00:00:00  12

And a larger DimArray for example data:

julia
julia> data = rand(x, y, t)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

A regular broadcast fails:

julia
julia> scaled = data .* month_scalars
ERROR: DimensionMismatch: arrays could not be broadcast to a common size: a has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(100), X{Sampled{Int64, UnitRange{Int64}, ForwardOrdered, Regular{Int64}, Points, NoMetadata}}([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100])) and b has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(12), Ti{Sampled{DateTime, StepRange{DateTime, Month}, ForwardOrdered, Regular{Month}, Points, NoMetadata}}([DateTime("2000-01-01T00:00:00"), DateTime("2000-02-01T00:00:00"), DateTime("2000-03-01T00:00:00"), DateTime("2000-04-01T00:00:00"), DateTime("2000-05-01T00:00:00"), DateTime("2000-06-01T00:00:00"), DateTime("2000-07-01T00:00:00"), DateTime("2000-08-01T00:00:00"), DateTime("2000-09-01T00:00:00"), DateTime("2000-10-01T00:00:00"), DateTime("2000-11-01T00:00:00"), DateTime("2000-12-01T00:00:00")]))

But @d knows to broadcast over the Ti dimension:

julia
julia> scaled = @d data .* month_scalars
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

We can see the means of each month are scaled by the broadcast :

julia
julia> mean(eachslice(data; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.499674
+ 2000-03-01T00:00:00  0.510863
+ 2000-04-01T00:00:00  0.500818
+ 2000-05-01T00:00:00  0.501124
+ 2000-06-01T00:00:00  0.495215
+ 2000-07-01T00:00:00  0.489497
+ 2000-08-01T00:00:00  0.500495
+ 2000-09-01T00:00:00  0.491479
+ 2000-10-01T00:00:00  0.499282
+ 2000-11-01T00:00:00  0.491202
+ 2000-12-01T00:00:00  0.485718
julia
julia> mean(eachslice(scaled; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.999348
+ 2000-03-01T00:00:00  1.53259
+ 2000-04-01T00:00:00  2.00327
+ 2000-05-01T00:00:00  2.50562
+ 2000-06-01T00:00:00  2.97129
+ 2000-07-01T00:00:00  3.42648
+ 2000-08-01T00:00:00  4.00396
+ 2000-09-01T00:00:00  4.42331
+ 2000-10-01T00:00:00  4.99282
+ 2000-11-01T00:00:00  5.40322
+ 2000-12-01T00:00:00  5.82862

You can also use broadcast_dims the same way:

julia
julia> broadcast_dims(*, data, month_scalars)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

And with the @d macro you can set the dimension order and other properties of the output array, by passing a single assignment or a NamedTuple argument to @d after the broadcast:

julia
julia> @d data .* month_scalars dims=(Ti, X, Y)
╭────────────────────────────────╮
+12×100×25 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415

Or

julia
julia> @d data .* month_scalars (dims=(Ti, X, Y), name=:scaled)
╭───────────────────────────────────────╮
+12×100×25 DimArray{Float64, 3} scaled
+├───────────────────────────────────────┴──────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415
`,36)]))}const y=i(h,[["render",l]]);export{g as __pageData,y as default}; diff --git a/previews/PR872/assets/broadcasts.md.B0LiXm06.lean.js b/previews/PR872/assets/broadcasts.md.B0LiXm06.lean.js new file mode 100644 index 000000000..52d0b02f0 --- /dev/null +++ b/previews/PR872/assets/broadcasts.md.B0LiXm06.lean.js @@ -0,0 +1,138 @@ +import{_ as i,c as a,a4 as n,o as e}from"./chunks/framework.ByNLHi2E.js";const g=JSON.parse('{"title":"Dimensional broadcasts with @d and broadcast_dims","description":"","frontmatter":{},"headers":[],"relativePath":"broadcasts.md","filePath":"broadcasts.md","lastUpdated":null}'),h={name:"broadcasts.md"};function l(k,s,t,p,d,f){return e(),a("div",null,s[0]||(s[0]=[n(`

Dimensional broadcasts with @d and broadcast_dims

Broadcasting over AbstractDimArray works as usual with Base Julia broadcasts, except that dimensions are checked for compatibility with each other, and that values match. Strict checks can be turned off globally with strict_broadcast!(false). To avoid even dimension name checks, broadcast over parent(dimarray).

The @d macro is a dimension-aware extension to regular dot broadcasting. broadcast_dims is analogous to Base Julia's broadcast.

Because we know the names of the dimensions, there is no ambiguity in which ones we mean to broadcast together. This means we can permute and reshape dims so that broadcasts that would fail with a regular Array just work with a DimArray.

As an added bonus, broadcast_dims even works on DimStacks. Currently, @d does not work on DimStack.

Example: scaling along the time dimension

Define some dimensions:

julia
using DimensionalData
+using Dates
+using Statistics
julia
julia> x, y, t = X(1:100), Y(1:25), Ti(DateTime(2000):Month(1):DateTime(2000, 12))
(X  1:100,
+Y  1:25,
+Ti DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00"))

A DimArray from 1:12 to scale with:

julia
julia> month_scalars = DimArray(month, t)
╭─────────────────────────────────────────╮
+12-element DimArray{Int64, 1} month(Ti)
+├─────────────────────────────────────────┴────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00   1
+ 2000-02-01T00:00:00   2
+ 2000-03-01T00:00:00   3
+ 2000-04-01T00:00:00   4
+ 2000-05-01T00:00:00   5
+ 2000-06-01T00:00:00   6
+ 2000-07-01T00:00:00   7
+ 2000-08-01T00:00:00   8
+ 2000-09-01T00:00:00   9
+ 2000-10-01T00:00:00  10
+ 2000-11-01T00:00:00  11
+ 2000-12-01T00:00:00  12

And a larger DimArray for example data:

julia
julia> data = rand(x, y, t)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

A regular broadcast fails:

julia
julia> scaled = data .* month_scalars
ERROR: DimensionMismatch: arrays could not be broadcast to a common size: a has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(100), X{Sampled{Int64, UnitRange{Int64}, ForwardOrdered, Regular{Int64}, Points, NoMetadata}}([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100])) and b has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(12), Ti{Sampled{DateTime, StepRange{DateTime, Month}, ForwardOrdered, Regular{Month}, Points, NoMetadata}}([DateTime("2000-01-01T00:00:00"), DateTime("2000-02-01T00:00:00"), DateTime("2000-03-01T00:00:00"), DateTime("2000-04-01T00:00:00"), DateTime("2000-05-01T00:00:00"), DateTime("2000-06-01T00:00:00"), DateTime("2000-07-01T00:00:00"), DateTime("2000-08-01T00:00:00"), DateTime("2000-09-01T00:00:00"), DateTime("2000-10-01T00:00:00"), DateTime("2000-11-01T00:00:00"), DateTime("2000-12-01T00:00:00")]))

But @d knows to broadcast over the Ti dimension:

julia
julia> scaled = @d data .* month_scalars
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

We can see the means of each month are scaled by the broadcast :

julia
julia> mean(eachslice(data; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.499674
+ 2000-03-01T00:00:00  0.510863
+ 2000-04-01T00:00:00  0.500818
+ 2000-05-01T00:00:00  0.501124
+ 2000-06-01T00:00:00  0.495215
+ 2000-07-01T00:00:00  0.489497
+ 2000-08-01T00:00:00  0.500495
+ 2000-09-01T00:00:00  0.491479
+ 2000-10-01T00:00:00  0.499282
+ 2000-11-01T00:00:00  0.491202
+ 2000-12-01T00:00:00  0.485718
julia
julia> mean(eachslice(scaled; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.999348
+ 2000-03-01T00:00:00  1.53259
+ 2000-04-01T00:00:00  2.00327
+ 2000-05-01T00:00:00  2.50562
+ 2000-06-01T00:00:00  2.97129
+ 2000-07-01T00:00:00  3.42648
+ 2000-08-01T00:00:00  4.00396
+ 2000-09-01T00:00:00  4.42331
+ 2000-10-01T00:00:00  4.99282
+ 2000-11-01T00:00:00  5.40322
+ 2000-12-01T00:00:00  5.82862

You can also use broadcast_dims the same way:

julia
julia> broadcast_dims(*, data, month_scalars)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

And with the @d macro you can set the dimension order and other properties of the output array, by passing a single assignment or a NamedTuple argument to @d after the broadcast:

julia
julia> @d data .* month_scalars dims=(Ti, X, Y)
╭────────────────────────────────╮
+12×100×25 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415

Or

julia
julia> @d data .* month_scalars (dims=(Ti, X, Y), name=:scaled)
╭───────────────────────────────────────╮
+12×100×25 DimArray{Float64, 3} scaled
+├───────────────────────────────────────┴──────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415
`,36)]))}const y=i(h,[["render",l]]);export{g as __pageData,y as default}; diff --git a/previews/PR872/assets/chunks/@localSearchIndexroot.CbrSiIgt.js b/previews/PR872/assets/chunks/@localSearchIndexroot.CbrSiIgt.js new file mode 100644 index 000000000..3f188e334 --- /dev/null +++ b/previews/PR872/assets/chunks/@localSearchIndexroot.CbrSiIgt.js @@ -0,0 +1 @@ +const e='{"documentCount":87,"nextId":87,"documentIds":{"0":"/DimensionalData.jl/previews/PR872/api/dimensions#dimensions","1":"/DimensionalData.jl/previews/PR872/api/dimensions#Exported-methods","2":"/DimensionalData.jl/previews/PR872/api/dimensions#Non-exported-methods","3":"/DimensionalData.jl/previews/PR872/api/dimensions#Primitive-methods","4":"/DimensionalData.jl/previews/PR872/api/lookuparrays#lookups","5":"/DimensionalData.jl/previews/PR872/api/lookuparrays#selectors","6":"/DimensionalData.jl/previews/PR872/api/lookuparrays#Lookup-traits","7":"/DimensionalData.jl/previews/PR872/api/lookuparrays#order","8":"/DimensionalData.jl/previews/PR872/api/lookuparrays#span","9":"/DimensionalData.jl/previews/PR872/api/lookuparrays#sampling","10":"/DimensionalData.jl/previews/PR872/api/lookuparrays#positions","11":"/DimensionalData.jl/previews/PR872/api/lookuparrays#metadata","12":"/DimensionalData.jl/previews/PR872/basics#installation","13":"/DimensionalData.jl/previews/PR872/basics#basics","14":"/DimensionalData.jl/previews/PR872/api/reference#API-Reference","15":"/DimensionalData.jl/previews/PR872/api/reference#arrays","16":"/DimensionalData.jl/previews/PR872/api/reference#Multi-array-datasets","17":"/DimensionalData.jl/previews/PR872/api/reference#Dimension-generators","18":"/DimensionalData.jl/previews/PR872/api/reference#Tables.jl/TableTraits.jl-interface","19":"/DimensionalData.jl/previews/PR872/api/reference#Group-by-methods","20":"/DimensionalData.jl/previews/PR872/api/reference#Utility-methods","21":"/DimensionalData.jl/previews/PR872/api/reference#Global-lookup-strictness-settings","22":"/DimensionalData.jl/previews/PR872/api/reference#name","23":"/DimensionalData.jl/previews/PR872/api/reference#Internal-interface","24":"/DimensionalData.jl/previews/PR872/broadcasts#Dimensional-broadcasts-with-@d-and-broadcast_dims","25":"/DimensionalData.jl/previews/PR872/broadcasts#Example:-scaling-along-the-time-dimension","26":"/DimensionalData.jl/previews/PR872/cuda#CUDA-and-GPUs","27":"/DimensionalData.jl/previews/PR872/cuda#GPU-Integration-goals","28":"/DimensionalData.jl/previews/PR872/dimarrays#dimarrays","29":"/DimensionalData.jl/previews/PR872/dimarrays#Constructing-DimArray-with-arbitrary-dimension-names","30":"/DimensionalData.jl/previews/PR872/dimarrays#Dimensional-Indexing","31":"/DimensionalData.jl/previews/PR872/dimarrays#Begin-End-indexing","32":"/DimensionalData.jl/previews/PR872/dimarrays#dims-keywords","33":"/DimensionalData.jl/previews/PR872/dimarrays#performance","34":"/DimensionalData.jl/previews/PR872/dimensions#dimensions","35":"/DimensionalData.jl/previews/PR872/diskarrays#DiskArrays.jl-compatibility","36":"/DimensionalData.jl/previews/PR872/extending_dd#Extending-DimensionalData","37":"/DimensionalData.jl/previews/PR872/extending_dd#dims","38":"/DimensionalData.jl/previews/PR872/extending_dd#Dimension-axes","39":"/DimensionalData.jl/previews/PR872/extending_dd#dims-keywords","40":"/DimensionalData.jl/previews/PR872/extending_dd#rebuild","41":"/DimensionalData.jl/previews/PR872/extending_dd#format","42":"/DimensionalData.jl/previews/PR872/extending_dd#Interfaces.jl-interface-testing","43":"/DimensionalData.jl/previews/PR872/get_info#getters","44":"/DimensionalData.jl/previews/PR872/get_info#predicates","45":"/DimensionalData.jl/previews/PR872/groupby#Group-By","46":"/DimensionalData.jl/previews/PR872/groupby#Grouping-functions","47":"/DimensionalData.jl/previews/PR872/groupby#Grouping-and-reducing","48":"/DimensionalData.jl/previews/PR872/groupby#binning","49":"/DimensionalData.jl/previews/PR872/groupby#Select-by-Dimension","50":"/DimensionalData.jl/previews/PR872/integrations#integrations","51":"/DimensionalData.jl/previews/PR872/integrations#rasters-jl","52":"/DimensionalData.jl/previews/PR872/integrations#yaxarrays-jl","53":"/DimensionalData.jl/previews/PR872/integrations#climatebase-jl","54":"/DimensionalData.jl/previews/PR872/integrations#arviz-jl","55":"/DimensionalData.jl/previews/PR872/integrations#jump-jl","56":"/DimensionalData.jl/previews/PR872/integrations#cryogrid-jl","57":"/DimensionalData.jl/previews/PR872/integrations#dynamicgrids-jl","58":"/DimensionalData.jl/previews/PR872/integrations#astroimages-jl","59":"/DimensionalData.jl/previews/PR872/integrations#timeseriestools-jl","60":"/DimensionalData.jl/previews/PR872/object_modification#Modifying-Objects","61":"/DimensionalData.jl/previews/PR872/object_modification#modify","62":"/DimensionalData.jl/previews/PR872/object_modification#reorder","63":"/DimensionalData.jl/previews/PR872/object_modification#mergedims","64":"/DimensionalData.jl/previews/PR872/object_modification#rebuild","65":"/DimensionalData.jl/previews/PR872/object_modification#rebuild-magic","66":"/DimensionalData.jl/previews/PR872/object_modification#set","67":"/DimensionalData.jl/previews/PR872/plots#plots-jl","68":"/DimensionalData.jl/previews/PR872/plots#makie-jl","69":"/DimensionalData.jl/previews/PR872/plots#algebraofgraphics-jl","70":"/DimensionalData.jl/previews/PR872/plots#Test-series-plots","71":"/DimensionalData.jl/previews/PR872/plots#default-colormap","72":"/DimensionalData.jl/previews/PR872/plots#A-different-colormap","73":"/DimensionalData.jl/previews/PR872/plots#with-markers","74":"/DimensionalData.jl/previews/PR872/stacks#dimstacks","75":"/DimensionalData.jl/previews/PR872/stacks#NamedTuple-like-indexing","76":"/DimensionalData.jl/previews/PR872/stacks#Array-like-indexing","77":"/DimensionalData.jl/previews/PR872/stacks#Reducing-functions","78":"/DimensionalData.jl/previews/PR872/stacks#performance","79":"/DimensionalData.jl/previews/PR872/selectors#selectors","80":"/DimensionalData.jl/previews/PR872/selectors#lookups","81":"/DimensionalData.jl/previews/PR872/selectors#Lookup-autodetection","82":"/DimensionalData.jl/previews/PR872/selectors#DimSelector","83":"/DimensionalData.jl/previews/PR872/tables#Tables-and-DataFrames","84":"/DimensionalData.jl/previews/PR872/tables#example","85":"/DimensionalData.jl/previews/PR872/tables#Converting-to-DataFrame","86":"/DimensionalData.jl/previews/PR872/tables#Converting-to-CSV"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,303],"1":[2,1,130],"2":[3,1,134],"3":[2,1,346],"4":[1,1,486],"5":[1,1,329],"6":[2,1,38],"7":[1,3,70],"8":[1,3,90],"9":[1,3,63],"10":[1,3,97],"11":[1,1,144],"12":[1,1,40],"13":[1,1,152],"14":[2,1,1],"15":[1,2,357],"16":[3,2,223],"17":[2,2,230],"18":[4,2,112],"19":[3,1,346],"20":[2,1,407],"21":[4,1,234],"22":[1,4,59],"23":[2,4,179],"24":[7,1,90],"25":[6,7,334],"26":[3,1,176],"27":[3,3,110],"28":[1,1,246],"29":[6,1,75],"30":[2,1,256],"31":[3,1,129],"32":[2,1,118],"33":[1,1,87],"34":[1,1,104],"35":[3,1,82],"36":[2,1,68],"37":[1,2,18],"38":[2,3,56],"39":[2,3,47],"40":[1,2,106],"41":[1,2,54],"42":[4,2,91],"43":[1,1,217],"44":[1,1,58],"45":[2,1,21],"46":[2,2,116],"47":[3,2,207],"48":[1,2,287],"49":[3,2,143],"50":[1,1,1],"51":[2,1,69],"52":[2,1,36],"53":[2,1,12],"54":[2,1,18],"55":[2,1,24],"56":[2,1,18],"57":[2,1,34],"58":[2,1,15],"59":[2,1,9],"60":[2,1,39],"61":[1,2,83],"62":[1,2,82],"63":[1,2,23],"64":[1,2,188],"65":[2,3,51],"66":[1,2,135],"67":[2,1,51],"68":[2,1,66],"69":[2,2,165],"70":[3,2,1],"71":[2,5,21],"72":[3,5,32],"73":[2,5,19],"74":[1,1,89],"75":[3,1,171],"76":[3,1,127],"77":[2,1,137],"78":[1,1,69],"79":[1,1,198],"80":[1,1,217],"81":[2,1,157],"82":[1,1,313],"83":[3,1,67],"84":[1,3,115],"85":[3,3,251],"86":[3,3,85]},"averageFieldLength":[2.0229885057471266,1.7471264367816093,127.05747126436782],"storedFields":{"0":{"title":"Dimensions","titles":[]},"1":{"title":"Exported methods","titles":["Dimensions"]},"2":{"title":"Non-exported methods","titles":["Dimensions"]},"3":{"title":"Primitive methods","titles":["Dimensions"]},"4":{"title":"Lookups","titles":[]},"5":{"title":"Selectors","titles":["Lookups"]},"6":{"title":"Lookup traits","titles":["Lookups"]},"7":{"title":"Order","titles":["Lookups","Lookup traits"]},"8":{"title":"Span","titles":["Lookups","Lookup traits"]},"9":{"title":"Sampling","titles":["Lookups","Lookup traits"]},"10":{"title":"Positions","titles":["Lookups","Lookup traits"]},"11":{"title":"Metadata","titles":["Lookups"]},"12":{"title":"Installation","titles":[]},"13":{"title":"Basics","titles":[]},"14":{"title":"API Reference","titles":[]},"15":{"title":"Arrays","titles":["API Reference"]},"16":{"title":"Multi-array datasets","titles":["API Reference"]},"17":{"title":"Dimension generators","titles":["API Reference"]},"18":{"title":"Tables.jl/TableTraits.jl interface","titles":["API Reference"]},"19":{"title":"Group by methods","titles":[]},"20":{"title":"Utility methods","titles":[]},"21":{"title":"Global lookup strictness settings","titles":[]},"22":{"title":"Name","titles":["Global lookup strictness settings"]},"23":{"title":"Internal interface","titles":["Global lookup strictness settings"]},"24":{"title":"Dimensional broadcasts with @d and broadcast_dims","titles":[]},"25":{"title":"Example: scaling along the time dimension","titles":["Dimensional broadcasts with @d and broadcast_dims"]},"26":{"title":"CUDA & GPUs","titles":[]},"27":{"title":"GPU Integration goals","titles":["CUDA & GPUs"]},"28":{"title":"DimArrays","titles":[]},"29":{"title":"Constructing DimArray with arbitrary dimension names","titles":["DimArrays"]},"30":{"title":"Dimensional Indexing","titles":["DimArrays"]},"31":{"title":"Begin End indexing","titles":["DimArrays"]},"32":{"title":"dims keywords","titles":["DimArrays"]},"33":{"title":"Performance","titles":["DimArrays"]},"34":{"title":"Dimensions","titles":[]},"35":{"title":"DiskArrays.jl compatibility","titles":[]},"36":{"title":"Extending DimensionalData","titles":[]},"37":{"title":"dims","titles":["Extending DimensionalData"]},"38":{"title":"Dimension axes","titles":["Extending DimensionalData","dims"]},"39":{"title":"dims keywords","titles":["Extending DimensionalData","dims"]},"40":{"title":"rebuild","titles":["Extending DimensionalData"]},"41":{"title":"format","titles":["Extending DimensionalData"]},"42":{"title":"Interfaces.jl interface testing","titles":["Extending DimensionalData"]},"43":{"title":"Getters","titles":[]},"44":{"title":"Predicates","titles":["Getters"]},"45":{"title":"Group By","titles":[]},"46":{"title":"Grouping functions","titles":["Group By"]},"47":{"title":"Grouping and reducing","titles":["Group By"]},"48":{"title":"Binning","titles":["Group By"]},"49":{"title":"Select by Dimension","titles":["Group By"]},"50":{"title":"Integrations","titles":[]},"51":{"title":"Rasters.jl","titles":["Integrations"]},"52":{"title":"YAXArrays.jl","titles":["Integrations"]},"53":{"title":"ClimateBase.jl","titles":["Integrations"]},"54":{"title":"ArviZ.jl","titles":["Integrations"]},"55":{"title":"JuMP.jl","titles":["Integrations"]},"56":{"title":"CryoGrid.jl","titles":["Integrations"]},"57":{"title":"DynamicGrids.jl","titles":["Integrations"]},"58":{"title":"AstroImages.jl","titles":["Integrations"]},"59":{"title":"TimeseriesTools.jl","titles":["Integrations"]},"60":{"title":"Modifying Objects","titles":[]},"61":{"title":"modify","titles":["Modifying Objects"]},"62":{"title":"reorder","titles":["Modifying Objects"]},"63":{"title":"mergedims","titles":["Modifying Objects"]},"64":{"title":"rebuild","titles":["Modifying Objects"]},"65":{"title":"rebuild magic","titles":["Modifying Objects","rebuild"]},"66":{"title":"set","titles":["Modifying Objects"]},"67":{"title":"Plots.jl","titles":[]},"68":{"title":"Makie.jl","titles":[]},"69":{"title":"AlgebraOfGraphics.jl","titles":["Makie.jl"]},"70":{"title":"Test series plots","titles":["Makie.jl"]},"71":{"title":"default colormap","titles":["Makie.jl","Test series plots"]},"72":{"title":"A different colormap","titles":["Makie.jl","Test series plots"]},"73":{"title":"with markers","titles":["Makie.jl","Test series plots"]},"74":{"title":"DimStacks","titles":[]},"75":{"title":"NamedTuple-like indexing","titles":["DimStacks"]},"76":{"title":"Array-like indexing","titles":["DimStacks"]},"77":{"title":"Reducing functions","titles":["DimStacks"]},"78":{"title":"Performance","titles":["DimStacks"]},"79":{"title":"Selectors","titles":[]},"80":{"title":"Lookups","titles":["Selectors"]},"81":{"title":"Lookup autodetection","titles":["Selectors"]},"82":{"title":"DimSelector","titles":["Selectors"]},"83":{"title":"Tables and DataFrames","titles":[]},"84":{"title":"Example","titles":["Tables and DataFrames"]},"85":{"title":"Converting to DataFrame","titles":["Tables and DataFrames"]},"86":{"title":"Converting to CSV","titles":["Tables and DataFrames"]}},"dirtCount":0,"index":[["q",{"2":{"85":1}}],["quite",{"2":{"64":1}}],["quick",{"2":{"48":1}}],["quarters",{"2":{"19":1}}],["quantity",{"2":{"5":1}}],["quot",{"2":{"3":2,"6":2,"15":4,"34":2,"69":2}}],["query",{"2":{"1":16,"3":6,"15":16,"43":1}}],["─────┼──────────────────────────────────────────────────────────────────────────",{"2":{"85":1}}],["──────┼───────────────────────────────────────────",{"2":{"85":1}}],["──────┼───────────────────────────────────────────────",{"2":{"85":1}}],["──────┼───────────────────────────────────",{"2":{"85":1}}],["⋯",{"2":{"85":6}}],["$st",{"2":{"78":2}}],["$da4",{"2":{"33":2}}],["▄▁▇▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▆▁▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▁▃",{"2":{"33":1}}],["▄▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▆▁▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▁▂",{"2":{"33":1}}],["▂",{"2":{"33":2}}],["█",{"2":{"33":2}}],["▁",{"2":{"33":1}}],["σ",{"2":{"33":4}}],["±",{"2":{"33":8}}],["┊",{"2":{"33":6}}],["~",{"2":{"31":2}}],["└",{"2":{"31":2}}],["└───────────────────────┘",{"2":{"15":4}}],["└─────────────────────────────────┘",{"2":{"29":1,"30":1}}],["└──────────────────────────────────────────────┘",{"2":{"17":1}}],["└────────────────────────────────────────────────────────┘",{"2":{"21":1}}],["└───────────────────────────────────────────────────────────┘",{"2":{"15":1}}],["└────────────────────────────────────────────────────────────────┘",{"2":{"28":11,"29":1,"30":1,"31":2,"33":1,"61":3,"66":1}}],["└────────────────────────────────────────────────────────────────────┘",{"2":{"26":1}}],["└────────────────────────────────────────────────────────────────────────┘",{"2":{"19":1}}],["└─────────────────────────────────────────────────────────────────────────┘",{"2":{"17":1,"20":3}}],["└───────────────────────────────────────────────────────────────────────────┘",{"2":{"20":1}}],["└──────────────────────────────────────────────────────────────────────────────┘",{"2":{"0":3,"5":1,"13":3,"25":8,"28":3,"30":2,"32":2,"43":1,"47":8,"48":11,"49":3,"62":2,"64":2,"66":5,"74":1,"75":8,"76":1,"77":25,"79":15,"80":1,"81":1,"82":5,"84":2,"85":1}}],["└──────────────────────────────────────────────────────────────────────────┘",{"2":{"4":1}}],["└───────────────────────────────────────────────────────────────────────┘",{"2":{"19":2}}],["└─────────────────────────────────────────────────────────────────────┘",{"2":{"15":3,"20":1}}],["└─────────────────────────────────────────────────────────────────┘",{"2":{"17":2}}],["└─────────────────────────────────────────────────────────────┘",{"2":{"5":1,"15":1}}],["└────────────────────────────────────────────────────────────┘",{"2":{"5":2}}],["└───────────────────────────────────────────────────────┘",{"2":{"15":1}}],["└──────────────────────────────┘",{"2":{"18":1}}],["└────────────────────────────┘",{"2":{"1":1,"3":1,"15":1}}],["┌",{"2":{"31":2}}],["⋱",{"2":{"25":5,"26":1,"47":1,"49":2,"82":2,"84":1,"85":1}}],["├────────────────┴───────────────────────────────────────────────────────",{"2":{"85":1}}],["├───────────────────┴────────────────────────────────────────────────────",{"2":{"84":1}}],["├─────────────────────┴──────────────────────────────────────────────────",{"2":{"77":1}}],["├───────────────────────┴──────────────────────────────────",{"2":{"61":2}}],["├─────────────────────────┴──────────────────────────────────────────────",{"2":{"28":2}}],["├─────────────────────────┴────────────────────────────────",{"2":{"28":1}}],["├──────────────────────────┴───────────────────────────────",{"2":{"29":1,"31":2,"33":1}}],["├──────────────────────────┴────────────────────────────────",{"2":{"17":2}}],["├──────────────────────────┴────────────────────────────────────────",{"2":{"17":1,"20":3}}],["├──────────────────────────┴──────────────────────────────────────────",{"2":{"20":1}}],["├──────────────────────────┴─────────────────────────────────────────────",{"2":{"13":2,"30":1,"79":13,"81":1,"82":3}}],["├──────────────────────────┴─────────────────────────────────────────",{"2":{"4":1}}],["├──────────────────────────┴────────────────────────────────────",{"2":{"15":3,"20":1}}],["├────────────────────────────┴───────────────────────────────────────────",{"2":{"32":2,"43":1,"82":1}}],["├──────────────────────────────┴───────────────────────────",{"2":{"28":1}}],["├──────────────────────────────┴─────────────────────────────────────────",{"2":{"13":1}}],["├───────────────────────────────┴──────────────────────────────",{"2":{"26":1}}],["├────────────────────────────────┴",{"2":{"29":1,"30":1}}],["├────────────────────────────────┴─────────────────────────",{"2":{"28":2}}],["├────────────────────────────────┴───────────────────────────────────────",{"2":{"25":4,"47":1,"48":3,"79":2}}],["├──────────────────────────────────┴─────────────────────────────────────",{"2":{"47":3,"75":1}}],["├────────────────────────────────────┴───────────────────────────────────",{"2":{"64":1,"84":1}}],["├────────────────────────────────────┴─────────────────────",{"2":{"28":1}}],["├───────────────────────────────────────┴────────────────────────────────",{"2":{"25":1}}],["├─────────────────────────────────────────┴──────────────────────────────",{"2":{"25":1}}],["├─────────────────────────────────────────────┴──────────────────────────",{"2":{"80":1}}],["├──────────────────────────────────────────────────┴─────────────────────",{"2":{"48":7}}],["├────────────────────────────────────────────────────────",{"2":{"61":1}}],["├───────────────────────────────────────────────────────────",{"2":{"19":1}}],["├──────────────────────────────────────────────────────────────────",{"2":{"47":1,"48":8,"49":1}}],["├──────────────────────────────────────────────────────────────────────",{"2":{"74":1,"75":6,"76":1,"77":25,"84":1,"85":1}}],["├────────────────────────────────────────────────────────────────────",{"2":{"28":1,"47":7,"48":11,"49":2,"64":1}}],["├──────────────────────────────────────────────────────────────",{"2":{"19":1}}],["├─────────────────────────────────────────────────────────────",{"2":{"19":2}}],["├──────────────────────────────────────────────────────┴─────────────────",{"2":{"49":1}}],["├──────────────────────────────────────────────────────",{"2":{"28":5}}],["├───────────────────────────────────────────────────┴────────────────────",{"2":{"47":1,"48":1}}],["├───────────────────────────────────────────────────┴─────────────",{"2":{"19":1}}],["├────────────────────────────────────────────────",{"2":{"21":1}}],["├────────────────────────────────────────────┴────",{"2":{"15":1}}],["├────────────────────────────────────────",{"2":{"17":1}}],["├────────────────────────────────────────┴────────────",{"2":{"15":1}}],["├────────────────────────────────────────┴──────────────",{"2":{"15":1}}],["├─────────────────────────────────┴────────────────────────",{"2":{"28":1}}],["├─────────────────────────────────┴───────────────────────────────",{"2":{"19":1}}],["├─────────────────────────────────┴──────────────────────────────────────",{"2":{"0":1,"25":2,"47":3}}],["├─────────────────────────────┴──────────────────────────────────────────",{"2":{"0":1,"28":1,"30":1,"49":2,"75":1,"82":1}}],["├───────────────────────────┴──────────────────────────────",{"2":{"28":5,"30":1,"66":1}}],["├───────────────────────────┴──────────────────────────────────────",{"2":{"19":1}}],["├───────────────────────────┴────────────────────────────────────────────",{"2":{"0":1,"62":2,"64":1,"66":5}}],["├────────────────────────",{"2":{"18":1}}],["├────────────────────────┴───────────────────────────────────────────────",{"2":{"5":1}}],["├────────────────────────┴──────────────────────────────",{"2":{"5":1}}],["├────────────────────────┴─────────────────────────────",{"2":{"5":2}}],["├──────────────────────",{"2":{"1":1,"3":1,"15":1}}],["├────────────────────┴───────────────────────────────────────────────────",{"2":{"76":1}}],["├─────────────────",{"2":{"15":4}}],["├───────────────┴────────────────────────────────────────────────────────",{"2":{"74":1,"75":6,"77":24}}],["├──────────────┴───────────────────────────────────────────",{"2":{"61":1}}],["├──────────────┴───────────────────────────────────",{"2":{"21":1}}],["╭────────────────╮",{"2":{"85":1}}],["╭───────────────────╮",{"2":{"84":1}}],["╭─────────────────────╮",{"2":{"77":1}}],["╭───────────────────────╮",{"2":{"15":4,"61":2}}],["╭─────────────────────────╮",{"2":{"28":3}}],["╭──────────────────────────╮",{"2":{"4":1,"13":2,"15":3,"17":3,"20":5,"29":1,"30":1,"31":2,"33":1,"79":13,"81":1,"82":3}}],["╭────────────────────────────╮",{"2":{"1":1,"3":1,"15":1,"32":2,"43":1,"82":1}}],["╭───────────────────────────────╮",{"2":{"26":1}}],["╭────────────────────────────────╮",{"2":{"25":4,"28":2,"29":1,"30":1,"47":1,"48":3,"79":2}}],["╭──────────────────────────────────╮",{"2":{"47":3,"75":1}}],["╭────────────────────────────────────╮",{"2":{"28":1,"64":1,"84":1}}],["╭───────────────────────────────────────╮",{"2":{"25":1}}],["╭─────────────────────────────────────────╮",{"2":{"25":1}}],["╭─────────────────────────────────────────────╮",{"2":{"80":1}}],["╭──────────────────────────────────────────────────────╮",{"2":{"49":1}}],["╭───────────────────────────────────────────────────╮",{"2":{"19":1,"47":1,"48":1}}],["╭──────────────────────────────────────────────────╮",{"2":{"48":7}}],["╭──────────────────────────────────────────────╮",{"2":{"17":1}}],["╭────────────────────────────────────────────╮",{"2":{"15":1}}],["╭────────────────────────────────────────╮",{"2":{"15":2}}],["╭─────────────────────────────────╮",{"2":{"0":1,"19":1,"25":2,"28":1,"47":3}}],["╭──────────────────────────────╮",{"2":{"13":1,"18":1,"28":1}}],["╭─────────────────────────────╮",{"2":{"0":1,"28":1,"30":1,"49":2,"75":1,"82":1}}],["╭───────────────────────────╮",{"2":{"0":1,"19":1,"28":5,"30":1,"62":2,"64":1,"66":6}}],["╭────────────────────────╮",{"2":{"5":4}}],["╭────────────────────╮",{"2":{"76":1}}],["╭───────────────╮",{"2":{"74":1,"75":6,"77":24}}],["╭──────────────╮",{"2":{"21":1,"61":1}}],["+",{"2":{"20":3,"28":3,"69":1,"77":2}}],["⋮",{"2":{"19":3,"25":10,"26":1,"46":8,"47":9,"48":3,"49":3,"76":1,"82":3,"84":2,"85":24,"86":1}}],["|>",{"2":{"13":1,"69":3}}],["𝐓",{"2":{"5":2}}],[">=",{"2":{"79":1}}],[">",{"2":{"5":3,"16":1,"48":2,"79":1}}],["9409",{"2":{"85":1}}],["9452913850518949",{"2":{"86":1}}],["945291",{"2":{"85":2}}],["945147",{"2":{"30":1}}],["9447511416331498",{"2":{"86":1}}],["944751",{"2":{"85":2}}],["94412",{"2":{"32":1}}],["943783",{"2":{"82":1}}],["9436941638102098",{"2":{"77":2}}],["943694",{"2":{"75":1}}],["946655",{"2":{"82":1}}],["947461",{"2":{"75":1}}],["948798",{"2":{"47":1}}],["949769",{"2":{"30":1}}],["94",{"2":{"25":1,"85":1}}],["941133",{"2":{"17":1}}],["936495",{"2":{"85":1}}],["934189",{"2":{"84":1}}],["934419",{"2":{"28":1}}],["930699",{"2":{"82":1}}],["930332",{"2":{"17":1}}],["93358",{"2":{"75":1}}],["933212",{"2":{"62":2,"64":2,"66":6}}],["93972",{"2":{"25":2}}],["93",{"2":{"25":1}}],["92977",{"2":{"82":1}}],["929034",{"2":{"81":1}}],["929995",{"2":{"26":1}}],["921567",{"2":{"85":1}}],["921958",{"2":{"84":1,"85":2}}],["921936",{"2":{"25":2}}],["921012",{"2":{"47":1,"49":2}}],["925844",{"2":{"30":1}}],["925624",{"2":{"30":1}}],["92721",{"2":{"26":1}}],["92",{"2":{"25":1,"82":1}}],["920182",{"2":{"13":1}}],["994395",{"2":{"82":1}}],["994",{"2":{"82":4}}],["990114",{"2":{"82":1}}],["993001",{"2":{"82":1}}],["991676",{"2":{"30":2}}],["99118",{"2":{"30":1}}],["999338",{"2":{"49":2}}],["999348",{"2":{"25":1}}],["999534",{"2":{"47":1}}],["999149",{"2":{"47":1}}],["999957",{"2":{"47":1}}],["999774",{"2":{"47":1}}],["999781",{"2":{"47":1}}],["999742",{"2":{"47":1}}],["999253",{"2":{"47":1}}],["999",{"2":{"26":1}}],["998661",{"2":{"82":1}}],["998484",{"2":{"82":1}}],["9982064541308482",{"2":{"76":2,"77":2}}],["998",{"2":{"26":1}}],["997572",{"2":{"28":2}}],["997",{"2":{"26":1}}],["996358",{"2":{"30":1}}],["996398",{"2":{"29":1,"31":2}}],["996807",{"2":{"28":2}}],["996",{"2":{"26":1}}],["995",{"2":{"26":1}}],["995683",{"2":{"26":1}}],["99282",{"2":{"25":1}}],["99",{"2":{"25":6,"47":1,"49":2,"65":2,"79":1,"85":1}}],["97954",{"2":{"85":1}}],["9770663775826343",{"2":{"86":1}}],["977066",{"2":{"85":2}}],["975511",{"2":{"84":1}}],["973",{"2":{"82":1}}],["973154",{"2":{"13":1}}],["97293",{"2":{"81":1}}],["97437",{"2":{"49":2}}],["97406",{"2":{"49":2}}],["97164033242648",{"2":{"77":2}}],["97164",{"2":{"75":1}}],["97132e",{"2":{"47":1}}],["971794",{"2":{"30":1}}],["971252",{"2":{"30":1}}],["97129",{"2":{"25":1}}],["97",{"2":{"25":4,"47":1,"49":1,"85":1}}],["902689",{"2":{"82":1}}],["90203",{"2":{"43":1}}],["904115",{"2":{"82":1}}],["909826",{"2":{"82":1}}],["909533",{"2":{"25":3}}],["905616",{"2":{"81":1}}],["905021",{"2":{"28":3}}],["903705",{"2":{"62":2,"64":2,"66":6}}],["90309",{"2":{"26":1}}],["906601",{"2":{"30":1}}],["906883",{"2":{"28":1}}],["906838",{"2":{"26":1}}],["90645",{"2":{"26":1}}],["9063",{"2":{"17":2}}],["900394",{"2":{"26":1}}],["90",{"2":{"13":1,"25":1}}],["90u",{"2":{"5":1}}],["956417",{"2":{"85":1}}],["953651",{"2":{"82":1}}],["950007",{"2":{"82":1}}],["950338",{"2":{"28":3}}],["954153",{"2":{"82":1}}],["951789",{"2":{"82":1}}],["952489",{"2":{"82":1}}],["95217",{"2":{"26":1}}],["958811",{"2":{"28":2}}],["959434",{"2":{"17":1}}],["95",{"2":{"13":2,"25":1,"85":1}}],["987",{"2":{"82":1}}],["98981",{"2":{"82":1}}],["989952",{"2":{"26":1}}],["98893",{"2":{"85":1}}],["988957",{"2":{"25":3}}],["988013",{"2":{"82":1}}],["980637",{"2":{"49":2}}],["986207",{"2":{"28":1}}],["982762",{"2":{"26":1}}],["98193",{"2":{"26":1}}],["98",{"2":{"13":3,"25":6,"47":1,"49":2,"82":1,"85":1}}],["9675326879984427",{"2":{"86":1}}],["960726",{"2":{"85":1}}],["960677",{"2":{"25":3}}],["963657",{"2":{"84":1}}],["966517",{"2":{"84":1,"85":1}}],["966",{"2":{"82":1}}],["966133",{"2":{"82":2}}],["966475656859458e",{"2":{"77":1}}],["969026",{"2":{"43":1}}],["962808",{"2":{"30":1}}],["968484",{"2":{"30":1}}],["965008",{"2":{"13":1}}],["96",{"2":{"5":2,"25":1,"47":1,"49":1,"82":1,"85":1}}],["917457",{"2":{"32":1}}],["917543",{"2":{"28":1}}],["916702",{"2":{"32":1}}],["9104238640380062",{"2":{"86":1}}],["910424",{"2":{"85":2}}],["910412",{"2":{"25":3}}],["910981",{"2":{"29":2,"31":2}}],["912676",{"2":{"28":1}}],["9155",{"2":{"26":1}}],["91495",{"2":{"26":1}}],["919534",{"2":{"25":3}}],["91",{"2":{"5":2,"25":1}}],["9",{"2":{"4":2,"13":3,"17":2,"20":2,"25":2,"28":18,"43":7,"46":1,"48":18,"75":3,"80":1,"82":6,"84":2,"85":4,"86":2}}],["7×5",{"2":{"81":1}}],["7×3",{"2":{"30":1}}],["798655984630017",{"2":{"86":1}}],["798656",{"2":{"85":2}}],["798621",{"2":{"30":1}}],["798",{"2":{"82":2}}],["791844",{"2":{"81":1}}],["7938317326707394",{"2":{"86":1}}],["793832",{"2":{"85":2}}],["79388",{"2":{"25":2}}],["793532",{"2":{"75":1}}],["799964",{"2":{"43":1}}],["799977",{"2":{"13":1}}],["796812",{"2":{"28":1}}],["797168",{"2":{"28":3}}],["79785",{"2":{"25":2}}],["792885",{"2":{"28":2}}],["79",{"2":{"25":1}}],["777408",{"2":{"82":1}}],["771237",{"2":{"81":1}}],["772277",{"2":{"79":4}}],["775495",{"2":{"82":1}}],["775634",{"2":{"75":1}}],["775377",{"2":{"28":3}}],["778122",{"2":{"75":1}}],["778222",{"2":{"26":1}}],["776593",{"2":{"30":1}}],["770316",{"2":{"29":1,"31":2}}],["77",{"2":{"25":1}}],["774131",{"2":{"25":3}}],["774092",{"2":{"15":1,"17":1}}],["712342",{"2":{"82":1}}],["713941",{"2":{"85":1}}],["713814",{"2":{"85":1}}],["713457",{"2":{"82":1}}],["71372",{"2":{"81":1}}],["7130893612876014",{"2":{"76":2}}],["711133",{"2":{"79":3}}],["7177678881661339",{"2":{"76":1}}],["717768",{"2":{"75":1}}],["7140841681506571",{"2":{"76":1}}],["714084",{"2":{"75":1}}],["716257",{"2":{"29":1,"31":2}}],["719974",{"2":{"26":1}}],["71",{"2":{"25":1}}],["752331",{"2":{"82":1}}],["75275",{"2":{"48":4}}],["751498",{"2":{"82":2}}],["75622",{"2":{"49":1}}],["757228",{"2":{"47":1}}],["754",{"2":{"33":1}}],["754468",{"2":{"30":2}}],["750146",{"2":{"28":1}}],["755939",{"2":{"84":1}}],["755958",{"2":{"28":3}}],["755722",{"2":{"43":1}}],["75568",{"2":{"26":1}}],["758149",{"2":{"81":1}}],["758865",{"2":{"32":1}}],["75847",{"2":{"26":1}}],["758203",{"2":{"13":1}}],["75",{"2":{"25":1}}],["759047",{"2":{"25":3}}],["72454",{"2":{"82":1}}],["724709",{"2":{"29":1,"31":2}}],["727464",{"2":{"82":1}}],["728852",{"2":{"82":1}}],["72217",{"2":{"81":1}}],["726244382496386",{"2":{"77":2}}],["721101",{"2":{"25":3}}],["72",{"2":{"13":1,"25":1,"48":1}}],["743407",{"2":{"84":1}}],["747615",{"2":{"82":1}}],["747695",{"2":{"82":1}}],["740107",{"2":{"82":1}}],["748041",{"2":{"79":3}}],["748725",{"2":{"43":1}}],["74172",{"2":{"84":1,"85":1}}],["7410056618197303",{"2":{"76":1,"78":2}}],["741593",{"2":{"28":3}}],["744107",{"2":{"82":1}}],["744517",{"2":{"62":2,"64":2,"66":6}}],["74428",{"2":{"30":1}}],["742732",{"2":{"43":1}}],["749553",{"2":{"75":1}}],["749573",{"2":{"30":1}}],["749829",{"2":{"25":3}}],["746465",{"2":{"25":3}}],["745673",{"2":{"15":1,"17":2}}],["74",{"2":{"13":1,"25":1}}],["707314",{"2":{"82":1}}],["707692",{"2":{"28":3}}],["7057009741792366",{"2":{"76":1}}],["705701",{"2":{"75":1}}],["705582",{"2":{"30":2}}],["7044663405368152",{"2":{"86":1}}],["704466",{"2":{"85":2}}],["70488",{"2":{"32":1}}],["704613",{"2":{"25":3}}],["708081",{"2":{"30":2}}],["700218",{"2":{"28":1}}],["700389",{"2":{"28":2}}],["702845",{"2":{"43":1}}],["702956",{"2":{"30":1}}],["702944",{"2":{"26":1}}],["702787",{"2":{"25":3}}],["706165",{"2":{"25":3}}],["70",{"2":{"13":1,"25":1,"81":3}}],["70366",{"2":{"13":1}}],["789667",{"2":{"85":1}}],["789816",{"2":{"82":1}}],["789198",{"2":{"29":1,"31":2}}],["780424",{"2":{"75":1}}],["78028",{"2":{"26":1}}],["7814968833366662",{"2":{"76":1}}],["781497",{"2":{"75":1}}],["78136e",{"2":{"47":1}}],["784693",{"2":{"30":1}}],["783195",{"2":{"30":1}}],["7826",{"2":{"28":1}}],["788358",{"2":{"25":3}}],["78",{"2":{"13":2,"25":1}}],["764895",{"2":{"79":4}}],["76448",{"2":{"75":1}}],["764613",{"2":{"28":1}}],["76668",{"2":{"32":1}}],["769884",{"2":{"30":2}}],["762199",{"2":{"30":1}}],["762722",{"2":{"30":1}}],["76511",{"2":{"85":1}}],["765808",{"2":{"30":1}}],["765773",{"2":{"28":2}}],["768719",{"2":{"82":1}}],["7684883626668314",{"2":{"79":1}}],["768488",{"2":{"79":12}}],["768639",{"2":{"30":1}}],["768325",{"2":{"28":1}}],["760205",{"2":{"28":1}}],["761347",{"2":{"28":2}}],["76",{"2":{"13":4,"25":1}}],["739936",{"2":{"85":1}}],["738445",{"2":{"85":1}}],["735973",{"2":{"75":1}}],["73591",{"2":{"26":1}}],["730",{"2":{"47":2}}],["734452",{"2":{"43":1}}],["737979",{"2":{"28":2}}],["73623",{"2":{"26":1}}],["73",{"2":{"13":1,"25":1,"48":1}}],["7",{"2":{"4":4,"5":5,"13":1,"25":4,"28":120,"30":6,"43":9,"46":10,"48":5,"75":3,"77":20,"80":1,"81":1,"84":1,"85":12,"86":2}}],["rows",{"2":{"85":4}}],["row",{"2":{"85":4}}],["rot180",{"2":{"77":2}}],["rotr90",{"2":{"77":2}}],["rotl90",{"2":{"77":2}}],["rotated",{"2":{"4":1,"77":1}}],["rotations",{"2":{"3":1}}],["runtime",{"2":{"33":1}}],["running",{"2":{"26":1,"48":1}}],["rule",{"2":{"21":2}}],["r",{"2":{"15":2,"69":1,"85":1}}],["right",{"2":{"13":3,"66":2,"68":2}}],["rtol=nothing",{"2":{"5":1}}],["rainclouds",{"2":{"68":1}}],["raw",{"2":{"48":1}}],["rarely",{"2":{"35":1}}],["ram",{"2":{"35":1}}],["rasterization",{"2":{"51":1}}],["rasterize",{"2":{"5":1}}],["raster",{"2":{"36":1,"51":3}}],["rasterstack",{"2":{"36":1,"51":1}}],["rasters",{"0":{"51":1},"2":{"4":3,"20":1,"35":1,"36":1,"51":2,"52":1}}],["randn",{"2":{"21":2}}],["random",{"2":{"15":3}}],["rand",{"2":{"4":3,"13":3,"15":8,"17":3,"19":1,"20":1,"25":1,"26":1,"28":6,"29":1,"30":1,"32":1,"42":4,"43":1,"47":1,"62":1,"68":1,"69":1,"71":1,"75":3,"79":1,"81":1,"82":3,"84":2}}],["ranges",{"2":{"5":1,"19":1,"31":1,"48":6,"79":3,"81":4}}],["range",{"2":{"4":2,"5":4,"15":2,"20":1,"33":2,"41":1,"46":2,"48":1,"51":1,"79":1,"81":1}}],["rather",{"2":{"3":1,"4":2,"5":1,"9":1,"19":2,"27":1,"60":1,"62":1}}],["red",{"2":{"72":1,"73":1}}],["reductions",{"2":{"15":1,"35":1}}],["reducing",{"0":{"47":1,"77":1},"2":{"15":1,"19":3}}],["reduce",{"2":{"3":1,"19":2,"32":1,"77":2}}],["reduced",{"2":{"3":1}}],["reducedims",{"2":{"3":1}}],["receive",{"2":{"40":1}}],["reconstruction",{"2":{"15":1,"40":1}}],["recommended",{"2":{"12":1}}],["rev",{"2":{"20":2}}],["reversal",{"2":{"20":1}}],["reverseordered",{"2":{"4":5,"7":3,"43":15,"44":14,"48":1,"62":5,"77":8,"81":2,"82":2}}],["reverse",{"2":{"4":1,"7":1,"20":4,"32":1,"43":1,"62":1,"77":1}}],["reversed",{"2":{"4":1}}],["reordering",{"2":{"20":1}}],["reorder",{"0":{"62":1},"2":{"20":8,"62":4,"68":1}}],["relationships",{"2":{"35":1}}],["related",{"2":{"27":1}}],["relying",{"2":{"19":1}}],["reliable",{"2":{"4":1}}],["reasons",{"2":{"51":1}}],["reason",{"2":{"27":1,"51":1}}],["readlines",{"2":{"86":1}}],["read",{"2":{"23":2}}],["reading",{"2":{"19":1}}],["real",{"2":{"4":1}}],["really",{"2":{"3":1,"65":1}}],["remove",{"2":{"21":4}}],["removed",{"2":{"5":1}}],["removing",{"2":{"16":1}}],["restrict",{"2":{"69":1}}],["restored",{"2":{"20":1}}],["reshaping",{"2":{"20":2}}],["reshape",{"2":{"20":1,"24":1,"63":1}}],["resolve",{"2":{"16":1,"31":1}}],["result",{"2":{"5":1,"16":1,"20":3,"26":1,"31":1,"83":1}}],["results",{"2":{"5":2,"19":2,"67":1}}],["rebuilt",{"2":{"15":1,"20":1,"60":1}}],["rebuilding",{"2":{"20":1}}],["rebuild",{"0":{"40":1,"64":1,"65":1},"1":{"65":1},"2":{"4":2,"15":3,"16":2,"20":6,"23":54,"27":1,"36":1,"40":7,"42":40,"64":6,"65":2,"66":1}}],["requires",{"2":{"15":1,"39":1,"48":1}}],["require",{"2":{"9":1}}],["required",{"2":{"0":1,"3":1,"11":1,"18":1,"20":4,"27":1}}],["repl",{"2":{"80":1}}],["replaces",{"2":{"3":1,"27":1}}],["replaced",{"2":{"3":1,"8":1}}],["replace",{"2":{"3":2,"20":1,"61":1}}],["represents",{"2":{"38":1,"74":1}}],["representing",{"2":{"4":1}}],["represent",{"2":{"4":1,"10":1}}],["refdim",{"2":{"23":1}}],["refdims=refdims",{"2":{"16":1}}],["refdims=",{"2":{"15":1}}],["refdims",{"2":{"15":9,"20":2,"23":21,"40":1,"42":12,"64":2}}],["refence",{"2":{"15":1}}],["reference",{"0":{"14":1},"1":{"15":1,"16":1,"17":1,"18":1},"2":{"3":2,"15":3,"23":1,"36":1}}],["refer",{"2":{"0":1,"9":1}}],["ref",{"2":{"3":1}}],["rewraps",{"2":{"3":1}}],["retrieved",{"2":{"34":1}}],["retrieves",{"2":{"5":1,"43":1}}],["retrieve",{"2":{"2":1,"5":1,"43":1}}],["returning",{"2":{"3":1,"11":1,"21":2,"77":1,"78":1}}],["returns",{"2":{"2":1,"3":3,"5":1,"11":2,"15":3,"16":2,"17":1,"19":1,"23":2,"42":2,"43":1,"46":1,"48":3,"76":1}}],["returned",{"2":{"1":1,"3":2,"4":1,"11":1,"15":1,"19":2,"20":4,"34":1,"38":1,"44":1}}],["return",{"2":{"1":3,"3":3,"4":8,"5":2,"15":6,"16":7,"19":7,"20":7,"37":1,"38":1,"39":2,"43":1,"44":1,"76":2}}],["regular",{"2":{"0":5,"2":1,"4":7,"5":4,"8":4,"10":2,"13":4,"15":7,"17":2,"18":1,"19":2,"20":9,"21":1,"24":2,"25":21,"26":3,"28":6,"30":2,"36":1,"39":1,"43":30,"44":28,"47":2,"48":1,"49":5,"62":2,"64":2,"66":5,"74":2,"75":15,"76":1,"77":49,"79":7,"80":3,"81":3,"82":6,"84":4,"85":2}}],["k",{"2":{"85":1}}],["kind",{"2":{"46":1}}],["kinds",{"2":{"15":4,"28":1}}],["knowing",{"2":{"30":1}}],["knows",{"2":{"25":1,"36":1}}],["know",{"2":{"19":1,"24":1,"64":1,"65":1}}],["known",{"2":{"4":5,"10":1,"30":1}}],["kw",{"2":{"3":5,"4":1,"5":1,"11":1,"15":12,"16":5,"20":3,"23":17,"40":2,"42":10,"64":2}}],["kernels",{"2":{"27":1}}],["kernelabstractions",{"2":{"27":1}}],["kernel",{"2":{"27":1}}],["keeping",{"2":{"3":1}}],["keep",{"2":{"3":1,"20":2,"22":1,"48":1}}],["key",{"2":{"21":3,"36":1}}],["keys=",{"2":{"21":2}}],["keys=keys",{"2":{"21":2}}],["keys",{"2":{"0":1,"11":2,"16":1,"21":2,"23":4,"48":1,"75":2}}],["keywords",{"0":{"32":1,"39":1},"2":{"3":2,"4":2,"15":5,"17":2,"18":1,"19":5,"20":1,"21":1,"23":5,"29":1,"31":1,"32":1,"40":1,"41":1,"42":2,"64":4,"65":1}}],["keyword",{"2":{"0":1,"4":3,"5":1,"15":1,"16":1,"19":1,"20":2,"21":1,"39":1,"40":2,"65":1}}],["kept",{"2":{"0":1,"3":1}}],["┤",{"2":{"1":1,"3":1,"15":5,"17":1,"18":1,"19":4,"21":1,"28":6,"47":8,"48":19,"49":3,"61":1,"64":1,"74":1,"75":6,"76":1,"77":25,"84":1,"85":1}}],["u",{"2":{"85":1}}],["utility",{"0":{"20":1}}],["updating",{"2":{"40":1}}],["update",{"2":{"20":3}}],["updates",{"2":{"15":1,"23":6,"42":6}}],["updated",{"2":{"3":2,"20":4,"23":6,"42":6}}],["upperbound",{"2":{"8":1}}],["upper",{"2":{"5":1,"8":1}}],["unrolled",{"2":{"83":1}}],["unnamed",{"2":{"69":1}}],["unambiguous",{"2":{"43":1}}],["unaltered",{"2":{"4":1}}],["unaligned",{"2":{"4":4}}],["unclosed",{"2":{"23":1}}],["unmerged",{"2":{"20":1}}],["unmergedims",{"2":{"20":2}}],["unmatched",{"2":{"1":1,"15":1}}],["unknown",{"2":{"17":1,"81":1}}],["underneath",{"2":{"65":1}}],["underlying",{"2":{"1":1,"15":1,"21":1}}],["undefined",{"2":{"4":1,"15":2,"19":1,"41":1}}],["unless",{"2":{"4":4,"5":1,"31":1,"81":1,"83":1}}],["unlike",{"2":{"3":2,"11":1,"17":1,"66":1}}],["unordered",{"2":{"4":6,"7":3,"48":3,"66":2,"80":2,"81":2}}],["unitrange",{"2":{"19":2,"25":1,"48":3,"79":2}}],["unit",{"2":{"11":2}}],["unitful",{"2":{"5":3}}],["units",{"2":{"2":1,"11":5}}],["unionall",{"2":{"3":1}}],["union",{"2":{"2":1,"3":1,"4":5,"5":1,"11":3,"19":2,"20":2,"22":1}}],["usual",{"2":{"24":1}}],["usually",{"2":{"0":1,"3":2,"15":1,"39":1,"46":1,"66":1,"78":1,"79":1,"80":2}}],["usage",{"2":{"15":1}}],["us",{"2":{"11":1,"30":1,"34":1,"66":1}}],["user",{"2":{"35":1}}],["uses",{"2":{"4":1,"8":1,"27":2,"34":1,"56":1,"59":1,"64":1}}],["useful",{"2":{"1":1,"3":3,"4":6,"17":1,"20":1,"43":1,"61":1,"64":1}}],["use",{"2":{"0":3,"3":1,"4":2,"5":3,"7":1,"11":1,"12":1,"15":2,"16":3,"17":1,"20":3,"21":4,"22":3,"25":1,"26":1,"29":1,"30":1,"31":1,"40":1,"44":1,"47":1,"48":5,"64":1,"69":3,"79":1,"82":1}}],["used",{"2":{"0":7,"2":1,"3":4,"4":7,"5":6,"6":1,"8":1,"9":1,"10":7,"16":2,"17":4,"19":9,"20":4,"21":1,"30":2,"31":2,"32":1,"34":1,"35":1,"40":3,"43":1,"46":1,"47":1,"57":1,"64":1,"68":1,"69":1,"80":1,"81":3}}],["using",{"2":{"0":2,"1":4,"3":1,"4":5,"5":3,"11":2,"12":2,"13":1,"15":10,"16":1,"17":2,"18":2,"19":1,"20":6,"21":3,"25":2,"27":1,"28":1,"29":1,"31":1,"32":1,"33":1,"34":1,"40":2,"42":1,"43":3,"46":2,"47":1,"61":1,"62":1,"69":1,"74":1,"78":1,"79":2,"80":1,"84":2,"85":2}}],["v",{"2":{"85":1}}],["visual",{"2":{"69":3}}],["visualizations",{"2":{"69":2}}],["visualise",{"2":{"58":1}}],["via",{"2":{"35":2}}],["views",{"2":{"21":2,"56":1}}],["view",{"2":{"3":1,"15":1,"16":2,"17":1,"31":1}}],["vec",{"2":{"69":2}}],["vectors",{"2":{"3":1,"30":1,"79":3}}],["vector",{"2":{"0":1,"4":2,"5":6,"16":1,"19":11,"20":2,"30":2,"43":2,"46":8,"48":4,"76":2,"79":5,"80":3,"86":1}}],["very",{"2":{"16":2,"52":1,"64":1,"69":1,"78":1}}],["versions",{"2":{"40":2}}],["version",{"2":{"12":1,"16":1,"20":2,"40":1,"64":1,"65":1}}],["var",{"2":{"32":1,"77":2}}],["variable",{"2":{"20":1,"60":1,"68":1,"69":1}}],["vararg",{"2":{"1":4,"2":3,"3":6,"4":5,"15":10,"16":2,"18":1,"20":3,"23":1,"30":1}}],["valtype",{"2":{"3":1}}],["valid",{"2":{"3":1}}],["val",{"2":{"2":2,"3":1,"4":4,"11":1,"20":5,"34":2,"39":2,"43":3,"64":4}}],["val=",{"2":{"0":5}}],["value",{"2":{"0":1,"3":2,"4":2,"5":15,"8":1,"9":1,"10":1,"15":7,"16":3,"17":1,"19":7,"22":1,"28":1,"29":1,"34":1,"43":2,"69":1,"78":1,"79":4}}],["values=autovalues",{"2":{"4":1}}],["values",{"2":{"0":1,"2":1,"3":4,"4":15,"5":17,"7":1,"9":2,"10":6,"15":1,"16":3,"17":5,"19":8,"20":3,"21":5,"23":1,"24":1,"38":1,"40":1,"46":1,"48":5,"60":1,"63":1,"64":1,"66":2,"67":1,"76":2,"79":5,"80":5,"81":3,"82":1}}],["nanoseconds",{"2":{"78":1}}],["names",{"0":{"29":1},"2":{"18":1,"20":2,"21":4,"22":1,"24":1,"29":1,"34":2,"43":1,"79":1,"80":1}}],["name=nothing",{"2":{"16":1}}],["name=noname",{"2":{"15":1}}],["name=",{"2":{"15":1,"16":3,"20":1,"25":1,"28":6,"64":1,"84":1}}],["name2dim",{"2":{"3":3}}],["name",{"0":{"22":1},"2":{"2":1,"15":11,"18":2,"20":4,"22":11,"23":4,"24":1,"27":3,"29":1,"34":2,"40":1,"42":4,"64":2,"69":2,"74":1,"75":2,"79":1,"83":2}}],["namedtuple",{"0":{"75":1},"2":{"11":3,"16":12,"20":3,"23":2,"25":1,"74":2,"75":1,"76":4,"78":1}}],["named",{"2":{"0":1,"10":2,"22":1,"28":1,"31":1,"34":1,"55":1,"69":1,"72":1}}],["n=rand",{"2":{"75":1}}],["nt",{"2":{"65":2}}],["ntuple",{"2":{"1":3,"2":3,"15":5}}],["night",{"2":{"48":4}}],["nice",{"2":{"48":1}}],["ncdatasets",{"2":{"35":1}}],["ns",{"2":{"33":14,"78":2}}],["ndims",{"2":{"23":5,"42":3}}],["nvidia",{"2":{"20":1}}],["neighbor",{"2":{"82":1}}],["neighbour",{"2":{"17":1}}],["necessary",{"2":{"22":1}}],["necessarily",{"2":{"20":1}}],["netcdf",{"2":{"10":1,"35":1}}],["next",{"2":{"5":1}}],["needs",{"2":{"22":1,"23":1}}],["needed",{"2":{"15":1,"27":1,"64":1,"81":1}}],["need",{"2":{"4":1,"12":1,"16":3,"19":1,"20":4,"27":3}}],["nearly",{"2":{"36":1}}],["nearsest",{"2":{"5":1}}],["nearest",{"2":{"5":3,"17":1,"82":1}}],["near",{"2":{"4":2,"5":7,"15":2,"17":2,"79":3,"82":2}}],["newdim",{"2":{"3":4}}],["newdims",{"2":{"3":4}}],["new",{"2":{"0":1,"3":5,"4":1,"15":2,"18":1,"20":13,"36":1,"40":1,"77":1}}],["nosampling",{"2":{"66":1}}],["nospan",{"2":{"66":1}}],["nov",{"2":{"48":4,"80":1}}],["now",{"2":{"46":1,"48":1,"55":1,"76":1,"80":1}}],["normalization",{"2":{"49":1}}],["normal",{"2":{"7":1,"22":1}}],["nometadata",{"2":{"4":3,"11":2,"15":1,"25":2}}],["nolookup",{"2":{"4":11,"15":4,"20":1,"66":2,"80":9,"81":1}}],["no",{"2":{"2":1,"3":3,"4":2,"11":1,"20":2,"24":1,"33":1,"35":1,"66":1,"78":1,"80":1,"81":1}}],["nonnumeric",{"2":{"69":2}}],["noname",{"2":{"20":1,"22":5}}],["non",{"0":{"2":1},"2":{"15":2,"16":1}}],["notice",{"2":{"17":1,"19":1}}],["notably",{"2":{"16":2,"57":1}}],["note",{"2":{"5":1,"15":1,"19":1,"20":1,"23":1,"48":2,"69":2}}],["notes",{"2":{"4":1,"20":1}}],["nothing",{"2":{"1":1,"3":3,"4":1,"5":1,"8":2,"11":4,"15":1,"81":4}}],["not",{"2":{"0":1,"1":1,"3":4,"4":6,"5":8,"10":3,"11":4,"15":2,"17":2,"19":1,"20":7,"21":3,"22":2,"23":4,"24":1,"25":1,"27":1,"30":1,"31":2,"40":1,"41":1,"43":1,"48":3,"51":1,"62":1,"64":3,"66":1,"67":1,"69":1,"75":3,"76":1,"77":1,"79":4,"80":2,"81":1,"83":1}}],["number",{"2":{"1":1,"3":1,"4":1,"15":1,"19":5,"23":2,"42":2,"64":1,"81":1}}],["n",{"2":{"1":1,"2":3,"3":1,"4":3,"15":3,"48":1,"62":5,"64":4,"66":6,"75":3,"85":1}}],["`refdims`",{"2":{"42":2}}],["`dims`",{"2":{"42":2}}],["`da`",{"2":{"20":1}}],["`cuarray`",{"2":{"26":1}}],["`modify`",{"2":{"26":1}}],["`openinterval",{"2":{"5":1}}],["`",{"2":{"0":1,"20":2}}],["875994",{"2":{"47":1}}],["873096",{"2":{"30":1}}],["87656",{"2":{"75":1}}],["876115",{"2":{"30":1}}],["876395",{"2":{"28":3}}],["870583",{"2":{"30":1}}],["870485",{"2":{"17":1}}],["874037",{"2":{"28":1}}],["87436",{"2":{"26":1}}],["879899",{"2":{"28":3}}],["87",{"2":{"25":1}}],["8560905731682101",{"2":{"86":1}}],["856091",{"2":{"85":2}}],["856524",{"2":{"43":1}}],["852872",{"2":{"85":1}}],["855976",{"2":{"81":1}}],["853835",{"2":{"30":1}}],["853879",{"2":{"25":3}}],["854239",{"2":{"75":1}}],["854076",{"2":{"28":3}}],["854739",{"2":{"26":1}}],["85",{"2":{"25":1,"85":1}}],["845200516911609",{"2":{"86":1}}],["845201",{"2":{"85":2}}],["843637",{"2":{"85":1}}],["849707",{"2":{"85":1}}],["840593",{"2":{"84":1}}],["8428656510212863",{"2":{"86":1}}],["842866",{"2":{"85":2}}],["842029",{"2":{"75":1}}],["84219",{"2":{"25":2}}],["846736",{"2":{"82":2}}],["846581",{"2":{"47":1}}],["846",{"2":{"31":2}}],["846175",{"2":{"28":2}}],["847981",{"2":{"28":1}}],["84",{"2":{"25":1,"82":1}}],["844262",{"2":{"25":5}}],["832345",{"2":{"82":1}}],["838572",{"2":{"82":1}}],["839223",{"2":{"43":1}}],["83904",{"2":{"25":2}}],["830655",{"2":{"43":1}}],["830187",{"2":{"29":1,"31":2}}],["83056",{"2":{"26":1}}],["835288",{"2":{"26":1}}],["83",{"2":{"25":1}}],["819605",{"2":{"85":1}}],["819291",{"2":{"82":1}}],["8146121812750928",{"2":{"86":1}}],["814612",{"2":{"85":2}}],["810377",{"2":{"82":1}}],["817821",{"2":{"85":1}}],["817199",{"2":{"82":1}}],["817575",{"2":{"75":1}}],["81708",{"2":{"26":1}}],["811947",{"2":{"32":1}}],["813229",{"2":{"28":1}}],["813705",{"2":{"28":3}}],["81",{"2":{"25":1}}],["894053",{"2":{"85":1}}],["890574",{"2":{"84":1}}],["890377",{"2":{"82":1}}],["899783",{"2":{"82":1}}],["895115",{"2":{"82":1}}],["89559",{"2":{"82":1}}],["896257",{"2":{"81":1}}],["89609",{"2":{"30":1}}],["89757",{"2":{"43":1}}],["89248",{"2":{"32":1}}],["891663",{"2":{"30":1}}],["891743",{"2":{"28":2}}],["893267",{"2":{"28":2}}],["893537",{"2":{"17":1}}],["89",{"2":{"13":1,"25":1}}],["8268020755919178",{"2":{"86":1}}],["826802",{"2":{"85":2}}],["826098",{"2":{"28":3}}],["827349",{"2":{"82":1}}],["827655",{"2":{"28":2}}],["828161",{"2":{"84":1}}],["828604",{"2":{"84":1}}],["82862",{"2":{"25":1}}],["828315",{"2":{"82":1}}],["824556",{"2":{"62":2,"64":2,"66":6}}],["8234",{"2":{"28":1}}],["82356",{"2":{"25":2}}],["823656",{"2":{"15":1}}],["82",{"2":{"13":1,"25":1,"47":2}}],["86273",{"2":{"79":3}}],["869012",{"2":{"79":9}}],["86986",{"2":{"32":1}}],["8632634208267141",{"2":{"76":2,"77":2}}],["86789",{"2":{"62":2,"64":2,"66":6}}],["867547",{"2":{"15":1,"17":1}}],["86858",{"2":{"43":1}}],["868064",{"2":{"13":1}}],["866772",{"2":{"30":1}}],["866334",{"2":{"28":3}}],["865298",{"2":{"28":3}}],["86112",{"2":{"85":1}}],["861535",{"2":{"43":1}}],["86194",{"2":{"32":1}}],["86174",{"2":{"26":1}}],["861652",{"2":{"25":3}}],["864856",{"2":{"17":1}}],["86",{"2":{"13":2,"25":1}}],["884385",{"2":{"85":1}}],["884218",{"2":{"62":2,"64":2,"66":6}}],["887294",{"2":{"84":1}}],["882656",{"2":{"81":1}}],["883323",{"2":{"81":1}}],["883222",{"2":{"79":3}}],["883048",{"2":{"30":1}}],["889153",{"2":{"47":1}}],["881528",{"2":{"85":1}}],["881533",{"2":{"30":1}}],["881149",{"2":{"26":1}}],["888721",{"2":{"84":1}}],["88841",{"2":{"30":1}}],["88869",{"2":{"26":1}}],["886959",{"2":{"28":2}}],["88092",{"2":{"26":1}}],["88058",{"2":{"26":1}}],["88",{"2":{"13":1,"25":1,"82":1}}],["806495",{"2":{"82":1}}],["802776",{"2":{"79":6}}],["8030281996030815",{"2":{"76":1}}],["800929",{"2":{"85":1}}],["8002301328044032",{"2":{"76":2}}],["80023",{"2":{"75":1}}],["800084",{"2":{"25":3}}],["805743",{"2":{"43":1}}],["80455",{"2":{"26":1}}],["80",{"2":{"4":1,"25":1,"48":1}}],["8",{"2":{"0":1,"4":1,"5":2,"13":1,"16":1,"25":4,"28":18,"30":4,"43":7,"46":1,"48":11,"75":3,"79":8,"80":2,"82":7,"84":2,"85":12,"86":2}}],["6×6",{"2":{"82":3}}],["6×3",{"2":{"79":2}}],["6×10",{"2":{"75":1,"77":30}}],["6am",{"2":{"48":1}}],["682734",{"2":{"82":1}}],["687569",{"2":{"84":1}}],["687921",{"2":{"81":1}}],["687236",{"2":{"30":1}}],["680987",{"2":{"81":1}}],["686915",{"2":{"62":2,"64":2,"66":6}}],["688928",{"2":{"28":2}}],["688175",{"2":{"28":2}}],["689712",{"2":{"28":2}}],["68136",{"2":{"28":2}}],["68",{"2":{"25":1}}],["683795",{"2":{"81":1}}],["68326",{"2":{"25":3}}],["68316",{"2":{"13":1}}],["670607",{"2":{"85":1}}],["670627",{"2":{"82":1}}],["670688",{"2":{"28":3}}],["672556",{"2":{"82":1}}],["679632",{"2":{"85":1}}],["67989",{"2":{"82":1}}],["679453",{"2":{"81":1}}],["6793280401673898",{"2":{"76":1}}],["674881",{"2":{"47":1}}],["676945",{"2":{"30":1}}],["677549",{"2":{"47":1}}],["6778",{"2":{"30":1}}],["677848",{"2":{"30":1}}],["677974",{"2":{"28":1}}],["677207",{"2":{"28":1}}],["675459",{"2":{"82":1}}],["675467",{"2":{"28":1}}],["675126",{"2":{"30":1}}],["67539",{"2":{"25":3}}],["67178",{"2":{"28":1}}],["67",{"2":{"25":1}}],["669153",{"2":{"85":1}}],["6691920691407321",{"2":{"76":1}}],["669192",{"2":{"75":1}}],["660657",{"2":{"82":1}}],["660024",{"2":{"43":1}}],["662227",{"2":{"82":1}}],["662479108116419e",{"2":{"77":1}}],["662632",{"2":{"75":1}}],["6652884461390509",{"2":{"76":1}}],["665742",{"2":{"26":1}}],["668226",{"2":{"75":1}}],["668594",{"2":{"25":3}}],["664038",{"2":{"47":1,"49":2}}],["667691",{"2":{"30":1}}],["667976",{"2":{"28":1}}],["661715",{"2":{"28":1}}],["66622",{"2":{"26":1}}],["66",{"2":{"25":1}}],["659836",{"2":{"82":1}}],["65906",{"2":{"43":1}}],["650675",{"2":{"81":1}}],["651538",{"2":{"81":1}}],["6518774627227301",{"2":{"76":1}}],["651877",{"2":{"75":1}}],["654129",{"2":{"49":1}}],["654537",{"2":{"47":1,"49":2}}],["654591",{"2":{"43":1}}],["655936",{"2":{"30":2}}],["65",{"2":{"25":1,"48":1}}],["645529",{"2":{"85":1}}],["64534",{"2":{"85":1}}],["641266",{"2":{"82":1}}],["641023",{"2":{"30":1}}],["647225",{"2":{"81":1}}],["647328",{"2":{"25":3}}],["6445457662038467",{"2":{"76":1}}],["644748",{"2":{"30":2}}],["64923",{"2":{"32":1}}],["640693",{"2":{"30":1}}],["642908",{"2":{"26":1}}],["64",{"2":{"25":1,"48":1}}],["636476",{"2":{"84":1}}],["634257",{"2":{"82":1}}],["635373",{"2":{"82":2}}],["635425",{"2":{"30":1}}],["631878",{"2":{"82":1}}],["639039",{"2":{"82":1}}],["639212",{"2":{"47":1,"49":1}}],["63959",{"2":{"43":1}}],["638072",{"2":{"30":1}}],["638336",{"2":{"30":1}}],["63",{"2":{"25":1}}],["637399",{"2":{"25":3}}],["637077",{"2":{"15":2}}],["622735",{"2":{"85":1}}],["620473",{"2":{"85":1}}],["621422",{"2":{"82":1}}],["621662",{"2":{"81":1}}],["621603",{"2":{"79":5}}],["621601",{"2":{"25":3}}],["626382",{"2":{"82":1}}],["627002",{"2":{"30":1}}],["627107",{"2":{"28":3}}],["629352",{"2":{"30":2}}],["629882",{"2":{"28":1}}],["625257",{"2":{"28":1}}],["628507",{"2":{"28":2}}],["628275",{"2":{"28":2}}],["62",{"2":{"25":1}}],["624685",{"2":{"25":5}}],["619787",{"2":{"85":1}}],["610193",{"2":{"85":1}}],["61025",{"2":{"26":1}}],["6146564273146751",{"2":{"86":1}}],["614656",{"2":{"85":2}}],["614012",{"2":{"30":1}}],["612828",{"2":{"84":1}}],["615705",{"2":{"66":1}}],["616635",{"2":{"47":1}}],["616666",{"2":{"43":1}}],["61858",{"2":{"25":2}}],["61341",{"2":{"25":2}}],["61",{"2":{"13":1,"25":1}}],["694278906020718",{"2":{"86":1}}],["694279",{"2":{"85":2}}],["694096",{"2":{"82":1}}],["693866",{"2":{"82":1}}],["690159",{"2":{"82":1}}],["699118",{"2":{"82":1}}],["691687",{"2":{"75":1}}],["691162",{"2":{"17":1}}],["69689e",{"2":{"47":1}}],["697976",{"2":{"30":1}}],["69506",{"2":{"26":1}}],["692209",{"2":{"17":2}}],["692235",{"2":{"15":1}}],["69",{"2":{"13":1,"25":1}}],["607291",{"2":{"84":1,"85":2}}],["602",{"2":{"82":1}}],["602631",{"2":{"75":1}}],["603258",{"2":{"82":1}}],["603823",{"2":{"75":1}}],["6063",{"2":{"82":1}}],["606279",{"2":{"30":1}}],["601787",{"2":{"82":1}}],["601474",{"2":{"29":1,"31":2}}],["601833",{"2":{"28":3}}],["600306",{"2":{"25":3}}],["60",{"2":{"4":1,"5":1,"25":1,"76":1,"81":1}}],["6",{"2":{"0":1,"4":2,"5":18,"13":3,"16":1,"17":4,"20":4,"25":10,"26":1,"28":18,"43":7,"46":11,"47":4,"48":20,"74":1,"75":12,"76":4,"77":19,"79":14,"80":1,"82":3,"85":12,"86":2}}],["456688",{"2":{"85":1}}],["457841",{"2":{"85":1}}],["450775",{"2":{"82":1}}],["450629",{"2":{"82":1}}],["45152471334016764",{"2":{"76":1}}],["451525",{"2":{"75":1}}],["451879",{"2":{"28":2}}],["454047",{"2":{"82":1}}],["454033",{"2":{"30":1}}],["454134",{"2":{"82":1}}],["454715",{"2":{"47":1}}],["45804",{"2":{"26":1}}],["45",{"2":{"25":1}}],["44833963865079907",{"2":{"86":1}}],["44818",{"2":{"82":1}}],["445218",{"2":{"85":1}}],["445628",{"2":{"43":1}}],["4496996354823414",{"2":{"86":1}}],["4497",{"2":{"85":2}}],["449491",{"2":{"85":2}}],["4492",{"2":{"26":1}}],["442111",{"2":{"81":1}}],["444305",{"2":{"79":12}}],["44764230965596247",{"2":{"77":1}}],["44724",{"2":{"25":3}}],["4408839264303761",{"2":{"76":1}}],["440884",{"2":{"75":1}}],["44097",{"2":{"43":1}}],["441181",{"2":{"81":1}}],["44104",{"2":{"28":1}}],["441762",{"2":{"25":2}}],["44",{"2":{"25":1}}],["443494",{"2":{"15":1,"17":1}}],["436622",{"2":{"84":1,"85":1}}],["436293",{"2":{"29":1,"31":2}}],["434286",{"2":{"84":1}}],["434374",{"2":{"25":3}}],["432028",{"2":{"82":1}}],["43235163202114113",{"2":{"76":2,"78":2}}],["439371",{"2":{"85":1}}],["439711995898844",{"2":{"76":1}}],["439142",{"2":{"25":2}}],["4338946695122107",{"2":{"76":1}}],["43314",{"2":{"25":3}}],["435719",{"2":{"30":1}}],["43",{"2":{"25":1}}],["431398",{"2":{"25":3}}],["438592",{"2":{"25":3}}],["495624",{"2":{"82":1}}],["495215",{"2":{"25":1}}],["496092",{"2":{"47":1}}],["496532",{"2":{"47":1}}],["496329",{"2":{"47":1}}],["496943",{"2":{"47":1}}],["497705",{"2":{"47":1}}],["497559",{"2":{"47":1}}],["497181",{"2":{"28":1}}],["494267",{"2":{"30":2}}],["493065",{"2":{"85":1}}],["493072",{"2":{"30":2}}],["493784",{"2":{"82":1}}],["493258",{"2":{"30":1}}],["493417",{"2":{"28":3}}],["49097",{"2":{"26":1}}],["49232",{"2":{"25":2}}],["491911",{"2":{"82":1}}],["49169278767038266",{"2":{"77":1}}],["49118673636340926",{"2":{"76":2}}],["491202",{"2":{"25":1}}],["491479",{"2":{"25":1}}],["49",{"2":{"25":1,"48":1}}],["498801",{"2":{"19":1}}],["498606",{"2":{"19":1}}],["498145",{"2":{"19":1}}],["498704",{"2":{"19":1}}],["499307",{"2":{"82":1}}],["499353",{"2":{"47":1}}],["499837",{"2":{"48":1}}],["499959",{"2":{"48":1}}],["499901",{"2":{"48":1}}],["499985",{"2":{"19":1}}],["499069",{"2":{"47":1}}],["499693",{"2":{"47":1,"48":1}}],["499674",{"2":{"25":1}}],["499237",{"2":{"47":1}}],["499282",{"2":{"25":1}}],["499298",{"2":{"19":1}}],["499594",{"2":{"19":1}}],["499762",{"2":{"19":1}}],["42964",{"2":{"82":1}}],["428951",{"2":{"47":1,"49":2}}],["423538",{"2":{"43":1}}],["42331",{"2":{"25":1}}],["426134",{"2":{"82":1}}],["426312",{"2":{"82":1}}],["426888",{"2":{"29":1,"31":2}}],["42648",{"2":{"25":1}}],["42151",{"2":{"26":1}}],["42",{"2":{"25":1}}],["420756",{"2":{"17":1}}],["427328",{"2":{"15":1,"17":1}}],["4×6",{"2":{"17":1}}],["4×5",{"2":{"13":1}}],["473944",{"2":{"82":1}}],["4787707397082731",{"2":{"77":1}}],["476423096559625",{"2":{"77":2}}],["4727022060041937",{"2":{"77":2}}],["474535",{"2":{"75":1}}],["474052",{"2":{"62":2,"64":2,"66":6}}],["474087",{"2":{"25":3}}],["474755",{"2":{"62":2,"64":2,"66":6}}],["471877",{"2":{"47":1,"49":2}}],["475569",{"2":{"47":1}}],["475747",{"2":{"28":1}}],["475786",{"2":{"25":3}}],["479126",{"2":{"26":1}}],["47",{"2":{"13":1,"25":1,"48":2}}],["41940525122635797",{"2":{"86":1}}],["417756",{"2":{"85":1}}],["412631",{"2":{"82":1}}],["418968",{"2":{"47":1}}],["411529",{"2":{"30":1}}],["41173",{"2":{"30":1}}],["413756",{"2":{"28":1}}],["41334",{"2":{"26":1}}],["416444",{"2":{"25":3}}],["41",{"2":{"13":2,"25":1,"48":1}}],["486559",{"2":{"84":1}}],["48240020633837055",{"2":{"76":1}}],["48275",{"2":{"26":1}}],["487197",{"2":{"62":2,"64":2,"66":6}}],["487601",{"2":{"26":1}}],["48952511607945026",{"2":{"86":1}}],["489525",{"2":{"85":2}}],["48912e",{"2":{"47":1}}],["489497",{"2":{"25":1}}],["488473",{"2":{"85":1}}],["48889263023704055",{"2":{"76":1}}],["488136",{"2":{"75":1}}],["48817",{"2":{"32":1}}],["488029",{"2":{"29":2,"31":2}}],["481184",{"2":{"32":1}}],["485952",{"2":{"82":1}}],["4854948068259556",{"2":{"76":1}}],["485119",{"2":{"47":1}}],["485321",{"2":{"30":2}}],["485718",{"2":{"25":1}}],["485687",{"2":{"17":1}}],["48",{"2":{"13":1,"25":1,"48":1}}],["462859",{"2":{"82":1}}],["462981",{"2":{"26":1}}],["465112",{"2":{"82":1}}],["460775",{"2":{"82":1}}],["46788",{"2":{"29":1,"31":2}}],["468184",{"2":{"28":1}}],["468066",{"2":{"28":1}}],["464554",{"2":{"26":1}}],["46",{"2":{"13":3,"25":1}}],["40268027828179853",{"2":{"86":1}}],["402083",{"2":{"85":1}}],["40169",{"2":{"82":1}}],["406221",{"2":{"30":1}}],["40584",{"2":{"26":1}}],["404773",{"2":{"30":1}}],["40409",{"2":{"26":1}}],["404635",{"2":{"13":1}}],["403111",{"2":{"28":3}}],["40322",{"2":{"25":1}}],["403955",{"2":{"25":3}}],["407207",{"2":{"25":3}}],["40",{"2":{"4":1,"15":3,"25":1,"48":1,"81":1}}],["4",{"2":{"0":5,"3":1,"4":5,"5":12,"13":6,"15":6,"16":2,"17":2,"19":1,"20":14,"21":3,"25":8,"26":2,"28":15,"30":5,"32":1,"43":7,"46":1,"47":5,"48":8,"75":1,"77":2,"78":3,"79":18,"80":1,"82":2,"84":1,"85":12,"86":2}}],["0970658",{"2":{"85":1}}],["09300753748828394",{"2":{"86":1}}],["0930075",{"2":{"85":2}}],["0905873",{"2":{"82":1}}],["0923954",{"2":{"82":1}}],["0928922",{"2":{"81":1}}],["0927459",{"2":{"28":2}}],["0963009",{"2":{"75":1}}],["0967863",{"2":{"17":1}}],["0915867",{"2":{"62":2,"64":2,"66":6}}],["0958843",{"2":{"85":1}}],["095824",{"2":{"43":1}}],["095",{"2":{"33":2}}],["0959042",{"2":{"28":2}}],["0992684",{"2":{"32":1}}],["0990347",{"2":{"30":1}}],["0999314",{"2":{"28":3}}],["0991336",{"2":{"17":2}}],["09",{"2":{"0":1,"25":6,"49":1,"80":1}}],["084109",{"2":{"85":1}}],["0821229",{"2":{"82":1}}],["0811277",{"2":{"82":1}}],["0831822",{"2":{"82":1}}],["0837074",{"2":{"25":3}}],["0852624",{"2":{"75":1}}],["0897302",{"2":{"47":1}}],["08094675775408827",{"2":{"77":1}}],["08035217265254364",{"2":{"77":1}}],["0804518",{"2":{"26":1}}],["0802658",{"2":{"15":1}}],["08",{"2":{"0":1,"25":4,"49":1,"80":1,"82":1}}],["07986058669268159",{"2":{"86":1}}],["0760101",{"2":{"82":1}}],["0760848",{"2":{"32":1}}],["0737984",{"2":{"82":1}}],["0738813",{"2":{"30":1}}],["0773793",{"2":{"82":1}}],["0775482",{"2":{"82":1}}],["0789906",{"2":{"30":1}}],["0781957",{"2":{"13":1}}],["0707995",{"2":{"28":1}}],["0724261",{"2":{"82":1}}],["072176",{"2":{"75":1}}],["07277",{"2":{"26":1}}],["0725917",{"2":{"25":3}}],["0710221",{"2":{"13":1}}],["07",{"2":{"0":1,"25":4,"49":1,"80":1}}],["067300",{"2":{"85":1}}],["0670244",{"2":{"82":1}}],["0670111",{"2":{"13":1}}],["061892",{"2":{"85":1}}],["0699673",{"2":{"82":1}}],["0697249",{"2":{"28":1}}],["0661958",{"2":{"82":1}}],["0689895",{"2":{"82":1}}],["0641884",{"2":{"32":1}}],["0649391",{"2":{"26":1}}],["0623616",{"2":{"30":1}}],["0621546",{"2":{"28":1}}],["0622255",{"2":{"28":3}}],["06",{"2":{"0":1,"25":4,"49":1,"80":1}}],["0506805",{"2":{"82":1}}],["0575993",{"2":{"81":1}}],["0578313",{"2":{"30":1}}],["05906689600077611",{"2":{"77":1}}],["0599255",{"2":{"28":1}}],["0599431",{"2":{"26":1}}],["05t03",{"2":{"49":4}}],["0536623",{"2":{"43":1}}],["0531003",{"2":{"30":2}}],["0542529",{"2":{"82":1}}],["0545071",{"2":{"43":1}}],["054613",{"2":{"28":1}}],["0541549",{"2":{"25":3}}],["0557598",{"2":{"26":1}}],["05",{"2":{"0":1,"25":4,"49":1,"79":1,"80":1}}],["0445446",{"2":{"85":1}}],["0442448",{"2":{"25":5}}],["049689",{"2":{"84":1}}],["0410007",{"2":{"82":1}}],["0417586",{"2":{"82":1}}],["04169",{"2":{"25":2}}],["047",{"2":{"78":1}}],["0471885",{"2":{"25":5}}],["04060837507113502",{"2":{"76":1,"78":2}}],["0406084",{"2":{"75":1}}],["0400057",{"2":{"43":1}}],["0450386",{"2":{"30":1}}],["04",{"2":{"0":1,"25":6,"49":1,"80":1,"82":3}}],["0309852",{"2":{"85":1}}],["0300922",{"2":{"82":1}}],["0303789",{"2":{"17":1}}],["038",{"2":{"78":1}}],["0328886",{"2":{"75":1}}],["0320967",{"2":{"17":1}}],["0363983",{"2":{"30":1}}],["0314382",{"2":{"30":1}}],["0315486",{"2":{"28":2}}],["0379776",{"2":{"30":1}}],["0392779",{"2":{"28":2}}],["0333106",{"2":{"13":1}}],["03",{"2":{"0":1,"25":6,"47":1,"49":2,"80":1}}],["029602",{"2":{"85":1}}],["0216477",{"2":{"85":1}}],["021",{"2":{"82":1}}],["0255364",{"2":{"82":1}}],["02098",{"2":{"32":1}}],["0287126",{"2":{"28":1}}],["0238569",{"2":{"28":3}}],["0239356",{"2":{"28":3}}],["02",{"2":{"0":2,"25":6,"47":1,"49":2,"80":1}}],["0",{"2":{"0":60,"1":6,"3":8,"4":28,"5":8,"13":20,"15":86,"16":16,"17":81,"18":240,"19":19,"20":176,"25":178,"26":69,"28":546,"29":28,"30":148,"31":50,"32":12,"33":25,"43":175,"44":42,"46":2,"47":63,"48":20,"49":53,"61":105,"62":50,"64":48,"66":141,"74":16,"75":133,"76":89,"77":155,"78":12,"79":147,"80":7,"81":35,"82":234,"84":48,"85":150,"86":36}}],["0019198597596568057",{"2":{"86":1}}],["00191986",{"2":{"85":2}}],["00125e",{"2":{"47":1}}],["00258281",{"2":{"82":1}}],["007",{"2":{"82":3}}],["00428189",{"2":{"82":1}}],["0042232",{"2":{"43":1}}],["00869054",{"2":{"82":1}}],["00832284",{"2":{"47":1,"49":1}}],["00633515",{"2":{"43":1}}],["0038728108200783984",{"2":{"77":2}}],["00387281",{"2":{"75":1}}],["00337686",{"2":{"30":2}}],["00396",{"2":{"25":1}}],["00327",{"2":{"25":1}}],["00",{"2":{"0":42,"25":164,"33":10,"46":4,"47":10,"49":37,"80":32}}],["0120967",{"2":{"84":1,"85":1}}],["0135194",{"2":{"82":1}}],["0130048",{"2":{"29":1,"31":2}}],["0154473",{"2":{"82":1}}],["015759978623873905",{"2":{"77":2}}],["01576",{"2":{"75":1}}],["0157247",{"2":{"43":1}}],["0171909",{"2":{"75":1}}],["0170682",{"2":{"75":1}}],["011",{"2":{"48":2}}],["01t03",{"2":{"49":2}}],["01t02",{"2":{"49":1}}],["01t01",{"2":{"47":1,"49":2}}],["01t00",{"2":{"0":21,"25":82,"46":1,"47":2,"49":7,"80":16}}],["0160205",{"2":{"30":1}}],["014",{"2":{"82":1}}],["0143204",{"2":{"82":1}}],["014402783553701615",{"2":{"77":2}}],["0140644",{"2":{"28":1}}],["0145691",{"2":{"25":3}}],["0197492",{"2":{"26":1}}],["0106725",{"2":{"47":1,"49":1}}],["0109523",{"2":{"43":1}}],["0104608",{"2":{"30":1}}],["0102884",{"2":{"28":2}}],["010",{"2":{"20":2}}],["01",{"2":{"0":5,"25":15,"46":1,"47":6,"49":21,"80":3}}],["↗",{"2":{"0":1,"1":1,"3":1,"13":1,"15":1,"18":1,"19":1,"20":1,"25":6,"30":1,"32":2,"34":1,"84":3}}],["→",{"2":{"0":4,"1":3,"3":2,"4":2,"5":8,"13":4,"15":15,"16":1,"17":12,"18":1,"19":3,"20":12,"21":2,"25":11,"26":2,"28":17,"29":1,"30":7,"31":2,"32":2,"33":1,"34":2,"43":7,"44":11,"47":3,"48":8,"49":5,"61":3,"62":4,"64":4,"66":11,"74":2,"75":8,"77":24,"79":26,"81":2,"82":10,"84":4,"85":1}}],["↓",{"2":{"0":5,"1":4,"3":3,"4":2,"5":8,"13":5,"15":18,"16":1,"17":12,"18":1,"19":5,"20":12,"21":2,"25":14,"26":2,"28":17,"29":2,"30":8,"31":2,"32":2,"33":1,"34":2,"43":12,"44":15,"47":10,"48":19,"49":6,"61":3,"62":4,"64":4,"66":11,"74":2,"75":9,"76":1,"77":25,"79":28,"80":1,"81":2,"82":10,"84":4,"85":1}}],["┐",{"2":{"0":3,"4":1,"5":4,"13":3,"15":6,"17":3,"19":3,"20":5,"21":1,"25":8,"26":1,"28":14,"29":2,"30":4,"31":2,"32":2,"33":1,"43":1,"47":8,"48":11,"49":3,"61":3,"62":2,"64":2,"66":6,"74":1,"75":8,"76":1,"77":25,"79":15,"80":1,"81":1,"82":5,"84":2,"85":1}}],["│",{"2":{"0":6,"1":2,"3":2,"4":2,"5":8,"13":6,"15":22,"17":8,"18":2,"19":6,"20":10,"21":2,"25":16,"26":2,"28":28,"29":4,"30":8,"31":4,"32":4,"33":2,"43":2,"47":16,"48":22,"49":6,"61":6,"62":4,"64":4,"66":12,"74":2,"75":16,"76":2,"77":50,"79":30,"80":2,"81":2,"82":10,"84":4,"85":74}}],["5×1",{"2":{"79":1}}],["5×10",{"2":{"28":16}}],["5×5",{"2":{"29":1,"31":2}}],["5×4",{"2":{"4":1}}],["581131",{"2":{"85":2}}],["585756",{"2":{"47":1,"49":1}}],["585658",{"2":{"25":3}}],["589536",{"2":{"43":1}}],["5891",{"2":{"25":2}}],["58",{"2":{"25":1}}],["5697400488168892",{"2":{"86":1}}],["56974",{"2":{"85":2}}],["569347",{"2":{"82":1}}],["562491",{"2":{"82":1}}],["56273",{"2":{"30":1}}],["564657",{"2":{"82":1}}],["564152",{"2":{"49":1}}],["565229",{"2":{"66":1}}],["561953",{"2":{"43":1}}],["561365",{"2":{"28":1}}],["56",{"2":{"25":1,"48":1}}],["5501481631111826",{"2":{"86":1}}],["550148",{"2":{"85":2}}],["55560637324799",{"2":{"86":1}}],["555606",{"2":{"85":2}}],["556096",{"2":{"43":1}}],["552838",{"2":{"43":1}}],["557418",{"2":{"82":1}}],["557369",{"2":{"28":1}}],["557524",{"2":{"28":1}}],["55713",{"2":{"25":2}}],["553558",{"2":{"28":1}}],["55",{"2":{"25":1}}],["53407",{"2":{"82":1}}],["534915",{"2":{"28":3}}],["531012",{"2":{"82":1}}],["533041",{"2":{"82":1}}],["539197",{"2":{"82":1}}],["539076",{"2":{"17":1}}],["539028",{"2":{"13":1}}],["5370455292538254",{"2":{"76":1}}],["537046",{"2":{"75":1}}],["532757",{"2":{"49":1}}],["53259",{"2":{"25":1}}],["530908",{"2":{"49":2}}],["535933",{"2":{"30":1}}],["53632",{"2":{"25":2}}],["53",{"2":{"25":1}}],["5201836703588896",{"2":{"76":1}}],["520184",{"2":{"75":1}}],["5203602669427675",{"2":{"76":1}}],["52036",{"2":{"75":1}}],["527254",{"2":{"82":1}}],["527261",{"2":{"30":1}}],["527",{"2":{"33":1}}],["528009",{"2":{"82":1}}],["528138",{"2":{"30":1}}],["52849",{"2":{"13":1}}],["52496",{"2":{"28":1}}],["52389",{"2":{"25":2}}],["52",{"2":{"25":1}}],["599241",{"2":{"84":1,"85":2}}],["595409",{"2":{"82":1}}],["59542",{"2":{"25":2}}],["5943408850726459",{"2":{"76":3}}],["593346",{"2":{"66":1}}],["597808",{"2":{"30":1}}],["59705",{"2":{"26":1}}],["591606",{"2":{"30":1}}],["596077",{"2":{"28":2}}],["59",{"2":{"13":1,"25":1}}],["54624",{"2":{"84":1}}],["546357",{"2":{"25":3}}],["545522",{"2":{"82":1}}],["545156",{"2":{"13":1}}],["5434869639181522",{"2":{"76":2}}],["548479",{"2":{"43":1}}],["54822",{"2":{"26":1}}],["541438",{"2":{"28":1}}],["542251",{"2":{"28":3}}],["547848",{"2":{"25":2}}],["54",{"2":{"13":1,"25":1}}],["516396",{"2":{"85":1}}],["51621",{"2":{"84":1}}],["518938",{"2":{"84":1}}],["518483",{"2":{"75":1}}],["513088",{"2":{"82":1}}],["513909",{"2":{"82":1}}],["519705",{"2":{"82":1}}],["519235",{"2":{"28":2}}],["5154448003579335",{"2":{"76":1,"78":2}}],["515445",{"2":{"75":1}}],["510587",{"2":{"85":1}}],["510196",{"2":{"30":1}}],["510863",{"2":{"25":1}}],["511313",{"2":{"79":3}}],["511078",{"2":{"29":1,"31":2}}],["511978",{"2":{"28":3}}],["514177",{"2":{"28":1}}],["517175",{"2":{"84":1}}],["517329",{"2":{"28":2}}],["517971",{"2":{"25":3}}],["512083",{"2":{"15":1,"17":1}}],["51",{"2":{"13":1,"25":1,"47":1}}],["573469",{"2":{"82":1}}],["573391",{"2":{"82":1}}],["573147",{"2":{"32":1}}],["574526",{"2":{"82":2}}],["574678",{"2":{"82":1}}],["575878",{"2":{"49":2}}],["578183",{"2":{"47":1}}],["571658",{"2":{"30":1}}],["571821",{"2":{"13":1}}],["576903",{"2":{"28":3}}],["570725",{"2":{"84":1,"85":1}}],["570396",{"2":{"82":1}}],["570603",{"2":{"81":1}}],["570254",{"2":{"28":1}}],["57019",{"2":{"26":1}}],["570914",{"2":{"13":1}}],["57",{"2":{"5":1,"13":2,"25":1,"48":1}}],["5099922507050859",{"2":{"86":1}}],["509231",{"2":{"28":1}}],["508938",{"2":{"82":1}}],["508614",{"2":{"82":1}}],["50854",{"2":{"25":2}}],["5055",{"2":{"48":4}}],["505694",{"2":{"47":1}}],["50562",{"2":{"25":1}}],["503183",{"2":{"82":2}}],["503785",{"2":{"47":1}}],["503823",{"2":{"29":2,"31":2}}],["506221",{"2":{"81":1}}],["506181",{"2":{"75":1}}],["506084",{"2":{"47":1}}],["506965",{"2":{"43":1}}],["507581",{"2":{"43":1}}],["502499",{"2":{"30":2}}],["50156726022296",{"2":{"77":2}}],["50102",{"2":{"47":1}}],["501998",{"2":{"47":1}}],["501282",{"2":{"47":1}}],["501124",{"2":{"25":1}}],["501105",{"2":{"19":1}}],["501643",{"2":{"19":1}}],["501379",{"2":{"19":1}}],["500355",{"2":{"48":1}}],["500331",{"2":{"47":1,"48":2}}],["500136",{"2":{"47":1}}],["500155",{"2":{"47":1}}],["500665",{"2":{"47":1,"48":2}}],["500644",{"2":{"19":1}}],["500495",{"2":{"25":1}}],["50047",{"2":{"19":1}}],["500818",{"2":{"25":1}}],["500874",{"2":{"19":1}}],["500533",{"2":{"19":1}}],["500058",{"2":{"47":1}}],["500083",{"2":{"19":1}}],["500064",{"2":{"19":1}}],["50",{"2":{"5":3,"13":4,"15":9,"25":1,"81":1}}],["5u",{"2":{"5":1}}],["5",{"2":{"0":1,"4":3,"5":21,"13":6,"15":2,"16":1,"17":1,"20":7,"21":1,"25":10,"26":1,"28":34,"29":2,"30":6,"32":1,"43":9,"46":1,"47":4,"48":5,"61":3,"74":3,"75":11,"76":1,"77":36,"79":7,"80":2,"81":1,"85":12,"86":2}}],["371583",{"2":{"82":1}}],["376",{"2":{"48":3}}],["370",{"2":{"48":2}}],["37821",{"2":{"30":1}}],["378395",{"2":{"30":1}}],["372311",{"2":{"30":2}}],["374451",{"2":{"28":1}}],["374026",{"2":{"26":1}}],["373575",{"2":{"28":2}}],["37963",{"2":{"26":1}}],["37",{"2":{"25":1}}],["367212",{"2":{"85":1}}],["369225",{"2":{"75":1}}],["369",{"2":{"48":3}}],["368",{"2":{"48":3}}],["361536",{"2":{"82":1}}],["361",{"2":{"48":3}}],["361921",{"2":{"29":1,"31":2}}],["362",{"2":{"47":1}}],["363",{"2":{"47":2}}],["365",{"2":{"47":2}}],["366",{"2":{"47":3}}],["364097",{"2":{"84":1,"85":2}}],["364079",{"2":{"49":1}}],["364844",{"2":{"62":2,"64":2,"66":6}}],["364",{"2":{"46":18,"47":3}}],["36",{"2":{"25":1}}],["360032",{"2":{"82":1}}],["360",{"2":{"4":2,"48":1}}],["341133",{"2":{"84":1}}],["341785",{"2":{"82":2}}],["34922817761541347",{"2":{"77":1}}],["3463451596221927",{"2":{"76":1}}],["3475368849412708",{"2":{"76":1}}],["347379",{"2":{"28":1}}],["34882573131206984",{"2":{"76":1}}],["348826",{"2":{"75":1}}],["344",{"2":{"48":1}}],["342499",{"2":{"82":1}}],["342437",{"2":{"28":1}}],["342887",{"2":{"30":1}}],["342919",{"2":{"30":1}}],["34589",{"2":{"82":1}}],["345667",{"2":{"75":1}}],["345",{"2":{"48":1}}],["345046",{"2":{"30":2}}],["345501",{"2":{"26":1}}],["34",{"2":{"25":1}}],["333095",{"2":{"82":1}}],["331422",{"2":{"82":1}}],["337",{"2":{"48":1}}],["337576",{"2":{"29":1,"31":2}}],["336376",{"2":{"84":1}}],["336",{"2":{"48":1}}],["336768",{"2":{"47":1}}],["338669",{"2":{"30":1}}],["33",{"2":{"25":1,"47":1,"48":2}}],["334152",{"2":{"15":1,"17":1}}],["315302",{"2":{"85":1}}],["314906",{"2":{"81":1}}],["317813",{"2":{"62":2,"64":2,"66":6}}],["313",{"2":{"48":1}}],["313185",{"2":{"30":2}}],["312",{"2":{"48":1}}],["312976",{"2":{"47":1}}],["310753",{"2":{"30":1}}],["316833",{"2":{"30":3}}],["31",{"2":{"25":1,"47":1}}],["311448",{"2":{"15":1}}],["3a",{"2":{"16":1}}],["3×14",{"2":{"62":2,"64":2,"66":6}}],["3×5",{"2":{"21":2,"61":10}}],["3×5×12",{"2":{"0":1}}],["3×4×1",{"2":{"32":1}}],["3×4×5",{"2":{"32":1}}],["3×4",{"2":{"20":5}}],["3×3",{"2":{"15":3,"17":1,"33":1,"79":3}}],["3×2",{"2":{"15":1,"79":1}}],["302073",{"2":{"85":1}}],["307762",{"2":{"81":1}}],["301659",{"2":{"81":1}}],["30t22",{"2":{"49":1}}],["30t23",{"2":{"46":1,"47":2,"49":2}}],["30×17520",{"2":{"48":3}}],["3053673139967894",{"2":{"86":1}}],["305367",{"2":{"85":2}}],["305",{"2":{"48":1}}],["306932",{"2":{"28":3}}],["30923",{"2":{"26":1}}],["3047",{"2":{"80":1}}],["304688",{"2":{"26":1}}],["30427",{"2":{"26":1}}],["300304",{"2":{"82":1}}],["300",{"2":{"20":1}}],["30",{"2":{"15":1,"16":2,"17":4,"20":9,"25":1,"46":18,"47":2,"66":2,"81":1,"82":1}}],["3258728635315493",{"2":{"76":2}}],["325413",{"2":{"49":2}}],["329",{"2":{"48":1}}],["328",{"2":{"48":1}}],["32806",{"2":{"29":1,"31":2}}],["321",{"2":{"48":1}}],["321923",{"2":{"28":1}}],["320",{"2":{"48":1}}],["322612",{"2":{"30":1}}],["32669",{"2":{"26":1}}],["32",{"2":{"13":2,"25":1,"48":2}}],["38167574879167476",{"2":{"86":1}}],["381676",{"2":{"85":2}}],["388768",{"2":{"82":1}}],["38290995355378155",{"2":{"76":1}}],["38291",{"2":{"75":1}}],["389215",{"2":{"75":1}}],["3863063388395396",{"2":{"76":1}}],["386306",{"2":{"75":1}}],["384116",{"2":{"43":1}}],["385452",{"2":{"30":1}}],["385262",{"2":{"28":1}}],["38",{"2":{"13":3,"25":1}}],["350024",{"2":{"85":1}}],["350546",{"2":{"17":1}}],["358535",{"2":{"82":1}}],["353968",{"2":{"84":1}}],["353",{"2":{"48":1}}],["352",{"2":{"48":1}}],["352614",{"2":{"26":1}}],["356",{"2":{"33":1}}],["359421",{"2":{"84":1}}],["359",{"2":{"33":1}}],["3517350991207968",{"2":{"76":1}}],["351735",{"2":{"75":1}}],["35189",{"2":{"32":1}}],["351096",{"2":{"30":1}}],["354868",{"2":{"17":1}}],["35",{"2":{"13":1,"15":1,"25":1}}],["394448",{"2":{"84":1}}],["399",{"2":{"82":1}}],["399781",{"2":{"82":1}}],["396585",{"2":{"81":1}}],["397575",{"2":{"47":1}}],["390342",{"2":{"43":1}}],["390081",{"2":{"26":1}}],["395523",{"2":{"43":1}}],["391395",{"2":{"28":1}}],["392848",{"2":{"28":1}}],["398776",{"2":{"25":3}}],["39",{"2":{"2":2,"3":1,"4":2,"13":3,"17":1,"21":4,"22":1,"24":1,"25":1,"30":2,"31":1,"33":1,"35":3,"46":2,"47":1,"48":1,"49":2,"64":1,"65":1,"66":1,"67":6,"69":9,"80":1,"81":1,"82":1}}],["3",{"2":{"0":4,"1":3,"3":1,"4":7,"5":8,"13":9,"15":8,"16":1,"17":12,"18":2,"19":6,"20":11,"21":6,"23":2,"25":18,"26":2,"28":12,"29":2,"30":10,"32":5,"33":12,"34":2,"43":7,"46":1,"47":10,"48":23,"49":3,"61":3,"62":5,"64":4,"66":10,"75":1,"79":3,"80":2,"82":1,"84":3,"85":8,"86":2}}],["182707",{"2":{"85":1}}],["18201329198359628",{"2":{"76":1}}],["186811",{"2":{"85":1}}],["18906",{"2":{"82":1}}],["18989",{"2":{"30":1}}],["184738",{"2":{"79":9}}],["184813",{"2":{"30":1}}],["187655",{"2":{"75":1}}],["187495",{"2":{"25":2}}],["180",{"2":{"43":6}}],["18035",{"2":{"26":1}}],["188864",{"2":{"30":1}}],["183637",{"2":{"26":1}}],["183555",{"2":{"17":1}}],["18",{"2":{"25":1,"33":1,"46":1,"82":5}}],["1331373610060985e",{"2":{"77":1}}],["13393263555318102",{"2":{"76":1}}],["13525245310587153",{"2":{"76":1}}],["130252",{"2":{"75":1}}],["130",{"2":{"43":6,"66":2}}],["130775",{"2":{"13":1}}],["136127",{"2":{"30":1}}],["136551",{"2":{"17":1}}],["134186",{"2":{"26":1}}],["13",{"2":{"25":1,"28":9,"80":2,"82":1}}],["131798",{"2":{"17":1}}],["1a",{"2":{"16":1}}],["17977958441149666",{"2":{"86":1}}],["17978",{"2":{"85":2}}],["179889",{"2":{"49":1}}],["171961",{"2":{"82":1}}],["17520",{"2":{"46":8,"49":1}}],["17597",{"2":{"30":1}}],["170",{"2":{"43":6}}],["178022",{"2":{"43":1}}],["178902",{"2":{"28":1}}],["177155",{"2":{"75":1}}],["177857",{"2":{"43":1}}],["177423",{"2":{"26":1}}],["176197",{"2":{"28":1}}],["17673",{"2":{"26":1}}],["17645",{"2":{"26":1}}],["17",{"2":{"13":1,"25":1,"46":1,"47":1,"48":2}}],["163103",{"2":{"84":1}}],["162516",{"2":{"84":1}}],["162919",{"2":{"26":1}}],["168554",{"2":{"82":1}}],["168617",{"2":{"82":1}}],["166822",{"2":{"82":1}}],["166186",{"2":{"82":1}}],["166221",{"2":{"82":1}}],["160",{"2":{"43":6}}],["167465",{"2":{"43":1}}],["169845",{"2":{"30":1}}],["16×16×3",{"2":{"18":1}}],["16",{"2":{"13":2,"18":2,"25":1,"46":1,"47":1,"48":4,"82":3}}],["145037",{"2":{"85":1}}],["143×23",{"2":{"82":1}}],["143478",{"2":{"82":1}}],["140",{"2":{"43":6,"66":6}}],["142055",{"2":{"84":1}}],["14203",{"2":{"25":2}}],["142406",{"2":{"82":1}}],["142957",{"2":{"30":1}}],["14",{"2":{"13":1,"25":1,"28":6,"75":1,"82":2}}],["1u",{"2":{"5":2}}],["195938",{"2":{"85":1}}],["195897",{"2":{"82":1}}],["1985699519321249",{"2":{"86":1}}],["19857",{"2":{"85":2}}],["198058",{"2":{"82":1}}],["194849",{"2":{"84":1,"85":2}}],["194465",{"2":{"28":3}}],["192192",{"2":{"84":1,"85":2}}],["192274",{"2":{"82":1}}],["192286",{"2":{"30":1}}],["193179",{"2":{"82":1}}],["193627",{"2":{"62":2,"64":2,"66":6}}],["196478",{"2":{"81":1}}],["196524",{"2":{"30":1}}],["19041",{"2":{"49":2}}],["190",{"2":{"43":7}}],["190726",{"2":{"30":1}}],["19122366809754",{"2":{"76":10}}],["191224",{"2":{"75":1}}],["191049",{"2":{"30":1}}],["191×20×30",{"2":{"19":1}}],["191×20×31",{"2":{"19":2}}],["191×20×32",{"2":{"19":1}}],["191×20×28",{"2":{"19":1}}],["199364",{"2":{"82":1}}],["1999",{"2":{"26":1}}],["1998",{"2":{"26":1}}],["19",{"2":{"5":5,"25":1,"46":1,"82":3}}],["1×3",{"2":{"79":2}}],["1×2",{"2":{"5":3}}],["1×12",{"2":{"0":1}}],["156388",{"2":{"84":1}}],["156538",{"2":{"79":12}}],["152068",{"2":{"81":1}}],["153753",{"2":{"85":1}}],["1532608102742886e",{"2":{"77":1}}],["15388",{"2":{"28":1}}],["155826",{"2":{"30":1}}],["15945803739833375",{"2":{"86":1}}],["159458",{"2":{"85":2}}],["15905863317294833",{"2":{"76":2}}],["159092",{"2":{"62":2,"64":2,"66":6}}],["159233",{"2":{"30":1}}],["159817",{"2":{"30":1}}],["15163",{"2":{"29":1,"31":2}}],["15489",{"2":{"25":2}}],["15004",{"2":{"25":2}}],["150155",{"2":{"17":1}}],["150",{"2":{"15":3,"43":6}}],["15",{"2":{"5":3,"13":2,"25":1,"28":3,"46":1}}],["114915",{"2":{"85":1}}],["11475",{"2":{"32":1}}],["11115487324489237",{"2":{"76":1}}],["111155",{"2":{"75":1}}],["111072",{"2":{"28":3}}],["11×17520",{"2":{"48":1}}],["110",{"2":{"43":7}}],["115",{"2":{"33":1}}],["119937",{"2":{"30":2}}],["119505",{"2":{"28":3}}],["11311",{"2":{"75":1}}],["113873",{"2":{"29":1,"31":2}}],["113704",{"2":{"28":2}}],["11787",{"2":{"82":1}}],["117",{"2":{"13":3}}],["112606",{"2":{"43":1}}],["112",{"2":{"13":2}}],["11",{"2":{"0":1,"4":1,"13":4,"17":2,"19":6,"25":8,"28":15,"43":1,"47":6,"80":1,"82":3}}],["128827",{"2":{"84":1}}],["12196032004058277",{"2":{"77":1}}],["121186",{"2":{"29":1,"31":2}}],["121375",{"2":{"29":1,"31":2}}],["121525",{"2":{"28":3}}],["126976",{"2":{"28":1}}],["12435",{"2":{"32":1}}],["124594",{"2":{"28":2}}],["12404",{"2":{"25":2}}],["12×100×25",{"2":{"25":2}}],["12×2",{"2":{"19":1}}],["1279",{"2":{"25":3}}],["129382",{"2":{"25":3}}],["123",{"2":{"15":1}}],["125287",{"2":{"17":1}}],["125",{"2":{"13":2}}],["1229",{"2":{"47":1}}],["122",{"2":{"13":2}}],["120955",{"2":{"84":1}}],["120845",{"2":{"82":1}}],["1201",{"2":{"47":1}}],["120",{"2":{"13":4,"33":1,"43":7,"66":2}}],["12",{"2":{"0":9,"4":1,"15":3,"16":1,"19":10,"20":1,"25":23,"28":12,"33":2,"46":28,"47":15,"48":8,"49":3,"80":7,"82":5}}],["1",{"2":{"0":13,"1":8,"3":14,"4":26,"5":12,"13":12,"15":49,"16":3,"17":21,"18":241,"19":19,"20":16,"21":5,"23":2,"25":52,"26":52,"28":119,"29":1,"30":4,"31":1,"32":6,"33":13,"34":10,"43":44,"44":28,"46":73,"47":46,"48":91,"49":30,"62":9,"64":12,"65":2,"66":18,"67":1,"69":4,"74":7,"75":24,"76":1,"77":78,"78":1,"79":98,"80":7,"82":51,"84":14,"85":42,"86":10}}],["10327768192755193",{"2":{"76":2,"77":2}}],["10363647991272806",{"2":{"76":1}}],["103636",{"2":{"75":1}}],["10276733254788795",{"2":{"86":1}}],["102767",{"2":{"85":2}}],["10233",{"2":{"30":1}}],["10246",{"2":{"25":2}}],["10×10",{"2":{"84":1,"85":27}}],["10×10×26",{"2":{"84":3}}],["10×1",{"2":{"77":30}}],["10×11",{"2":{"43":1}}],["10×6",{"2":{"74":3,"75":18,"77":12}}],["10×5",{"2":{"30":1}}],["10×7×5",{"2":{"30":1}}],["108968",{"2":{"28":1}}],["108514",{"2":{"28":3}}],["10426060453432562",{"2":{"76":10}}],["104261",{"2":{"75":1}}],["104867",{"2":{"28":1}}],["10415",{"2":{"25":2}}],["10914",{"2":{"32":1}}],["109",{"2":{"13":1}}],["107233",{"2":{"84":1}}],["107427",{"2":{"49":1}}],["1076",{"2":{"26":1}}],["107",{"2":{"13":1}}],["105539",{"2":{"30":1}}],["105",{"2":{"13":1}}],["106973",{"2":{"82":1}}],["106904",{"2":{"43":1}}],["106472",{"2":{"43":1}}],["106224",{"2":{"28":1}}],["106",{"2":{"13":1,"33":2}}],["106593",{"2":{"13":1}}],["101305",{"2":{"84":1}}],["101231",{"2":{"79":4}}],["101×34",{"2":{"49":2}}],["101×384",{"2":{"48":2}}],["101×8030",{"2":{"48":1}}],["101×8760",{"2":{"48":1}}],["101×2856",{"2":{"48":1}}],["101×2928",{"2":{"48":3}}],["101×240",{"2":{"48":1}}],["101×0",{"2":{"48":1}}],["101×4416",{"2":{"48":5}}],["101×4320",{"2":{"48":2}}],["101×4392",{"2":{"48":2}}],["101×4368",{"2":{"48":3}}],["101×4344",{"2":{"48":2}}],["101×1",{"2":{"49":5}}],["101×1464",{"2":{"47":1}}],["101×1440",{"2":{"47":1}}],["101×1488",{"2":{"47":2}}],["101×1368",{"2":{"47":1}}],["101×17520",{"2":{"47":1}}],["101",{"2":{"13":2}}],["10u",{"2":{"5":1}}],["100×28",{"2":{"85":1}}],["100×25×12",{"2":{"25":3}}],["1000×2000",{"2":{"26":1}}],["1000",{"2":{"26":3,"33":2}}],["10000",{"2":{"23":1,"33":2}}],["100u",{"2":{"5":2}}],["100",{"2":{"0":1,"3":1,"4":3,"15":10,"20":8,"25":14,"43":26,"44":14,"49":1,"68":1,"71":1,"80":2,"85":1}}],["10",{"2":{"0":7,"1":9,"3":6,"4":5,"5":19,"13":6,"15":15,"16":5,"17":4,"19":2,"20":34,"25":8,"28":34,"30":1,"42":9,"43":47,"44":28,"47":2,"64":2,"66":10,"67":1,"68":2,"69":5,"71":2,"74":7,"75":21,"76":1,"77":61,"80":7,"81":5,"82":14,"84":10,"85":34,"86":10}}],["286",{"2":{"82":1}}],["2834645880044695",{"2":{"77":1}}],["281077",{"2":{"30":1}}],["287739",{"2":{"30":1}}],["2845114369477759",{"2":{"77":1}}],["284399",{"2":{"30":1}}],["28405",{"2":{"26":1}}],["2855663183499576",{"2":{"76":1}}],["285205",{"2":{"30":1}}],["285965",{"2":{"26":1}}],["280686",{"2":{"28":1}}],["289335",{"2":{"28":3}}],["28",{"2":{"25":1,"47":1,"77":4,"82":2}}],["270915",{"2":{"85":1}}],["27042",{"2":{"25":2}}],["276742",{"2":{"82":1}}],["275784",{"2":{"82":1}}],["27206",{"2":{"82":1}}],["272731",{"2":{"49":1}}],["27736",{"2":{"79":5}}],["274713",{"2":{"43":1}}],["273104",{"2":{"82":1}}],["273986",{"2":{"28":1}}],["273573",{"2":{"28":2}}],["27",{"2":{"25":1}}],["241791",{"2":{"82":1}}],["2415",{"2":{"47":1}}],["2423",{"2":{"47":1}}],["24247",{"2":{"25":2}}],["24303682025729376",{"2":{"77":1}}],["243035",{"2":{"30":1}}],["243842",{"2":{"49":2}}],["243368",{"2":{"82":1}}],["2433",{"2":{"47":1}}],["2436",{"2":{"47":1}}],["24524306337289326",{"2":{"86":1}}],["245243",{"2":{"85":2}}],["245",{"2":{"79":2}}],["2454503676673656",{"2":{"77":1}}],["245499",{"2":{"43":1}}],["24575",{"2":{"26":1}}],["247032",{"2":{"62":2,"64":2,"66":6}}],["247755",{"2":{"30":1}}],["247198",{"2":{"28":1}}],["249616",{"2":{"28":2}}],["24",{"2":{"19":1,"25":4,"46":1,"47":2,"48":2}}],["22237128922242078",{"2":{"86":1}}],["222371",{"2":{"85":2}}],["222681",{"2":{"28":1}}],["221908",{"2":{"82":1}}],["221313",{"2":{"82":1}}],["22401",{"2":{"82":1}}],["224375",{"2":{"26":1}}],["227082",{"2":{"85":1}}],["227865",{"2":{"82":2}}],["227455",{"2":{"28":1}}],["229792",{"2":{"82":1}}],["229418",{"2":{"81":1}}],["228081",{"2":{"82":1}}],["228248",{"2":{"81":1}}],["228294",{"2":{"30":1}}],["226064",{"2":{"79":8}}],["226712626227074",{"2":{"76":1}}],["2237e",{"2":{"47":1}}],["2236016853688918",{"2":{"28":1}}],["223602",{"2":{"28":2}}],["22",{"2":{"17":2,"25":1,"46":1,"47":2,"85":1}}],["2a",{"2":{"16":1}}],["2601",{"2":{"86":1}}],["2600×5",{"2":{"85":1}}],["2600×4",{"2":{"85":2}}],["2600",{"2":{"85":3}}],["266342",{"2":{"85":1}}],["26×11",{"2":{"82":1}}],["263531",{"2":{"82":1}}],["264001",{"2":{"82":1}}],["2641242011907946",{"2":{"76":1}}],["264242",{"2":{"28":1}}],["269905",{"2":{"75":1}}],["26917",{"2":{"26":1}}],["268379",{"2":{"30":1}}],["261741",{"2":{"28":1}}],["26",{"2":{"13":2,"25":1}}],["290409",{"2":{"85":1}}],["294486",{"2":{"84":1}}],["296393",{"2":{"82":1}}],["29205",{"2":{"82":1}}],["292431",{"2":{"43":1}}],["298728",{"2":{"62":2,"64":2,"66":6}}],["298383",{"2":{"26":1}}],["299692",{"2":{"47":1}}],["299799",{"2":{"28":1}}],["29325",{"2":{"32":1}}],["295346",{"2":{"30":1}}],["297023",{"2":{"17":1}}],["29",{"2":{"13":2,"25":1,"47":2,"77":2,"82":2}}],["210664",{"2":{"84":1}}],["21035e",{"2":{"47":1}}],["215448",{"2":{"82":1}}],["215049",{"2":{"26":1}}],["21921",{"2":{"81":1}}],["214157",{"2":{"75":1}}],["21149",{"2":{"29":1,"31":2}}],["217733",{"2":{"28":3}}],["218579",{"2":{"17":1}}],["21",{"2":{"5":4,"13":1,"17":2,"25":1,"46":1,"47":1,"80":1}}],["256817",{"2":{"85":1}}],["2599",{"2":{"85":3}}],["2598",{"2":{"85":3}}],["259847",{"2":{"84":1}}],["2597",{"2":{"85":3}}],["2596",{"2":{"85":3}}],["2595",{"2":{"85":3}}],["2594",{"2":{"85":3}}],["2504949184379115",{"2":{"76":2}}],["2585",{"2":{"85":3}}],["258576",{"2":{"30":1}}],["258764",{"2":{"82":1}}],["25825",{"2":{"48":4}}],["254627",{"2":{"30":1}}],["254555",{"2":{"28":2}}],["253984",{"2":{"29":1,"31":2}}],["253849",{"2":{"15":2,"17":1}}],["25",{"2":{"5":2,"25":11,"33":1,"48":2,"79":2}}],["233997",{"2":{"85":1}}],["234767",{"2":{"85":1}}],["236866",{"2":{"85":1}}],["231483",{"2":{"82":1}}],["235356",{"2":{"82":1}}],["239921",{"2":{"79":3}}],["2396",{"2":{"47":1}}],["23019965552513033",{"2":{"76":1}}],["23788",{"2":{"26":1}}],["23",{"2":{"5":1,"13":2,"25":4,"46":2,"47":2}}],["20636222545147498",{"2":{"86":1}}],["206362",{"2":{"85":2}}],["206406",{"2":{"32":1}}],["203",{"2":{"82":2}}],["203451",{"2":{"75":1}}],["201",{"2":{"79":1}}],["201362",{"2":{"29":1,"31":2}}],["204084",{"2":{"75":1}}],["20258969376355607",{"2":{"76":1}}],["20259",{"2":{"75":1}}],["2021",{"2":{"0":25}}],["207482",{"2":{"49":2}}],["20779",{"2":{"26":1}}],["208271",{"2":{"62":2,"64":2,"66":6}}],["208542",{"2":{"28":1}}],["208384",{"2":{"28":1}}],["2005",{"2":{"80":1}}],["2003",{"2":{"19":1}}],["2000",{"2":{"19":1,"25":84,"26":3,"46":32,"47":21,"49":16,"80":18}}],["2001",{"2":{"15":4,"46":28,"47":17,"49":3}}],["200",{"2":{"5":1,"15":9,"43":26,"44":14}}],["20",{"2":{"4":4,"5":18,"15":3,"19":2,"20":12,"25":1,"46":1,"66":2,"76":1,"81":1,"82":8}}],["2×3",{"2":{"79":3}}],["2×3×2",{"2":{"1":1,"15":1}}],["2×2",{"2":{"17":2,"79":1}}],["2×10×3",{"2":{"13":2}}],["2×4",{"2":{"5":1,"15":4}}],["2×4×2",{"2":{"3":1}}],["2",{"2":{"0":10,"1":4,"3":3,"4":3,"5":14,"8":3,"13":6,"15":26,"16":1,"17":10,"19":9,"20":8,"21":4,"23":2,"25":25,"26":5,"28":24,"29":1,"30":8,"31":2,"32":6,"33":3,"34":2,"43":8,"46":2,"47":20,"48":24,"49":6,"61":2,"62":4,"64":6,"65":3,"66":11,"69":2,"75":2,"76":2,"77":8,"79":62,"80":2,"81":1,"82":21,"84":2,"85":8,"86":2}}],["==",{"2":{"20":1,"30":1,"49":1}}],["=>",{"2":{"1":10,"2":10,"3":15,"4":22,"11":6,"15":29,"19":4,"20":29,"22":2,"47":7,"48":18,"49":2,"62":1,"64":6,"66":7,"69":2,"79":1,"85":1}}],["=",{"2":{"0":15,"1":4,"3":4,"4":10,"5":11,"13":7,"15":8,"16":9,"17":4,"18":1,"19":7,"20":13,"21":2,"23":1,"25":5,"26":3,"28":3,"29":1,"30":2,"32":1,"33":1,"43":7,"46":3,"47":2,"48":1,"49":2,"61":3,"62":1,"64":3,"65":8,"68":1,"69":10,"71":1,"74":2,"75":4,"76":84,"77":37,"78":8,"79":2,"80":7,"81":1,"82":3,"84":4}}],["features",{"2":{"69":1}}],["few",{"2":{"64":2}}],["feb",{"2":{"48":6,"80":1}}],["fact",{"2":{"74":1}}],["faceted",{"2":{"69":1}}],["facing",{"2":{"35":1}}],["facilitate",{"2":{"11":2,"80":1}}],["fails",{"2":{"25":1}}],["fail",{"2":{"24":1}}],["favours",{"2":{"68":1}}],["favour",{"2":{"20":1}}],["fallback",{"2":{"11":1}}],["falls",{"2":{"5":2,"79":1}}],["fall",{"2":{"5":2}}],["falses",{"2":{"61":1}}],["false",{"2":{"1":1,"3":5,"11":1,"15":1,"19":2,"20":1,"24":1,"44":28}}],["far",{"2":{"4":1}}],["fast",{"2":{"4":1,"78":1,"80":1}}],["fri",{"2":{"80":2}}],["friendly",{"2":{"27":1}}],["frequency",{"2":{"33":2}}],["freely",{"2":{"17":1}}],["freeunits",{"2":{"5":1}}],["free",{"2":{"3":1,"30":1}}],["fraction",{"2":{"19":1}}],["from",{"2":{"0":3,"1":1,"2":1,"3":3,"4":10,"5":3,"8":1,"15":4,"16":3,"17":1,"18":1,"19":6,"20":1,"21":5,"23":13,"25":1,"30":1,"34":1,"36":1,"37":1,"38":1,"41":1,"42":10,"43":7,"51":1,"64":1,"78":1,"79":1,"80":2,"81":1,"82":2,"85":1}}],["further",{"2":{"40":1,"48":1}}],["future",{"2":{"4":1,"5":1,"20":1,"23":1,"73":1}}],["full",{"2":{"3":1,"4":3}}],["functionality",{"2":{"52":1}}],["functional",{"2":{"27":1}}],["functions",{"0":{"46":1,"77":1},"2":{"15":1,"19":2,"27":1,"32":1,"46":2,"64":1,"67":1,"68":1,"77":2}}],["function",{"2":{"3":1,"4":2,"5":2,"19":12,"20":2,"40":1,"45":2,"46":2,"47":2,"48":4,"49":1,"79":1,"80":1}}],["foo",{"2":{"64":3}}],["follow",{"2":{"46":1,"67":1}}],["following",{"2":{"12":1}}],["four",{"2":{"19":2}}],["found",{"2":{"3":1,"7":1,"20":3,"31":2,"75":1}}],["forms",{"2":{"27":1}}],["formats",{"2":{"10":1}}],["format",{"0":{"41":1},"2":{"2":2,"8":1,"11":1,"36":1,"41":2}}],["forward",{"2":{"4":1,"7":1,"15":2}}],["forwardordered",{"2":{"0":6,"3":1,"4":6,"5":8,"7":3,"13":6,"15":10,"17":6,"19":4,"20":10,"21":1,"25":20,"26":2,"28":6,"43":15,"44":14,"47":9,"48":7,"49":5,"62":1,"64":4,"66":9,"74":2,"75":15,"76":1,"77":41,"79":28,"80":3,"81":6,"82":8,"84":6,"85":2}}],["for",{"2":{"0":12,"1":3,"2":2,"3":7,"4":40,"5":19,"7":2,"8":3,"10":1,"11":4,"15":18,"16":10,"17":5,"18":3,"19":12,"20":8,"21":4,"22":3,"23":5,"24":1,"25":1,"27":1,"28":5,"29":1,"30":1,"34":1,"39":1,"40":5,"42":6,"43":3,"45":1,"48":4,"51":3,"53":1,"54":1,"56":1,"57":2,"59":1,"61":1,"68":1,"69":1,"73":1,"74":2,"75":1,"76":2,"79":1,"80":1,"81":6,"83":2,"85":3}}],["flexible",{"2":{"40":1}}],["float32",{"2":{"26":4}}],["float64",{"2":{"0":3,"1":1,"3":1,"4":1,"5":1,"13":1,"15":9,"17":7,"18":1,"19":3,"20":13,"21":2,"25":7,"26":2,"28":12,"29":2,"30":4,"31":2,"32":2,"33":1,"43":18,"44":14,"47":9,"48":18,"49":5,"62":4,"64":4,"66":11,"74":6,"75":39,"76":9,"77":141,"79":30,"80":1,"81":1,"82":12,"84":3,"85":36}}],["flags",{"2":{"3":1}}],["final",{"2":{"48":1}}],["find",{"2":{"80":1}}],["findfirst",{"2":{"7":1}}],["finds",{"2":{"7":1}}],["fix",{"2":{"20":1}}],["fixed",{"2":{"8":1}}],["field",{"2":{"11":1,"15":1,"20":5,"40":1,"66":1}}],["fields",{"2":{"2":1,"3":1,"4":1,"6":1,"20":5,"23":1,"27":2,"40":3,"41":1}}],["firstindex",{"2":{"32":1}}],["first",{"2":{"3":3,"12":1,"13":1,"16":8,"21":1,"31":1,"43":2,"46":1,"48":1,"79":2}}],["filter",{"2":{"43":1,"44":1}}],["filters",{"2":{"5":1,"79":1}}],["fill",{"2":{"15":5,"20":2,"28":4,"41":1,"80":1}}],["filled",{"2":{"2":1,"10":1}}],["file",{"2":{"0":1,"11":2,"51":1}}],["f",{"2":{"1":5,"3":10,"4":2,"5":1,"13":1,"15":5,"17":3,"19":11,"20":11,"71":1,"79":1,"85":1}}],["ggplot2",{"2":{"69":1}}],["gc",{"2":{"33":6}}],["goals",{"0":{"27":1},"2":{"27":1}}],["good",{"2":{"16":1}}],["globally",{"2":{"24":1}}],["global",{"0":{"21":1},"1":{"22":1,"23":1},"2":{"21":2}}],["gpus",{"0":{"26":1},"1":{"27":1},"2":{"22":1,"26":1,"57":1}}],["gpu",{"0":{"27":1},"2":{"20":2,"26":4,"27":7,"61":1}}],["graphics",{"2":{"69":2}}],["grammar",{"2":{"69":1}}],["gribdatasets",{"2":{"35":1}}],["grid",{"2":{"4":1}}],["gridded",{"2":{"4":1}}],["groupmeans",{"2":{"19":2}}],["grouped",{"2":{"19":1,"49":1}}],["groups",{"2":{"19":12,"47":2,"48":4}}],["groupings",{"2":{"46":1}}],["groupingfunction",{"2":{"19":2}}],["grouping",{"0":{"46":1,"47":1},"2":{"19":9,"45":4,"48":2,"49":1}}],["groupby",{"2":{"19":13,"45":1,"47":13,"48":21,"49":4}}],["group",{"0":{"19":1,"45":1},"1":{"46":1,"47":1,"48":1,"49":1},"2":{"19":9,"46":1,"47":3,"48":13,"49":2}}],["gis",{"2":{"51":2}}],["giving",{"2":{"5":1}}],["given",{"2":{"20":1,"83":1}}],["give",{"2":{"3":1,"4":1,"5":1,"15":1,"28":1,"75":1}}],["gives",{"2":{"0":1,"16":2,"66":1}}],["github",{"2":{"4":1,"66":1}}],["guide",{"2":{"45":1}}],["guarantee",{"2":{"11":1}}],["guaranteed",{"2":{"3":1,"15":1}}],["guessed",{"2":{"2":1,"8":2}}],["guess",{"2":{"0":1,"46":1}}],["gt",{"2":{"1":2,"3":3,"5":1,"15":2,"19":1,"20":2}}],["g",{"2":{"0":1,"3":1,"4":2,"5":1,"13":1,"15":1,"19":1,"36":1,"61":1,"65":1,"71":1,"85":1}}],["gen",{"2":{"15":2}}],["generators",{"0":{"17":1},"2":{"35":1}}],["generator",{"2":{"15":4,"21":4}}],["generates",{"2":{"19":7}}],["generate",{"2":{"3":1,"19":2,"23":1}}],["generated",{"2":{"3":1,"18":1,"40":1}}],["general",{"2":{"11":1}}],["generally",{"2":{"0":1}}],["generic",{"2":{"0":1,"4":1,"65":1}}],["geotiff",{"2":{"10":1}}],["geospatial",{"2":{"4":3,"51":1}}],["gets",{"2":{"79":4}}],["getting",{"2":{"15":1,"48":1}}],["getters",{"0":{"43":1},"1":{"44":1}}],["getter",{"2":{"4":1}}],["get",{"2":{"1":3,"2":1,"3":1,"11":3,"15":4,"18":1,"23":1,"29":1,"43":7,"76":1,"80":1}}],["getindex",{"2":{"0":1,"3":2,"16":3,"17":1,"23":2,"31":1,"42":2}}],["p",{"2":{"85":1}}],["python",{"2":{"35":1}}],["permafrost",{"2":{"56":1}}],["permutation",{"2":{"77":1}}],["permuting",{"2":{"20":2}}],["permute",{"2":{"20":1,"24":1,"68":1}}],["permuteddimsarray",{"2":{"77":2}}],["permutedims",{"2":{"32":1,"77":3}}],["permuted",{"2":{"20":1}}],["periods",{"2":{"19":3}}],["perform",{"2":{"32":1}}],["performed",{"2":{"4":1}}],["performance",{"0":{"33":1,"78":1},"2":{"4":3,"16":1,"51":1}}],["pkg",{"2":{"12":2}}],["pkg>",{"2":{"12":2}}],["put",{"2":{"11":1}}],["pixels",{"2":{"5":1}}],["powerful",{"2":{"55":1,"61":1}}],["polygon",{"2":{"51":1}}],["positions",{"0":{"10":1}}],["position",{"2":{"4":1,"9":1,"10":6}}],["possible",{"2":{"4":2,"5":1,"7":1,"20":1,"26":1,"32":1,"66":1,"67":1}}],["point",{"2":{"0":1,"4":2,"5":1,"9":1,"17":1,"80":1}}],["points",{"2":{"0":6,"4":7,"5":12,"8":2,"9":4,"13":4,"15":7,"17":5,"19":4,"20":9,"21":1,"25":20,"26":2,"28":6,"43":32,"44":28,"47":9,"48":4,"49":5,"62":2,"64":2,"66":4,"74":2,"75":15,"76":1,"77":49,"79":9,"80":1,"81":4,"82":10,"84":4,"85":2}}],["planned",{"2":{"73":1}}],["plasma",{"2":{"72":2}}],["places",{"2":{"68":2}}],["place",{"2":{"27":1,"60":1}}],["placed",{"2":{"20":1}}],["please",{"2":{"4":1}}],["plus",{"2":{"4":1}}],["plots",{"0":{"67":1,"70":1},"1":{"71":1,"72":1,"73":1},"2":{"0":1,"3":1,"11":1,"15":2,"67":2,"68":1,"69":1,"73":1}}],["plotted",{"2":{"0":1,"4":1,"7":1,"9":1,"10":1}}],["plotting",{"2":{"0":1,"69":1}}],["plot",{"2":{"0":3,"2":2,"67":2,"68":2,"69":3}}],["printing",{"2":{"80":1}}],["principles",{"2":{"46":1}}],["prior",{"2":{"20":1}}],["primarily",{"2":{"3":1}}],["primitives",{"2":{"31":2}}],["primitive",{"0":{"3":1}}],["process",{"2":{"57":1,"65":1}}],["providing",{"2":{"51":1}}],["provides",{"2":{"43":1,"45":1,"58":1,"69":1,"83":1}}],["provide",{"2":{"4":2}}],["provided",{"2":{"4":5,"5":3,"8":1,"21":2,"80":1}}],["projected",{"2":{"36":1,"51":1}}],["prod",{"2":{"32":1,"77":2}}],["probably",{"2":{"22":1,"46":1}}],["problems",{"2":{"4":1}}],["property",{"2":{"22":1}}],["properties",{"2":{"2":2,"20":1,"25":1,"41":1,"80":1,"81":2}}],["programmatically",{"2":{"15":1}}],["predicates",{"0":{"44":1},"2":{"44":1}}],["predefined",{"2":{"34":1}}],["prefereble",{"2":{"19":1}}],["preserved",{"2":{"20":1}}],["present",{"2":{"5":1,"17":1,"35":1}}],["pressed",{"2":{"12":1}}],["previously",{"2":{"20":1}}],["previous",{"2":{"3":1,"5":1}}],["precedence",{"2":{"0":1}}],["paaarnet",{"2":{"23":3,"42":3}}],["padding",{"2":{"48":1}}],["pad",{"2":{"19":5}}],["past",{"2":{"15":1}}],["pass",{"2":{"11":1,"16":1,"20":3,"23":2,"41":1,"48":1,"66":1,"69":2}}],["passing",{"2":{"3":2,"4":1,"19":1,"20":1,"25":1}}],["passed",{"2":{"0":1,"2":1,"3":5,"5":3,"17":1,"20":6,"21":1,"23":1,"27":1,"40":1,"79":2}}],["partly",{"2":{"82":1}}],["part",{"2":{"23":1,"66":1}}],["parentheses",{"2":{"20":1}}],["parent",{"2":{"15":1,"20":5,"21":4,"23":13,"24":1,"26":2,"27":1,"33":2,"41":1,"42":9,"61":5,"78":1}}],["parameters",{"2":{"3":1}}],["parameter",{"2":{"0":1,"11":1}}],["pair",{"2":{"11":1,"19":1,"20":4}}],["pairs",{"2":{"11":1,"19":1,"20":8}}],["packages",{"2":{"35":2,"36":1,"46":1,"67":1,"83":1}}],["package",{"2":{"4":1,"12":1,"13":1,"19":1,"52":1,"54":1,"55":1}}],["d=rand",{"2":{"74":1}}],["draw",{"2":{"69":3}}],["dropdims",{"2":{"32":1,"77":1}}],["dropped",{"2":{"23":2,"42":2}}],["drop=true",{"2":{"21":3}}],["dynamicgrids",{"0":{"57":1},"2":{"27":1,"57":2}}],["dd",{"2":{"5":3,"20":3,"34":1,"39":2,"46":1,"65":2,"66":1,"68":1,"83":1}}],["da4",{"2":{"33":1}}],["da5",{"2":{"32":2}}],["das",{"2":{"23":1}}],["daily",{"2":{"19":1}}],["dayofyear",{"2":{"46":2,"48":3}}],["dayofweek",{"2":{"46":1}}],["day",{"2":{"19":3,"46":2,"48":4}}],["days",{"2":{"4":1,"48":1}}],["da3",{"2":{"16":2}}],["da2",{"2":{"16":2,"20":7,"30":5}}],["da1",{"2":{"16":2,"20":7,"29":2,"30":1,"31":2}}],["da",{"2":{"4":2,"20":10,"28":2,"30":2}}],["dataframe",{"0":{"85":1},"2":{"85":8}}],["dataframes",{"0":{"83":1},"1":{"84":1,"85":1,"86":1},"2":{"5":1,"83":1,"84":1}}],["data2",{"2":{"84":1,"85":2,"86":1}}],["data2=rand",{"2":{"84":1}}],["data1",{"2":{"84":2,"85":2,"86":1}}],["dataset",{"2":{"36":1,"54":1}}],["datasets",{"0":{"16":1},"2":{"4":1,"36":1,"52":1}}],["dataapi",{"2":{"19":1}}],["data=autovalues",{"2":{"4":1}}],["data",{"2":{"0":2,"1":1,"2":1,"4":17,"11":1,"13":2,"15":5,"16":6,"18":1,"19":2,"20":6,"21":2,"23":3,"25":8,"26":2,"27":2,"34":1,"35":1,"40":2,"48":1,"51":2,"52":1,"53":1,"56":1,"57":1,"59":1,"61":1,"64":3,"69":11,"83":1,"84":2,"85":2,"86":1}}],["date",{"2":{"4":2,"80":1}}],["datetime",{"2":{"0":13,"5":1,"15":4,"19":2,"25":42,"46":5,"47":3,"49":11,"80":10,"81":1}}],["dates",{"2":{"0":3,"4":2,"15":1,"19":1,"25":1,"46":1,"80":1,"84":1}}],["d",{"0":{"24":1},"1":{"25":1},"2":{"3":2,"4":2,"13":1,"17":1,"20":12,"24":2,"25":6,"64":2,"69":1,"71":1,"74":1,"75":6,"76":23,"77":28,"78":2,"81":3,"85":2}}],["dsl",{"2":{"55":1}}],["dst",{"2":{"21":6}}],["ds",{"2":{"3":1,"4":2,"20":2,"21":2,"69":2}}],["docs",{"2":{"42":2}}],["documented",{"2":{"21":1}}],["dot",{"2":{"24":1}}],["dotview",{"2":{"3":1}}],["doing",{"2":{"17":1,"21":1,"48":1,"64":1,"82":1}}],["do",{"2":{"4":2,"11":1,"12":1,"19":1,"20":3,"32":1,"48":1,"62":1,"66":2}}],["doesn",{"2":{"17":1,"30":1,"31":1,"65":1}}],["does",{"2":{"4":1,"20":1,"24":1,"40":1,"46":1,"48":1,"75":1,"77":1,"83":1}}],["done",{"2":{"15":1,"20":1,"83":1}}],["don",{"2":{"2":1,"4":1,"21":4,"30":1,"64":1,"66":1,"69":1}}],["direct",{"2":{"35":1}}],["directly",{"2":{"17":1,"33":1,"35":1,"48":1,"69":3,"78":1,"86":1}}],["difficult",{"2":{"27":1}}],["different",{"0":{"72":1},"2":{"3":1,"5":3,"10":1,"11":1,"20":1,"43":1}}],["divide",{"2":{"19":1}}],["di",{"2":{"17":2}}],["dicts",{"2":{"60":1}}],["dictionaries",{"2":{"27":1}}],["dict",{"2":{"4":4,"11":3,"15":1,"19":3,"20":1,"28":6,"47":7,"48":11,"49":2,"64":2}}],["dictates",{"2":{"2":1}}],["discrete",{"2":{"48":1}}],["discarded",{"2":{"5":1,"15":1}}],["disk",{"2":{"35":1}}],["diskarrays",{"0":{"35":1},"2":{"19":1,"35":3,"52":1}}],["distinguishing",{"2":{"43":1}}],["distinguish",{"2":{"15":1}}],["distance",{"2":{"4":2,"5":1}}],["dispatch",{"2":{"0":1,"11":1}}],["dimmatrix",{"2":{"68":1}}],["dimunitrange",{"2":{"25":2}}],["dimvector",{"2":{"21":1,"69":1}}],["dimgroupbyarray",{"2":{"19":6,"47":1,"48":8,"49":1}}],["dimname",{"2":{"19":1}}],["dimnum",{"2":{"1":4,"15":4,"39":1}}],["dimcolumn",{"2":{"18":1}}],["dimtype",{"2":{"19":1}}],["dimtables",{"2":{"69":1}}],["dimtable",{"2":{"18":4,"85":4}}],["dimtuple",{"2":{"16":1,"43":4}}],["dimpoints",{"2":{"17":4}}],["dimindices",{"2":{"17":9,"30":2,"38":1,"82":1}}],["dimz",{"2":{"5":2,"16":4}}],["dimselector",{"0":{"82":1}}],["dimselectors",{"2":{"17":7,"82":3}}],["dimsmatch",{"2":{"3":2}}],["dimstoreduce",{"2":{"3":1}}],["dimstacks",{"0":{"74":1},"1":{"75":1,"76":1,"77":1,"78":1},"2":{"24":1,"69":1}}],["dimstackinterface",{"2":{"23":2,"42":6}}],["dimstack",{"2":{"2":1,"16":19,"20":1,"21":2,"24":1,"42":7,"43":1,"61":2,"69":2,"74":3,"75":11,"76":2,"77":25,"83":1,"84":2,"85":2,"86":2}}],["dims2indices",{"2":{"2":1}}],["dims=",{"2":{"20":3,"21":1,"25":4}}],["dims=ti",{"2":{"0":1,"16":2,"19":1,"21":1,"32":1}}],["dims=z",{"2":{"0":1}}],["dims=y",{"2":{"0":1,"20":1,"77":11}}],["dims=x",{"2":{"0":1}}],["dims",{"0":{"24":1,"32":1,"37":1,"39":1},"1":{"25":1,"38":1,"39":1},"2":{"0":4,"1":11,"2":8,"3":13,"4":18,"5":6,"11":2,"13":3,"15":43,"16":3,"17":14,"18":1,"19":9,"20":33,"21":13,"23":26,"24":3,"25":10,"26":1,"28":14,"29":3,"30":5,"31":4,"32":4,"33":1,"34":1,"36":1,"37":1,"38":1,"39":5,"40":2,"41":2,"42":17,"43":24,"44":29,"47":9,"48":19,"49":6,"61":5,"62":2,"64":4,"66":6,"74":5,"75":30,"76":5,"77":114,"79":15,"80":1,"81":1,"82":5,"84":4,"85":27}}],["dimarrays",{"0":{"28":1},"1":{"29":1,"30":1,"31":1,"32":1,"33":1},"2":{"28":1}}],["dimarrayinterface",{"2":{"23":2,"42":6}}],["dimarray",{"0":{"29":1},"2":{"0":4,"1":5,"2":1,"3":2,"4":6,"5":11,"13":7,"15":40,"16":11,"17":6,"18":2,"19":10,"20":10,"21":1,"24":2,"25":11,"26":2,"27":1,"28":22,"29":4,"30":4,"31":2,"32":2,"33":1,"35":1,"42":4,"43":7,"47":13,"48":39,"49":8,"56":1,"59":1,"61":3,"62":2,"64":2,"66":6,"69":5,"74":1,"75":3,"79":16,"80":4,"81":2,"82":5,"84":1,"85":1}}],["dim",{"2":{"0":11,"1":2,"2":4,"3":9,"4":12,"11":2,"15":8,"18":3,"20":16,"29":1,"32":1,"34":3,"38":1,"69":1,"84":1}}],["dimensionmismatch",{"2":{"25":1,"75":1}}],["dimensionalarray",{"2":{"69":1}}],["dimensionality",{"2":{"21":1}}],["dimensional",{"0":{"24":1,"30":1},"1":{"25":1},"2":{"0":1,"3":1,"16":1,"20":1,"23":2,"38":1,"45":1,"69":1,"76":1}}],["dimensionaldata",{"0":{"36":1},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1},"2":{"0":22,"1":9,"2":5,"3":20,"4":35,"5":21,"6":1,"7":6,"8":5,"9":3,"10":6,"11":4,"12":3,"13":1,"15":20,"16":3,"17":3,"18":4,"19":10,"20":20,"21":5,"22":3,"23":8,"25":3,"26":2,"27":3,"28":1,"31":6,"34":3,"35":1,"36":1,"37":1,"40":1,"41":2,"42":10,"43":3,"45":1,"46":2,"51":2,"52":1,"53":1,"60":1,"61":1,"62":1,"64":1,"68":1,"69":1,"74":1,"79":2,"80":1,"83":1,"84":1}}],["dimension",{"0":{"17":1,"25":1,"29":1,"38":1,"49":1},"2":{"0":21,"1":27,"2":11,"3":32,"4":24,"5":3,"10":2,"11":2,"15":75,"16":3,"17":9,"18":7,"19":2,"20":33,"21":9,"23":4,"24":2,"25":2,"28":2,"30":3,"31":1,"32":3,"34":2,"38":1,"39":5,"40":1,"41":2,"42":2,"43":6,"45":1,"47":1,"49":2,"62":1,"63":1,"64":4,"66":1,"74":1,"76":1,"77":1,"79":2,"80":2,"81":1,"83":2,"85":2}}],["dimensions",{"0":{"0":1,"34":1},"1":{"1":1,"2":1,"3":1},"2":{"0":30,"1":13,"2":7,"3":32,"4":39,"5":11,"6":1,"7":6,"8":5,"9":3,"10":8,"11":5,"15":27,"16":3,"17":5,"18":1,"19":3,"20":24,"21":9,"23":6,"24":2,"25":3,"28":1,"30":4,"31":4,"33":1,"34":8,"37":2,"38":1,"42":4,"43":3,"44":2,"49":2,"63":2,"64":1,"68":1,"74":1,"75":1,"76":1,"79":1,"81":1,"83":2,"84":1,"85":2}}],["during",{"2":{"0":1,"35":1,"57":1}}],["declarative",{"2":{"62":1,"69":1}}],["dec",{"2":{"48":4,"80":1}}],["december",{"2":{"19":2}}],["demo",{"2":{"46":1}}],["developers",{"2":{"40":1,"52":1}}],["development",{"2":{"35":1,"67":1}}],["devicebuffer",{"2":{"26":1}}],["dest",{"2":{"20":4}}],["descriptive",{"2":{"19":1}}],["designed",{"2":{"35":1,"36":1}}],["design",{"2":{"16":2}}],["deprecated",{"2":{"20":1,"67":1}}],["depreciated",{"2":{"5":1}}],["dependencies",{"2":{"51":1}}],["dependency",{"2":{"35":1}}],["dependent",{"2":{"0":1}}],["dependentdim",{"2":{"0":4}}],["depending",{"2":{"1":1,"15":1}}],["detect",{"2":{"4":2,"15":4,"41":1}}],["detected",{"2":{"4":4,"41":1,"80":2,"81":5}}],["determine",{"2":{"7":1,"80":1}}],["determined",{"2":{"4":1}}],["determines",{"2":{"3":1,"17":1}}],["details",{"2":{"0":1,"23":2,"34":1}}],["definition",{"2":{"23":2,"42":2}}],["defining",{"2":{"4":2}}],["defines",{"2":{"4":1,"8":1,"17":1,"20":1,"23":2,"42":3,"43":1,"55":1}}],["defined",{"2":{"3":1,"4":1,"16":1,"20":3,"34":1,"40":1,"47":1}}],["define",{"2":{"0":1,"3":1,"4":1,"9":1,"19":1,"25":1,"28":1,"43":1,"47":1,"81":1,"82":1,"84":1}}],["default",{"0":{"71":1},"2":{"0":1,"1":3,"3":11,"4":7,"10":1,"15":4,"17":2,"19":5,"22":1,"67":1,"68":1}}],["w",{"2":{"85":1}}],["would",{"2":{"17":2,"24":1,"43":1,"48":1}}],["works",{"2":{"4":1,"20":1,"24":2,"31":2,"48":2,"57":1,"75":2}}],["work",{"2":{"2":1,"4":4,"5":1,"10":2,"11":1,"15":1,"16":1,"19":1,"20":1,"21":1,"24":2,"27":3,"31":3,"34":1,"40":2,"46":1,"52":1,"65":1,"67":1,"68":2,"77":1,"80":1}}],["working",{"2":{"1":1,"16":2}}],["word",{"2":{"0":1}}],["want",{"2":{"12":1,"21":4,"23":2,"43":1,"48":2,"62":1,"66":2}}],["way",{"2":{"4":1,"20":1,"25":1,"40":1,"64":1,"66":1}}],["warning",{"2":{"3":1,"31":2,"64":1}}],["warn",{"2":{"3":1}}],["whose",{"2":{"20":3}}],["whole",{"2":{"5":2}}],["what",{"2":{"20":1,"43":2,"46":1,"48":1,"62":1,"64":1,"66":1}}],["whatever",{"2":{"17":1,"43":1}}],["which",{"2":{"3":1,"4":1,"19":1,"20":4,"21":1,"24":1,"32":1,"43":1,"51":1,"72":1,"79":3,"82":1}}],["whichever",{"2":{"3":1}}],["while",{"2":{"3":1,"11":1,"16":2,"17":1}}],["wherever",{"2":{"21":1,"48":1}}],["where",{"2":{"3":4,"4":9,"5":7,"7":1,"8":2,"9":1,"10":2,"11":1,"15":1,"16":1,"20":4,"32":1,"43":1,"48":1,"61":1,"64":1,"79":4,"81":1}}],["whether",{"2":{"1":1,"15":1}}],["whenever",{"2":{"27":1}}],["when",{"2":{"0":5,"2":1,"4":6,"5":2,"11":1,"16":2,"17":1,"19":3,"20":1,"21":3,"22":1,"27":1,"30":1,"31":1,"38":1,"41":1,"48":1,"75":1,"80":1,"81":1}}],["write",{"2":{"86":2}}],["written",{"2":{"20":1}}],["writing",{"2":{"3":1,"20":1}}],["wraps",{"2":{"38":1}}],["wrapping",{"2":{"3":1,"4":1,"43":5,"52":1,"80":4}}],["wrapper",{"2":{"4":4,"11":1,"19":1,"20":2,"21":4,"22":2,"34":1,"48":1,"64":1}}],["wrappers",{"2":{"0":2,"4":1,"5":1,"11":2,"22":1,"28":2,"30":1,"61":1}}],["wrapped",{"2":{"3":2,"19":1,"20":1,"34":1,"65":1}}],["wrap",{"2":{"0":2,"19":3,"34":3,"80":1}}],["weds",{"2":{"80":2}}],["were",{"2":{"31":2}}],["well",{"2":{"18":1,"30":1,"35":1,"79":1}}],["weeks",{"2":{"4":1}}],["week",{"2":{"4":1}}],["we",{"2":{"0":1,"4":3,"5":1,"16":1,"17":2,"19":2,"20":2,"21":8,"24":3,"25":1,"28":2,"29":1,"30":2,"34":1,"42":2,"43":1,"46":1,"47":3,"48":13,"49":2,"52":1,"62":2,"69":2,"75":2,"76":3,"79":3,"80":6,"81":1,"82":4,"85":2,"86":1}}],["winter",{"2":{"48":1}}],["wish",{"2":{"5":1,"69":1}}],["wider",{"2":{"41":1}}],["wide",{"2":{"4":1,"51":1,"83":1}}],["widely",{"2":{"1":1}}],["within",{"2":{"5":1,"17":1,"79":3}}],["without",{"2":{"3":1,"4":2,"11":1,"16":1,"20":2,"30":1,"40":1,"61":1,"65":1,"76":1,"80":1}}],["with",{"0":{"24":1,"29":1,"73":1},"1":{"25":1},"2":{"0":3,"1":5,"2":2,"3":10,"4":13,"5":10,"7":1,"8":1,"10":8,"11":1,"12":1,"15":12,"16":8,"17":7,"18":1,"19":7,"20":14,"21":6,"23":3,"24":5,"25":2,"26":1,"27":1,"28":1,"29":1,"30":3,"31":2,"32":1,"33":3,"34":5,"38":1,"40":2,"42":2,"43":1,"44":1,"45":3,"47":8,"48":11,"49":3,"52":2,"53":1,"61":2,"63":1,"64":5,"65":1,"67":2,"68":1,"69":5,"75":5,"76":2,"77":1,"78":1,"79":10,"80":1,"81":2,"82":3,"83":1,"85":1}}],["will",{"2":{"0":7,"1":1,"2":2,"3":7,"4":13,"5":9,"7":2,"8":2,"10":3,"11":2,"15":10,"16":7,"18":1,"19":5,"20":15,"21":1,"30":2,"39":2,"40":2,"43":1,"46":2,"64":1,"65":1,"67":1,"68":3,"77":1,"79":1,"80":2,"85":2}}],["btime",{"2":{"78":2}}],["blue",{"2":{"72":1,"73":1}}],["block",{"2":{"23":1}}],["blocks",{"2":{"23":1,"48":2}}],["blockwidth",{"2":{"23":4}}],["b=rand",{"2":{"74":1}}],["b=falses",{"2":{"61":1}}],["b=1",{"2":{"13":1,"29":1}}],["built",{"2":{"69":1}}],["building",{"2":{"35":1}}],["but",{"2":{"0":1,"1":2,"3":9,"4":4,"5":1,"8":1,"11":1,"15":2,"16":3,"17":3,"19":6,"20":1,"23":2,"25":1,"26":1,"30":2,"31":1,"35":2,"36":1,"43":1,"46":1,"48":1,"49":1,"51":1,"55":1,"62":1,"63":1,"64":2,"65":1,"66":1,"68":1,"79":1,"80":2,"81":1,"82":1}}],["bin",{"2":{"48":4}}],["binning",{"0":{"48":1},"2":{"19":2}}],["bins",{"2":{"19":15,"45":1,"48":5}}],["bitmatrix",{"2":{"61":2}}],["bit",{"2":{"13":1}}],["bar",{"2":{"64":3}}],["bayesian",{"2":{"54":1}}],["band",{"2":{"18":2}}],["backend",{"2":{"27":1}}],["back",{"2":{"5":1,"11":1}}],["basic",{"2":{"31":1}}],["basics",{"0":{"13":1}}],["basically",{"2":{"3":1,"19":1,"64":1}}],["base",{"2":{"3":2,"5":1,"15":10,"16":3,"19":1,"20":1,"21":7,"23":4,"24":2,"25":2,"27":1,"31":1,"42":2,"77":1,"80":2}}],["basetypeof",{"2":{"3":5}}],["basedims",{"2":{"3":2}}],["based",{"2":{"2":1,"23":1,"35":1,"64":1}}],["brackets",{"2":{"64":1}}],["break",{"2":{"48":1}}],["breaking",{"2":{"4":1,"23":1,"65":1}}],["broken",{"2":{"66":1}}],["brought",{"2":{"34":1}}],["brodcasting",{"2":{"21":2}}],["broadcasts",{"0":{"24":1},"1":{"25":1},"2":{"21":5,"24":2,"27":1,"77":1}}],["broadcast",{"0":{"24":1},"1":{"25":1},"2":{"19":3,"20":11,"21":4,"24":6,"25":7,"26":1,"35":1,"77":2}}],["broadcasting",{"2":{"3":1,"20":2,"21":5,"24":2,"47":1}}],["bonus",{"2":{"24":1}}],["box",{"2":{"23":1,"67":1}}],["boundaries",{"2":{"5":1}}],["bounds",{"2":{"4":9,"8":6,"43":8,"80":1,"81":2}}],["both",{"2":{"3":1,"4":1,"35":2,"52":1,"63":1,"75":1}}],["bool",{"2":{"1":3,"3":5,"4":2,"5":1,"15":10,"19":1,"21":2,"61":7,"79":2}}],["bytes",{"2":{"33":2,"78":2}}],["by",{"0":{"19":1,"45":1,"49":1},"1":{"46":1,"47":1,"48":1,"49":1},"2":{"0":1,"1":2,"3":13,"4":8,"5":4,"9":1,"15":2,"17":1,"19":8,"20":2,"25":2,"29":1,"33":2,"34":1,"35":1,"40":2,"47":2,"48":2,"49":3,"68":1,"69":2,"72":1,"79":4}}],["b",{"2":{"0":7,"3":4,"4":2,"5":11,"13":3,"15":9,"16":3,"17":1,"20":4,"25":1,"29":3,"31":2,"34":2,"49":3,"61":2,"62":2,"64":5,"65":3,"66":3,"67":1,"68":1,"71":2,"72":1,"74":1,"75":4,"76":23,"77":40,"78":2,"79":27,"81":3,"82":3,"85":2}}],["being",{"2":{"69":1}}],["best",{"2":{"66":1}}],["benchmarktools",{"2":{"33":3,"78":1}}],["benchmark",{"2":{"33":3}}],["before",{"2":{"21":9}}],["become",{"2":{"85":1}}],["becomes",{"2":{"18":2}}],["because",{"2":{"19":2,"24":1}}],["behavior",{"2":{"74":1}}],["behaviour",{"2":{"4":4,"5":1,"6":1,"16":2,"19":1,"20":1,"41":1,"67":1,"80":1}}],["behaviours",{"2":{"4":1,"52":1,"65":1}}],["behaves",{"2":{"17":2,"36":1}}],["begin+1",{"2":{"31":1}}],["beginendsteprange",{"2":{"10":2}}],["beginendrange",{"2":{"10":2}}],["begin",{"0":{"31":1},"2":{"10":4,"31":2}}],["better",{"2":{"5":1}}],["between",{"2":{"0":1,"4":5,"5":21,"10":1,"11":1,"15":1,"16":2}}],["been",{"2":{"2":1,"3":1,"16":1,"20":1}}],["be",{"2":{"0":5,"1":5,"2":4,"3":11,"4":33,"5":17,"6":1,"7":2,"8":3,"10":4,"11":3,"12":1,"15":10,"16":4,"17":3,"19":8,"20":16,"21":2,"22":1,"23":3,"24":1,"25":1,"27":4,"30":3,"31":1,"32":1,"34":3,"36":1,"38":1,"40":1,"41":1,"46":1,"48":1,"60":1,"61":2,"62":1,"64":1,"66":1,"69":1,"75":1,"77":1,"79":2,"80":3,"81":2}}],["ecosystem",{"2":{"83":1}}],["edges",{"2":{"48":1}}],["edge",{"2":{"19":1}}],["equally",{"2":{"19":1}}],["equivalent",{"2":{"16":1,"17":1,"21":2}}],["estimate",{"2":{"33":4}}],["essentially",{"2":{"17":1,"19":1}}],["especially",{"2":{"17":1,"21":1,"68":1}}],["effects",{"2":{"15":2}}],["ensuring",{"2":{"83":1}}],["ensure",{"2":{"21":4}}],["enforce",{"2":{"74":1}}],["entries",{"2":{"64":2}}],["entry",{"2":{"19":3,"47":7,"48":11,"49":2}}],["engine",{"2":{"57":1}}],["enables",{"2":{"35":1}}],["enable",{"2":{"8":1}}],["end",{"0":{"31":1},"2":{"5":4,"9":1,"10":6,"19":3,"20":1,"31":3,"43":1}}],["evaluations",{"2":{"33":2}}],["evaluated",{"2":{"5":1}}],["everything",{"2":{"36":1,"60":1,"64":1}}],["everywhere",{"2":{"34":1}}],["every",{"2":{"4":1,"5":1,"8":1,"20":2}}],["even",{"2":{"4":1,"17":1,"24":2,"31":1,"65":1,"77":1,"80":1}}],["error",{"2":{"3":2,"5":2,"25":1,"30":2,"64":1,"75":1}}],["errors",{"2":{"2":1,"3":1}}],["empty",{"2":{"3":1,"15":2,"23":2,"42":2,"81":1}}],["eltype",{"2":{"21":2,"61":2,"74":4,"75":22,"76":4,"77":88,"84":2,"85":26}}],["else",{"2":{"2":1,"19":1,"60":1,"64":1}}],["element",{"2":{"0":1,"2":1,"13":1,"15":2,"19":2,"25":3,"29":1,"30":2,"31":1,"43":2,"46":8,"47":7,"48":13,"49":1,"75":1,"76":2,"77":1,"79":3,"80":3,"86":1}}],["either",{"2":{"1":1,"2":1,"3":1,"4":2,"11":1,"15":2,"17":1,"19":4,"21":4}}],["easy",{"2":{"69":1}}],["easiest",{"2":{"40":1}}],["easier",{"2":{"22":1,"39":1}}],["easily",{"2":{"0":1,"4":1,"36":2,"64":1}}],["early",{"2":{"23":2}}],["eachindex",{"2":{"38":2}}],["eachslice",{"2":{"21":4,"25":2,"32":1,"49":1}}],["each",{"2":{"0":1,"3":2,"4":5,"5":2,"8":1,"16":1,"17":2,"18":1,"19":1,"20":1,"24":1,"25":1,"43":2,"47":1,"67":1,"69":1,"76":1,"78":1,"80":1,"85":3}}],["except",{"2":{"24":1,"27":1}}],["exception",{"2":{"21":2}}],["exact",{"2":{"4":1,"9":1,"17":2,"19":1}}],["exactly",{"2":{"4":1,"5":1,"48":1,"79":1}}],["examples",{"2":{"0":2,"20":1,"21":1,"36":2}}],["example",{"0":{"25":1,"84":1},"2":{"0":5,"1":4,"3":2,"4":5,"5":7,"15":12,"16":2,"17":2,"18":1,"19":2,"20":5,"21":3,"25":1,"27":1,"40":1,"43":1,"69":2}}],["extrema",{"2":{"32":1,"77":2}}],["extra",{"2":{"0":1,"81":1}}],["extent",{"2":{"43":9}}],["extents",{"2":{"43":2}}],["extensible",{"2":{"36":1,"40":1}}],["extension",{"2":{"24":1,"55":1}}],["extends",{"2":{"51":1,"53":1}}],["extend",{"2":{"16":1}}],["extended",{"2":{"4":1,"23":2,"36":2}}],["extending",{"0":{"36":1},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1},"2":{"4":3,"20":1,"37":1}}],["exploratory",{"2":{"54":1}}],["explicit",{"2":{"4":1,"8":1,"42":1}}],["explicitly",{"2":{"4":2,"8":1,"19":1,"20":2,"21":4}}],["expected",{"2":{"21":1}}],["expression",{"2":{"15":3,"20":1}}],["exported",{"0":{"1":1,"2":1}}],["existing",{"2":{"5":1,"20":1,"23":1,"45":1}}],["exists",{"2":{"3":1,"51":1}}],["exist",{"2":{"2":1,"60":1}}],["e",{"2":{"0":1,"3":1,"4":2,"5":2,"13":1,"15":1,"17":1,"19":1,"36":1,"49":1,"61":1,"65":1,"71":1,"72":1,"75":2,"81":3,"85":1}}],["etc",{"2":{"0":2,"3":1,"16":1,"20":2}}],["ll",{"2":{"69":2}}],["l",{"2":{"43":2,"62":2,"64":2,"66":3,"80":9,"85":1}}],["library",{"2":{"69":1}}],["lines",{"2":{"69":2}}],["line",{"2":{"67":1,"69":1}}],["linearmap",{"2":{"4":1}}],["list",{"2":{"19":1,"72":1}}],["listed",{"2":{"8":1,"44":1,"64":1}}],["little",{"2":{"5":1,"13":1}}],["lies",{"2":{"16":2}}],["lie",{"2":{"5":1}}],["likely",{"2":{"4":1,"23":2}}],["like",{"0":{"75":1,"76":1},"2":{"0":1,"3":2,"4":5,"5":2,"15":1,"16":1,"17":4,"19":2,"20":3,"22":1,"30":3,"32":1,"34":1,"38":1,"41":1,"43":2,"48":3,"51":1,"62":1,"63":1,"64":1,"66":1,"69":4,"74":1,"75":1,"77":1,"79":7,"81":1,"82":2}}],["legend",{"2":{"67":1}}],["less",{"2":{"48":1}}],["letting",{"2":{"34":1}}],["let",{"2":{"33":1,"46":2,"47":1,"48":1,"69":3}}],["lets",{"2":{"11":1,"22":1,"41":1}}],["left",{"2":{"13":3,"23":1}}],["leans",{"2":{"26":1}}],["leave",{"2":{"15":1}}],["leaves",{"2":{"3":1}}],["leap",{"2":{"4":1}}],["least",{"2":{"3":1,"23":4}}],["level",{"2":{"3":2,"69":1}}],["length=365",{"2":{"46":1}}],["lengths",{"2":{"3":1,"75":1}}],["length",{"2":{"0":1,"3":6,"4":5,"8":1,"15":4,"19":4,"21":2,"23":3,"38":1,"42":2,"83":1}}],["lazily",{"2":{"83":1}}],["lazy",{"2":{"18":1,"35":1}}],["largest",{"2":{"77":1,"83":1}}],["large",{"2":{"52":1}}],["larger",{"2":{"25":1}}],["language",{"2":{"26":1}}],["lastindex",{"2":{"32":1}}],["last",{"2":{"19":2,"31":1,"43":1}}],["layermetadata",{"2":{"23":1,"64":1}}],["layerdims",{"2":{"23":5,"42":2,"64":1}}],["layernames=nothing",{"2":{"18":1}}],["layered",{"2":{"16":2}}],["layer",{"2":{"16":5,"21":2,"27":2,"30":1,"69":1,"76":1,"77":1,"83":2,"85":1}}],["layersfrom=",{"2":{"85":2}}],["layersfrom=nothing",{"2":{"16":1,"18":1}}],["layersfrom",{"2":{"18":1}}],["layers",{"2":{"16":9,"18":1,"20":1,"21":5,"61":2,"74":4,"75":9,"76":2,"77":28,"78":2,"83":2,"84":1,"85":1}}],["layout",{"2":{"0":1,"69":2}}],["later",{"2":{"19":1}}],["latitude",{"2":{"0":1}}],["lat",{"2":{"0":1}}],["labelled",{"2":{"67":1}}],["labelling",{"2":{"15":1}}],["labels=x",{"2":{"48":2}}],["labels",{"2":{"11":1,"19":21,"68":1}}],["label",{"2":{"0":3,"2":5,"34":1}}],["lt",{"2":{"0":12,"1":2,"3":4,"5":1,"15":2,"39":3,"57":1,"58":1,"76":1}}],["lot",{"2":{"48":1,"73":1}}],["losing",{"2":{"19":1,"61":1}}],["looping",{"2":{"83":1}}],["loop",{"2":{"83":1}}],["look",{"2":{"46":1}}],["lookuparray",{"2":{"66":1}}],["lookupdim",{"2":{"20":1}}],["lookupcomponent",{"2":{"20":1}}],["lookuptrait",{"2":{"6":1,"7":1,"8":1,"9":1,"10":1,"20":1}}],["lookups",{"0":{"4":1,"80":1},"1":{"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1},"2":{"2":3,"3":2,"4":34,"5":11,"6":1,"7":6,"8":5,"9":3,"10":6,"11":4,"15":1,"17":2,"20":3,"21":1,"28":1,"34":2,"38":1,"43":1,"51":1,"62":1,"79":1,"80":3,"81":1,"82":1}}],["lookup",{"0":{"6":1,"21":1,"81":1},"1":{"7":1,"8":1,"9":1,"10":1,"22":1,"23":1},"2":{"0":4,"1":1,"2":13,"3":2,"4":52,"5":4,"6":2,"7":6,"9":1,"10":4,"15":9,"17":2,"19":2,"20":14,"21":5,"36":3,"38":1,"41":3,"43":18,"44":8,"48":2,"63":1,"64":1,"66":1,"74":1,"79":2,"80":14,"81":4}}],["loosely",{"2":{"6":1}}],["location",{"2":{"9":1}}],["located",{"2":{"5":1}}],["locus",{"2":{"0":1,"4":13,"5":3,"9":2,"10":5,"43":6}}],["lowerbound",{"2":{"8":1}}],["lower",{"2":{"5":1,"8":1}}],["low",{"2":{"3":1}}],["long",{"2":{"39":1,"40":1,"78":1}}],["longitudes",{"2":{"4":1}}],["longitude",{"2":{"0":1}}],["longer",{"2":{"0":1,"3":1,"4":1}}],["lon",{"2":{"0":1}}],["loading",{"2":{"0":1}}],["load",{"2":{"0":1,"4":1,"46":1,"51":1,"58":1}}],["csv",{"0":{"86":1},"2":{"83":1,"86":5}}],["c=rand",{"2":{"74":1}}],["cryogridoutput",{"2":{"56":1}}],["cryogrid",{"0":{"56":1},"2":{"56":2}}],["crs",{"2":{"51":1}}],["create",{"2":{"4":2,"10":2,"13":1,"15":4,"19":1,"20":1,"21":2,"26":1,"34":1,"46":2,"66":1,"69":1,"79":1,"80":5}}],["created",{"2":{"0":1}}],["creating",{"2":{"0":1,"28":1,"69":1}}],["climate",{"2":{"53":1}}],["climatebase",{"0":{"53":1},"2":{"53":1}}],["cloud",{"2":{"35":1}}],["closest",{"2":{"79":1}}],["close",{"2":{"23":3,"79":1}}],["closely",{"2":{"21":4,"52":1}}],["closed",{"2":{"5":3,"48":35}}],["closedinterval",{"2":{"5":1}}],["clashes",{"2":{"0":1,"5":1}}],["cycling",{"2":{"4":1}}],["cyclical",{"2":{"80":1}}],["cyclicbins",{"2":{"19":4}}],["cyclic",{"2":{"4":5,"19":1,"80":5}}],["cycle=month",{"2":{"80":1}}],["cycle=24",{"2":{"48":1}}],["cycle=12",{"2":{"48":3}}],["cycles",{"2":{"19":1,"80":1}}],["cycled",{"2":{"4":3}}],["cycle",{"2":{"4":9,"19":5}}],["cua2",{"2":{"26":2}}],["cua",{"2":{"26":2}}],["cuarray",{"2":{"20":1,"26":2,"61":1}}],["cuda",{"0":{"26":1},"1":{"27":1},"2":{"26":2,"27":1}}],["currently",{"2":{"24":1}}],["current",{"2":{"4":1,"15":1,"21":1}}],["curresponding",{"2":{"4":2}}],["customise",{"2":{"65":1}}],["custom=dd",{"2":{"20":1}}],["custom=10",{"2":{"20":1}}],["custom",{"2":{"0":4,"3":1,"18":2,"19":1,"20":9,"27":1,"36":2,"49":1}}],["center",{"2":{"5":5,"9":2,"10":4,"43":7,"66":1,"81":1}}],["central",{"2":{"0":1}}],["cellular",{"2":{"57":1}}],["cells",{"2":{"9":1,"10":1,"79":1}}],["cell",{"2":{"3":1,"5":1}}],["cheap",{"2":{"69":1}}],["checked",{"2":{"24":1}}],["checks",{"2":{"21":4,"24":2}}],["checking",{"2":{"21":1}}],["check=true",{"2":{"3":1}}],["check",{"2":{"1":2,"3":1,"4":1,"5":1,"12":1,"15":2,"20":1,"21":11,"64":1}}],["choosing",{"2":{"79":1}}],["choose",{"2":{"40":1,"67":1}}],["chosen",{"2":{"2":1,"17":1,"19":1}}],["child",{"2":{"21":1}}],["chunks",{"2":{"35":1}}],["chunked",{"2":{"35":1}}],["chunk",{"2":{"19":1}}],["channel",{"2":{"13":1}}],["channel=",{"2":{"13":1}}],["changing",{"2":{"4":1,"20":1,"65":1}}],["changes",{"2":{"23":1}}],["change",{"2":{"3":1,"4":4,"20":5,"66":1}}],["changed",{"2":{"3":1}}],["char",{"2":{"0":1,"3":1,"4":1,"13":1,"17":2,"62":2,"64":2,"66":3,"81":1,"84":2,"85":3}}],["cost",{"2":{"33":1}}],["costly",{"2":{"21":1}}],["covers",{"2":{"45":1}}],["cov",{"2":{"32":1}}],["core",{"2":{"64":1}}],["cor",{"2":{"32":1}}],["correctly",{"2":{"42":2}}],["correct",{"2":{"4":2,"5":1,"10":1,"27":1}}],["corresponding",{"2":{"4":1}}],["correspond",{"2":{"3":1,"10":3}}],["coordinate",{"2":{"36":1}}],["coordinatetransformations",{"2":{"4":2}}],["coordination",{"2":{"35":1}}],["coords",{"2":{"20":2}}],["copy",{"2":{"20":1,"21":7}}],["code",{"2":{"16":2,"23":2,"26":1,"69":1}}],["coded",{"2":{"6":1}}],["could",{"2":{"5":1,"25":1,"48":1}}],["counted",{"2":{"5":1}}],["colours",{"2":{"72":1}}],["color=",{"2":{"72":2,"73":1}}],["colormap",{"0":{"71":1,"72":1},"2":{"72":2}}],["colormap=",{"2":{"68":1}}],["color",{"2":{"69":7,"72":1}}],["colored",{"2":{"69":1}}],["colon",{"2":{"2":2,"3":1,"15":1,"16":1}}],["collected",{"2":{"83":1}}],["collection",{"2":{"74":1}}],["collect",{"2":{"61":1}}],["column",{"2":{"18":2,"69":1,"85":3}}],["columns",{"2":{"1":1,"8":1,"15":1,"18":3,"69":1,"83":2,"85":3}}],["command",{"2":{"12":1}}],["commands",{"2":{"12":1}}],["commondatamodel",{"2":{"35":1}}],["commondims",{"2":{"3":5}}],["commonly",{"2":{"4":1}}],["common",{"2":{"0":2,"4":1,"19":1,"25":1,"46":1,"51":1,"64":1}}],["compile",{"2":{"78":1}}],["compilation",{"2":{"78":1}}],["components",{"2":{"23":4,"42":4}}],["complex",{"2":{"69":1}}],["completely",{"2":{"21":4}}],["complicated",{"2":{"5":1,"13":1}}],["compatibility",{"0":{"35":1},"2":{"24":1}}],["compatible",{"2":{"18":1}}],["comparing",{"2":{"3":1,"21":1}}],["comparisons",{"2":{"3":2}}],["compare",{"2":{"3":6}}],["compared",{"2":{"3":1,"21":1}}],["comparedims",{"2":{"3":5}}],["combines",{"2":{"5":1,"43":1}}],["combined",{"2":{"4":1,"17":1,"20":1,"30":1,"63":1}}],["combinedims",{"2":{"3":1}}],["combine",{"2":{"3":1,"18":1}}],["combinations",{"2":{"17":2}}],["combination",{"2":{"1":1,"15":1,"35":2}}],["confusing",{"2":{"40":1}}],["confused",{"2":{"5":1}}],["consistency",{"2":{"74":1}}],["consistent",{"2":{"43":1}}],["consecutive",{"2":{"30":2}}],["constraint",{"2":{"30":1}}],["constructing",{"0":{"29":1},"2":{"41":1}}],["constructionbase",{"2":{"20":1,"40":2,"65":2}}],["construction",{"2":{"4":1,"10":1}}],["construct",{"2":{"18":1,"69":2}}],["constructors",{"2":{"15":1,"41":2}}],["constructor",{"2":{"4":1,"16":1,"26":1,"64":1}}],["constructed",{"2":{"0":1,"3":1,"4":1,"16":1,"23":2,"37":1}}],["const",{"2":{"5":1,"20":1,"46":1}}],["concatenate",{"2":{"21":4}}],["concrete",{"2":{"0":1,"1":2,"3":3,"4":2,"15":3,"16":1}}],["converging",{"2":{"52":1}}],["conversion",{"2":{"11":1}}],["conversions",{"2":{"10":1}}],["converting",{"0":{"85":1,"86":1}}],["convertible",{"2":{"27":1}}],["converts",{"2":{"2":1}}],["convert",{"2":{"2":1,"3":1,"4":1,"27":2,"69":1,"80":1}}],["converted",{"2":{"0":1,"3":1,"4":1,"18":1,"27":1}}],["controlled",{"2":{"72":1}}],["control",{"2":{"20":1,"21":1}}],["contents",{"2":{"11":1}}],["contexts",{"2":{"4":3}}],["context",{"2":{"3":1,"4":1,"15":1,"23":1}}],["contained",{"2":{"4":1,"5":1,"17":1,"60":1}}],["contain",{"2":{"2":1,"3":1,"5":2,"20":2}}],["contains",{"2":{"1":1,"4":2,"5":10,"15":1,"17":2,"19":1,"20":1,"79":2,"82":1}}],["containing",{"2":{"1":1,"3":1,"15":2}}],["cairomakie",{"2":{"68":1,"69":1}}],["caveats",{"2":{"64":1}}],["cache",{"2":{"35":1}}],["caching",{"2":{"35":1}}],["cartesianindex",{"2":{"30":2}}],["cartesianindices",{"2":{"17":4,"30":1,"82":1}}],["category",{"2":{"84":5,"85":10,"86":1}}],["categorises",{"2":{"11":1}}],["categories",{"2":{"4":3,"80":1}}],["categorical",{"2":{"0":2,"3":2,"4":8,"5":3,"13":2,"15":3,"17":2,"48":4,"62":2,"64":2,"66":4,"68":1,"79":15,"80":5,"81":3,"84":2}}],["cat",{"2":{"21":2,"32":1}}],["cases",{"2":{"21":1,"36":1,"38":1}}],["case",{"2":{"20":1,"66":1}}],["calculate",{"2":{"19":1}}],["call",{"2":{"23":1,"48":1}}],["calling",{"2":{"20":1,"39":1,"41":1}}],["callable",{"2":{"19":1}}],["called",{"2":{"3":2,"27":1,"41":1}}],["capabilities",{"2":{"51":1}}],["capable",{"2":{"4":1}}],["captions",{"2":{"15":1}}],["caution",{"2":{"5":1}}],["cannot",{"2":{"7":1}}],["can",{"2":{"0":2,"1":4,"2":3,"3":7,"4":18,"5":7,"10":3,"11":2,"12":1,"15":9,"16":2,"17":4,"18":1,"19":9,"20":8,"21":2,"24":2,"25":3,"28":1,"29":1,"30":4,"31":2,"32":2,"34":7,"36":1,"40":1,"42":2,"43":1,"44":1,"46":3,"47":2,"48":7,"49":2,"60":1,"61":1,"64":2,"65":1,"69":6,"72":1,"75":3,"77":1,"78":1,"79":7,"80":2,"81":2,"82":4,"85":2,"86":1}}],["c",{"2":{"0":6,"3":2,"4":2,"13":2,"15":9,"17":3,"20":3,"49":2,"62":2,"64":2,"66":3,"67":1,"68":1,"71":1,"74":1,"75":8,"76":23,"77":28,"78":2,"79":33,"81":3,"82":2,"84":3,"85":2}}],["zarr",{"2":{"35":1}}],["zip",{"2":{"35":1}}],["zero",{"2":{"23":2,"76":1,"79":1}}],["zeros",{"2":{"0":1,"15":6,"20":1,"28":4,"42":2}}],["z=dd",{"2":{"20":1}}],["z=",{"2":{"20":1}}],["zdim",{"2":{"0":4}}],["z",{"2":{"0":8,"1":9,"3":4,"15":9,"20":9,"21":3,"30":13,"34":3,"42":2,"66":2,"68":1,"84":4,"85":22,"86":9}}],["yaxarray",{"2":{"36":1,"52":1}}],["yaxarrays",{"0":{"52":1},"2":{"35":1,"52":1}}],["y=not",{"2":{"79":1}}],["y=near",{"2":{"76":1}}],["y=where",{"2":{"79":1}}],["y=at",{"2":{"79":2}}],["y=4",{"2":{"76":1,"78":1}}],["y=begin+1",{"2":{"31":1}}],["y=end",{"2":{"31":1}}],["y=dimarray",{"2":{"21":1}}],["y=>isodd",{"2":{"19":2}}],["yet",{"2":{"10":1,"23":2}}],["yearday",{"2":{"46":1}}],["yearmonthday",{"2":{"46":1}}],["yearmonth",{"2":{"46":1}}],["year",{"2":{"4":4,"19":1,"46":1}}],["years",{"2":{"4":3}}],["yourself",{"2":{"69":1}}],["your",{"2":{"5":1,"13":1,"20":1,"40":2,"69":2}}],["yourdimarray",{"2":{"40":1}}],["yourdim",{"2":{"0":1}}],["you",{"2":{"4":2,"5":1,"12":4,"18":1,"20":5,"21":5,"23":2,"25":2,"31":1,"32":1,"34":1,"40":1,"43":2,"46":1,"48":1,"60":1,"64":4,"66":4,"69":8,"75":1,"80":1}}],["ydim",{"2":{"0":7}}],["y",{"2":{"0":16,"1":12,"3":8,"4":9,"5":15,"15":30,"16":2,"17":13,"18":2,"19":4,"20":11,"21":6,"25":13,"26":2,"28":36,"30":7,"31":2,"32":3,"33":3,"34":3,"42":3,"43":31,"44":22,"61":8,"62":3,"64":2,"66":10,"68":2,"69":7,"71":1,"74":10,"75":34,"76":4,"77":92,"79":16,"81":3,"82":8,"84":10,"85":32,"86":1}}],["xy",{"2":{"85":2}}],["xarray",{"2":{"35":1}}],["xz",{"2":{"30":1}}],["x2",{"2":{"21":2}}],["x1",{"2":{"21":2}}],["x=not",{"2":{"79":1}}],["x=near",{"2":{"79":2}}],["x=where",{"2":{"79":1}}],["x=touches",{"2":{"79":1}}],["x=interval",{"2":{"79":1}}],["x=openinterval",{"2":{"79":1}}],["x=contains",{"2":{"79":2}}],["x=at",{"2":{"76":2,"79":3}}],["x=all",{"2":{"5":1}}],["x=1",{"2":{"76":1,"78":1,"79":2}}],["x=>",{"2":{"49":1}}],["x=>bins",{"2":{"48":2}}],["x=begin",{"2":{"31":1}}],["x=begin+1",{"2":{"31":1}}],["x=dimarray",{"2":{"21":1}}],["xs",{"2":{"2":1,"3":2,"4":6,"11":1,"15":2,"18":1}}],["xdim",{"2":{"0":7}}],["x3c",{"2":{"0":10,"4":12,"5":9,"7":6,"8":4,"9":3,"10":6,"11":2,"15":3,"16":1,"17":3,"18":2,"19":3,"22":2,"23":2,"33":2}}],["x",{"2":{"0":17,"1":27,"2":9,"3":22,"4":28,"5":32,"11":6,"15":69,"16":3,"17":17,"18":5,"19":2,"20":27,"21":7,"25":14,"26":2,"28":36,"30":18,"31":2,"32":3,"33":3,"34":6,"40":1,"42":4,"43":29,"44":23,"46":3,"47":3,"48":14,"49":3,"61":8,"62":4,"64":5,"66":8,"67":1,"68":3,"69":10,"71":1,"74":10,"75":25,"77":96,"79":25,"80":7,"81":3,"82":8,"84":10,"85":32,"86":1}}],["ideal",{"2":{"48":1}}],["identity",{"2":{"19":2,"48":2}}],["identical",{"2":{"4":2,"11":1,"74":1}}],["io",{"2":{"23":11}}],["images",{"2":{"58":1}}],["immutable",{"2":{"20":1,"27":1,"40":1,"66":1}}],["improving",{"2":{"66":1}}],["imperative",{"2":{"62":1}}],["imply",{"2":{"20":1}}],["implements",{"2":{"42":4,"83":1}}],["implemented",{"2":{"39":1,"42":2}}],["implement",{"2":{"16":1,"40":1,"83":1}}],["implementation",{"2":{"4":2,"16":1,"42":4,"56":1}}],["implementations",{"2":{"0":1}}],["important",{"2":{"4":3}}],["ignoring",{"2":{"15":1}}],["ignores",{"2":{"68":1}}],["ignore",{"2":{"3":2,"34":1,"40":1}}],["ignored",{"2":{"3":1,"21":2}}],["irregular",{"2":{"4":3,"5":6,"8":5,"15":1,"17":2,"19":4,"20":2,"47":7,"48":6,"79":6,"80":3,"81":1,"82":4}}],["i",{"2":{"2":2,"3":3,"13":1,"17":1,"38":1,"39":1,"49":1,"71":1,"72":1,"85":1}}],["if",{"2":{"0":1,"1":2,"2":3,"3":5,"4":8,"5":6,"11":2,"12":1,"15":2,"16":1,"17":2,"19":1,"20":7,"21":7,"38":1,"40":1,"43":1,"60":1,"64":2,"66":1,"68":1,"69":2,"76":2,"77":1,"82":1}}],["isend",{"2":{"44":5}}],["isexplicit",{"2":{"44":5}}],["ispoints",{"2":{"44":6}}],["isintervals",{"2":{"44":6}}],["isreverse",{"2":{"44":5}}],["isregular",{"2":{"43":2,"44":5}}],["isforward",{"2":{"44":5}}],["isordered",{"2":{"44":6}}],["iscenter",{"2":{"44":5}}],["iscyclic",{"2":{"44":6}}],["iscategorical",{"2":{"44":7}}],["isstart",{"2":{"44":5}}],["issampled",{"2":{"44":7}}],["issue",{"2":{"4":1,"66":1}}],["isbits",{"2":{"22":1,"27":1}}],["isa",{"2":{"16":1}}],["isapprox",{"2":{"5":1}}],["is",{"2":{"0":7,"1":3,"2":4,"3":14,"4":31,"5":9,"6":1,"7":3,"8":2,"10":1,"11":2,"12":1,"15":8,"16":3,"17":6,"19":12,"20":11,"21":5,"22":3,"23":5,"24":3,"26":3,"27":2,"31":2,"32":1,"34":1,"35":3,"36":4,"39":2,"40":5,"42":3,"43":6,"48":3,"49":1,"51":4,"52":3,"54":2,"55":1,"57":1,"58":1,"61":1,"62":1,"63":1,"64":3,"65":1,"66":3,"67":2,"69":6,"72":1,"73":1,"74":2,"78":2,"79":7,"80":4,"81":5,"82":1,"83":1,"85":1}}],["its",{"2":{"15":1,"19":2,"20":3,"27":1,"36":1,"52":2,"55":1,"66":1,"69":2}}],["iterates",{"2":{"21":2}}],["iterate",{"2":{"17":1}}],["iterator",{"2":{"16":2}}],["iterators",{"2":{"15":1}}],["iteration",{"2":{"16":2,"35":1}}],["iter",{"2":{"13":1}}],["iter=1",{"2":{"13":1}}],["it",{"2":{"0":1,"2":1,"3":2,"4":11,"5":3,"7":1,"11":1,"12":3,"15":1,"16":2,"17":1,"19":3,"20":7,"21":1,"22":2,"23":1,"28":1,"30":1,"31":1,"32":1,"33":1,"34":2,"35":1,"38":1,"39":1,"40":1,"42":2,"43":1,"46":1,"48":2,"51":1,"55":1,"62":1,"64":1,"66":2,"68":1,"69":3,"75":2,"79":3,"80":1}}],["inverts",{"2":{"75":1}}],["invalid",{"2":{"30":1}}],["inferno",{"2":{"68":1}}],["information",{"2":{"4":3,"15":1,"43":1}}],["inner",{"2":{"20":1,"21":1,"23":1,"61":2}}],["inbuilt",{"2":{"20":1}}],["initially",{"2":{"16":2}}],["inaccurate",{"2":{"8":1}}],["including",{"2":{"7":1,"35":1,"79":1}}],["included",{"2":{"3":1,"5":1,"11":1,"48":1}}],["include",{"2":{"2":1,"3":1,"5":1,"23":1,"79":1,"80":1}}],["installed",{"2":{"12":1}}],["install",{"2":{"12":1}}],["installation",{"0":{"12":1}}],["instead",{"2":{"5":2,"7":1,"11":1,"19":1,"31":1,"68":1,"69":1,"82":1}}],["inside",{"2":{"5":1,"31":1,"79":1}}],["inserted",{"2":{"0":1}}],["inputs",{"2":{"39":1,"41":1}}],["input",{"2":{"3":1,"5":1,"8":1,"72":1}}],["inds",{"2":{"30":2}}],["individual",{"2":{"17":1}}],["indicate",{"2":{"5":1,"10":1,"32":1,"69":1}}],["indicates",{"2":{"4":2,"7":3,"9":1,"10":1,"11":1}}],["indicating",{"2":{"4":5}}],["indices",{"2":{"2":2,"5":7,"15":1,"17":3,"20":2,"34":1,"79":3,"80":1,"82":1}}],["independent",{"2":{"0":1,"4":1}}],["independentdim",{"2":{"0":5}}],["indexes",{"2":{"79":1}}],["indexed",{"2":{"4":2,"16":2}}],["indexing",{"0":{"30":1,"31":1,"75":1,"76":1},"2":{"0":2,"4":4,"15":3,"16":2,"17":1,"29":1,"30":4,"31":3,"33":1,"51":1,"76":1,"78":3,"79":7}}],["index",{"2":{"0":2,"3":3,"4":5,"5":8,"6":1,"7":4,"8":4,"9":2,"10":5,"15":6,"16":2,"17":4,"18":2,"20":5,"30":2,"31":1,"34":1,"76":1,"79":3,"82":1}}],["inherits",{"2":{"52":1}}],["inherit",{"2":{"0":1,"1":1,"15":1}}],["int8",{"2":{"13":5}}],["intselectors",{"2":{"5":1}}],["intselector",{"2":{"5":4}}],["intentionally",{"2":{"35":1}}],["intended",{"2":{"5":1}}],["integrate",{"2":{"35":1}}],["integrations",{"0":{"50":1},"1":{"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1}}],["integration",{"0":{"27":1}}],["integers",{"2":{"46":1,"48":1}}],["integer",{"2":{"3":1,"15":4,"19":7,"39":1}}],["inteface",{"2":{"23":2}}],["interoperability",{"2":{"83":1}}],["interpolate",{"2":{"17":1}}],["interpolation",{"2":{"17":3,"82":1}}],["interact",{"2":{"5":1}}],["intermediate",{"2":{"5":1}}],["interfaces",{"0":{"42":1},"2":{"23":2,"42":5}}],["interface",{"0":{"18":1,"23":1,"42":1},"2":{"3":1,"23":4,"35":1,"36":1,"65":1,"83":2,"86":1}}],["internally",{"2":{"64":1}}],["internal",{"0":{"23":1},"2":{"3":1,"20":1}}],["intervalbounds",{"2":{"43":4,"79":1}}],["interval",{"2":{"0":1,"4":5,"5":12,"8":1,"9":2,"10":4,"17":1,"19":2,"43":2,"48":9,"79":3,"80":1,"81":1}}],["intervalsets",{"2":{"5":2,"19":1,"48":6,"79":2,"81":1}}],["intervals",{"2":{"0":1,"4":13,"5":10,"8":3,"9":4,"10":1,"17":1,"19":4,"43":1,"48":7,"66":2,"79":14,"80":6,"81":2}}],["int",{"2":{"1":5,"2":2,"5":1,"15":5,"16":2,"18":1,"19":4,"31":2,"32":1,"34":1,"39":1,"48":1,"79":4}}],["int64",{"2":{"0":2,"4":2,"5":11,"13":4,"15":6,"17":2,"19":3,"20":2,"21":1,"25":14,"28":11,"30":6,"43":17,"44":14,"46":12,"47":11,"48":5,"66":2,"80":3,"81":1,"82":3,"84":4,"85":8}}],["into",{"2":{"0":3,"4":3,"17":2,"18":1,"19":1,"20":1,"26":1,"27":1,"34":2,"48":4,"56":1,"63":1,"68":1,"78":1}}],["in",{"2":{"0":7,"1":3,"2":2,"3":12,"4":12,"5":10,"7":3,"8":2,"9":1,"10":2,"11":2,"15":7,"16":6,"17":5,"19":6,"20":24,"21":11,"22":1,"23":11,"24":1,"27":1,"28":6,"30":2,"31":4,"32":1,"34":1,"35":3,"36":2,"38":1,"40":2,"41":2,"42":10,"43":2,"48":4,"60":1,"64":5,"65":1,"66":2,"67":1,"68":2,"69":3,"73":1,"74":1,"77":2,"78":1,"79":6,"80":3,"83":1}}],["hundreds",{"2":{"83":1}}],["humidity",{"2":{"21":6}}],["high",{"2":{"69":1}}],["histogram",{"2":{"33":2}}],["hierarchy",{"2":{"0":1}}],["heatmap",{"2":{"68":1}}],["helper",{"2":{"48":1}}],["help",{"2":{"23":2}}],["here",{"2":{"16":1,"17":1,"20":1,"21":1,"28":1,"29":1,"48":3,"64":1,"68":1,"69":1,"80":3}}],["h",{"2":{"13":1,"71":1,"85":1}}],["having",{"2":{"21":1}}],["have",{"2":{"0":1,"4":3,"8":2,"11":1,"12":1,"15":1,"16":2,"18":1,"19":2,"20":3,"21":1,"30":1,"35":1,"36":1,"37":1,"38":1,"40":1,"48":1,"66":1,"68":1,"74":1,"85":1}}],["hard",{"2":{"6":1}}],["haskey",{"2":{"11":2}}],["hasselection",{"2":{"4":2}}],["hasn",{"2":{"2":1}}],["has",{"2":{"1":1,"3":2,"4":1,"11":1,"15":3,"16":1,"20":2,"21":2,"25":2,"27":1,"33":1,"38":1,"40":2,"41":1,"43":1,"80":1,"81":1}}],["hasdim",{"2":{"1":6,"15":6}}],["hold",{"2":{"19":1,"38":1,"81":1}}],["holds",{"2":{"4":4,"16":1,"80":2}}],["holding",{"2":{"1":1,"2":1,"8":1,"15":9,"17":1,"19":2,"63":1,"82":1}}],["however",{"2":{"5":1,"20":1}}],["how",{"2":{"4":2,"7":2,"21":1,"34":1,"46":1,"62":1}}],["hours",{"2":{"19":4,"48":2}}],["hour",{"2":{"0":1,"19":1,"46":4,"47":1,"48":2,"49":3}}],["slower",{"2":{"78":1}}],["slowly",{"2":{"52":1}}],["slightly",{"2":{"48":1}}],["slicing",{"2":{"3":1}}],["sliced",{"2":{"16":1,"20":1}}],["slicedims",{"2":{"3":2,"15":1}}],["slices",{"2":{"15":1,"21":4}}],["slice",{"2":{"3":1,"15":1,"20":1,"69":1}}],["scatter",{"2":{"69":2}}],["scalar",{"2":{"76":1}}],["scalars",{"2":{"25":6,"76":1}}],["scaled",{"2":{"25":6}}],["scale",{"2":{"25":1}}],["scaling",{"0":{"25":1}}],["scope",{"2":{"0":1,"4":1,"34":1}}],["src",{"2":{"21":4,"31":2}}],["smaller",{"2":{"29":1}}],["small",{"2":{"21":1}}],["synchronisation",{"2":{"57":1}}],["syntax",{"2":{"15":1}}],["symmetry",{"2":{"34":1}}],["symbol",{"2":{"1":1,"2":1,"3":4,"4":7,"11":1,"13":1,"15":11,"16":6,"18":1,"19":3,"20":2,"21":1,"22":3,"39":2,"41":1,"43":1,"47":7,"48":15,"49":2,"64":2,"75":2,"79":15,"81":2}}],["symbols",{"2":{"0":1,"1":1,"2":1,"3":1,"4":5,"11":1,"15":3,"20":1,"27":1,"29":1,"32":1,"69":1}}],["system",{"2":{"27":1,"36":1}}],["sat",{"2":{"80":2}}],["save",{"2":{"51":1}}],["saving",{"2":{"11":2}}],["samples",{"2":{"9":1,"33":2}}],["sampled",{"2":{"0":6,"4":16,"5":8,"9":1,"13":4,"15":7,"17":4,"19":4,"20":10,"21":1,"25":20,"26":2,"28":6,"36":1,"43":24,"44":28,"47":9,"48":7,"49":5,"62":2,"64":2,"66":8,"74":2,"75":15,"76":1,"77":49,"79":13,"80":7,"81":3,"82":10,"84":4,"85":2}}],["sampling=dd",{"2":{"5":2}}],["sampling=intervals",{"2":{"4":2,"80":3}}],["sampling=points",{"2":{"4":2}}],["sampling",{"0":{"9":1},"2":{"0":1,"2":1,"3":1,"4":15,"5":1,"8":1,"9":6,"17":1,"20":1,"43":5,"64":1,"81":1}}],["same",{"2":{"0":2,"3":3,"4":1,"5":2,"11":1,"15":4,"17":2,"19":1,"20":2,"21":1,"25":1,"28":1,"30":1,"33":1,"38":2,"40":1,"43":1,"46":1,"67":1,"74":1,"83":1}}],["sharing",{"2":{"16":1}}],["share",{"2":{"16":1,"74":1}}],["shift",{"2":{"4":2}}],["shiftlocus",{"2":{"4":1}}],["show",{"2":{"23":9}}],["shows",{"2":{"15":1}}],["shown",{"2":{"2":1,"80":1}}],["should",{"2":{"2":1,"5":1,"12":1,"15":1,"20":1,"23":2,"38":1,"39":1,"40":1,"80":1,"85":1}}],["shortcuts",{"2":{"28":1}}],["shorthand",{"2":{"15":1,"80":1}}],["short",{"2":{"0":1}}],["swapping",{"2":{"20":1}}],["swap",{"2":{"3":1}}],["swapdims",{"2":{"3":3}}],["specialisations",{"2":{"19":1}}],["specify",{"2":{"10":5,"19":3,"20":3,"32":1,"34":1,"43":1,"48":1,"66":1,"80":1,"85":1}}],["specifying",{"2":{"4":1,"9":1,"80":1}}],["specifies",{"2":{"7":1,"22":1,"30":1,"43":1}}],["specified",{"2":{"2":1,"3":1,"4":1,"15":1,"81":1}}],["specifically",{"2":{"21":1}}],["specific",{"2":{"4":5,"6":1,"8":1,"9":1,"34":1,"62":1}}],["space",{"2":{"20":2}}],["spaced",{"2":{"19":1}}],["spacing",{"2":{"4":2}}],["span=irregular",{"2":{"80":1}}],["span=regular",{"2":{"4":1,"80":1}}],["span=autospan",{"2":{"4":2}}],["span",{"0":{"8":1},"2":{"4":15,"8":7,"43":5,"64":1,"81":1}}],["spatial",{"2":{"0":1,"35":1,"51":1,"52":1,"57":2,"85":1}}],["since",{"2":{"69":1}}],["singleton",{"2":{"20":1}}],["single",{"2":{"1":8,"3":2,"4":1,"5":5,"9":1,"15":8,"16":1,"19":1,"20":3,"25":1,"31":1,"40":1,"43":1,"63":1,"76":1,"78":1,"79":1}}],["signature",{"2":{"40":1}}],["sits",{"2":{"30":1}}],["sizes",{"2":{"48":1}}],["size",{"2":{"2":1,"3":1,"4":5,"8":1,"19":1,"20":2,"21":6,"23":5,"25":1,"32":2,"42":3,"49":2,"61":2,"74":4,"75":22,"76":3,"77":88,"83":1,"84":2,"85":26}}],["simultaneously",{"2":{"63":1}}],["simulations",{"2":{"57":1}}],["simulation",{"2":{"57":1}}],["simulataneously",{"2":{"16":1}}],["similar",{"2":{"0":1,"4":1,"7":1,"9":1,"17":1,"49":1,"61":1,"69":1}}],["simpler",{"2":{"46":1}}],["simple",{"2":{"45":1,"69":1}}],["simply",{"2":{"0":1,"4":1,"5":1,"11":1,"15":1,"20":1,"23":1,"43":1,"82":1}}],["simplicity",{"2":{"0":1}}],["st2",{"2":{"75":2}}],["st",{"2":{"61":4,"74":1,"75":8,"76":4,"77":35,"84":1,"85":2,"86":1}}],["storage",{"2":{"51":1}}],["stored",{"2":{"15":1,"74":1}}],["std",{"2":{"32":1,"77":2}}],["style",{"2":{"27":1}}],["still",{"2":{"11":1,"26":1,"31":1,"66":1}}],["standard",{"2":{"69":1,"83":1}}],["standards",{"2":{"10":1}}],["stage",{"2":{"23":2}}],["statistics",{"2":{"16":2,"25":1,"46":1,"77":1}}],["status",{"2":{"12":2}}],["stack",{"2":{"16":2,"20":2,"21":8,"23":4,"42":2,"61":1,"77":1,"78":1,"83":2}}],["stacks",{"2":{"16":1,"21":5,"78":1,"85":1,"86":1}}],["starts",{"2":{"61":1}}],["start=6",{"2":{"48":4}}],["start=1",{"2":{"48":1}}],["start=12",{"2":{"48":1}}],["start=january",{"2":{"48":1}}],["start=0",{"2":{"19":1}}],["start=dates",{"2":{"19":2}}],["starting",{"2":{"8":1,"48":2}}],["start",{"2":{"0":2,"4":6,"5":3,"9":1,"10":4,"13":1,"19":9,"43":1,"48":4,"69":1,"79":5,"80":7}}],["stripped",{"2":{"27":1}}],["strickt",{"2":{"21":1}}],["strict=true",{"2":{"21":4}}],["strict=false",{"2":{"20":1}}],["strictness",{"0":{"21":1},"1":{"22":1,"23":1}}],["strict",{"2":{"20":1,"21":8,"24":2}}],["strings",{"2":{"5":1}}],["string",{"2":{"2":4,"3":1,"4":1,"15":1,"23":1,"48":2,"64":2,"80":3,"81":1,"86":1}}],["string=string",{"2":{"0":1}}],["strongly",{"2":{"20":1}}],["struct",{"2":{"3":1,"20":1,"60":2}}],["step=12",{"2":{"48":1}}],["step=2",{"2":{"48":1}}],["step=3",{"2":{"48":2}}],["step=hour",{"2":{"46":1}}],["step=autostep",{"2":{"8":1}}],["steprange",{"2":{"25":1}}],["steps",{"2":{"19":1}}],["step",{"2":{"3":1,"4":1,"8":2,"19":7,"20":1,"81":1}}],["s",{"2":{"0":1,"1":4,"2":1,"3":4,"5":16,"15":5,"16":3,"18":1,"19":1,"20":5,"22":1,"23":1,"24":1,"33":1,"35":3,"46":2,"47":1,"48":1,"49":1,"69":4,"79":2,"85":1}}],["series",{"0":{"70":1},"1":{"71":1,"72":1,"73":1},"2":{"59":1,"71":1,"72":2,"73":1}}],["sep",{"2":{"48":6,"80":2}}],["separate",{"2":{"2":1,"51":1}}],["sequential",{"2":{"19":1}}],["seamlessly",{"2":{"27":1}}],["sea",{"2":{"21":4}}],["seasons",{"2":{"19":4,"48":5}}],["searched",{"2":{"7":1}}],["searchsortedfirst",{"2":{"7":1}}],["searchsorted",{"2":{"7":1}}],["sections",{"2":{"19":1}}],["second",{"2":{"0":1,"2":1,"4":4,"11":1,"15":2,"20":1}}],["semi",{"2":{"15":1}}],["sense",{"2":{"5":1,"51":1,"64":1}}],["seed",{"2":{"15":1}}],["see",{"2":{"3":1,"16":1,"25":1,"42":2,"46":1,"48":1,"69":1}}],["selections",{"2":{"5":1}}],["selectindices",{"2":{"2":1}}],["selects",{"2":{"5":2,"79":1}}],["select",{"0":{"49":1},"2":{"5":6,"21":2,"49":1,"79":2,"80":1,"82":1}}],["selected",{"2":{"5":4,"19":4,"79":2}}],["selectors=near",{"2":{"17":1,"82":1}}],["selectorss",{"2":{"4":2}}],["selectors",{"0":{"5":1,"79":1},"1":{"80":1,"81":1,"82":1},"2":{"2":1,"4":12,"5":8,"8":1,"15":1,"16":1,"17":6,"31":1,"69":1,"76":1,"80":2,"81":1,"82":3}}],["selector",{"2":{"0":1,"2":2,"4":3,"5":13,"34":1,"40":1,"64":1,"75":1,"79":9}}],["setproperties",{"2":{"20":1,"65":1}}],["settings",{"0":{"21":1},"1":{"22":1,"23":1}}],["setting",{"2":{"20":1,"21":1}}],["setindex",{"2":{"16":1,"31":1}}],["setdims",{"2":{"3":3}}],["set",{"0":{"66":1},"2":{"0":1,"4":6,"8":1,"11":2,"15":13,"20":22,"21":2,"25":1,"64":1,"66":11,"79":2,"81":3}}],["sophisticated",{"2":{"69":1}}],["sounds",{"2":{"39":1}}],["sources",{"2":{"4":1,"20":7,"51":1}}],["source",{"2":{"0":15,"1":5,"2":5,"3":12,"4":23,"5":10,"6":1,"7":6,"8":5,"9":3,"10":6,"11":4,"15":17,"16":2,"17":3,"18":2,"19":9,"20":12,"21":9,"22":3,"23":6}}],["solution",{"2":{"19":1}}],["so",{"2":{"4":2,"5":1,"20":2,"24":1,"27":1,"30":1,"43":1,"48":1,"65":1,"69":1,"80":1,"83":1,"85":1}}],["sorted",{"2":{"5":1,"19":2}}],["sortdims",{"2":{"3":1}}],["sort",{"2":{"3":3}}],["sometimes",{"2":{"48":1,"66":1}}],["something",{"2":{"13":1,"19":1}}],["somewhere",{"2":{"16":2,"64":1}}],["some",{"2":{"0":1,"4":1,"15":1,"16":1,"19":1,"21":1,"25":1,"34":1,"38":1,"40":1,"46":2,"74":1,"78":1,"84":1}}],["sun",{"2":{"80":2}}],["surface",{"2":{"21":4}}],["sure",{"2":{"17":2}}],["surprising",{"2":{"16":2}}],["summer",{"2":{"48":1}}],["summary",{"2":{"42":2}}],["sum",{"2":{"16":1,"19":1,"28":2,"32":3,"47":1,"77":5}}],["succinct",{"2":{"16":2}}],["such",{"2":{"0":2,"2":1,"4":1,"5":1,"10":1,"19":2}}],["supporting",{"2":{"86":1}}],["support",{"2":{"67":1}}],["supplied",{"2":{"5":1}}],["supertypes",{"2":{"3":1}}],["supertype=dimension",{"2":{"0":1}}],["supertype",{"2":{"0":8,"4":5,"5":3,"6":1,"7":1,"10":1,"11":1,"15":2,"16":1,"18":1,"22":1}}],["submodule",{"2":{"34":1}}],["subset",{"2":{"21":2,"69":2,"75":1}}],["subsetting",{"2":{"5":1}}],["subtypes",{"2":{"23":1}}],["subtype",{"2":{"15":1}}],["sub",{"2":{"0":2}}],["m=rand",{"2":{"75":1}}],["my",{"2":{"64":3}}],["mydimstack",{"2":{"16":2}}],["mutable",{"2":{"60":1}}],["much",{"2":{"26":1,"64":1,"67":1}}],["multiplying",{"2":{"21":2}}],["multiplication",{"2":{"21":5}}],["multiple",{"2":{"4":1,"16":3,"19":1,"44":1,"63":1}}],["multipications",{"2":{"21":1}}],["multi",{"0":{"16":1},"2":{"38":1}}],["must",{"2":{"4":3,"5":3,"15":2,"16":2,"20":2,"23":2,"27":2,"37":1,"38":3,"40":1,"41":1,"60":1,"74":1}}],["mixing",{"2":{"30":1}}],["mix",{"2":{"30":1,"77":1}}],["mixed",{"2":{"16":2,"17":2,"36":1}}],["mime",{"2":{"23":5}}],["mid",{"2":{"5":1}}],["minimal",{"2":{"69":1}}],["minimum",{"2":{"3":1,"32":1,"47":1,"77":2}}],["min",{"2":{"33":4}}],["minus",{"2":{"4":1}}],["missingval",{"2":{"20":1,"51":1}}],["missing",{"2":{"3":1,"20":1,"41":1,"51":1}}],["msg",{"2":{"3":1}}],["measured",{"2":{"78":1}}],["means",{"2":{"3":1,"5":1,"7":1,"10":1,"18":1,"20":1,"24":1,"25":1,"27":1,"34":1,"38":1,"44":2,"79":1}}],["mean",{"2":{"3":1,"4":1,"9":1,"15":1,"16":4,"19":10,"24":1,"25":2,"32":1,"33":4,"47":3,"48":3,"49":1,"77":3}}],["meaningful",{"2":{"35":1}}],["meaning",{"2":{"2":1,"4":1,"17":1}}],["merging",{"2":{"75":1}}],["merges",{"2":{"63":1}}],["merge",{"2":{"30":1,"75":5,"85":1}}],["merged",{"2":{"20":3}}],["mergedims=",{"2":{"85":1}}],["mergedims=nothing",{"2":{"18":3}}],["mergedims",{"0":{"63":1},"2":{"18":1,"20":5,"63":1}}],["mergedlookup",{"2":{"4":3,"20":3,"30":1}}],["median",{"2":{"32":1,"33":4,"47":1}}],["memory",{"2":{"33":2}}],["mem",{"2":{"26":1}}],["messy",{"2":{"19":1}}],["mesages",{"2":{"3":1}}],["metadata=dict",{"2":{"28":6,"64":1}}],["metadata=metadata",{"2":{"16":1}}],["metadata=nometadata",{"2":{"4":3,"15":1,"16":1}}],["metadata",{"0":{"11":1},"2":{"3":1,"4":16,"11":16,"15":11,"19":3,"20":4,"23":9,"27":1,"28":6,"40":1,"42":8,"47":7,"48":11,"49":2,"60":1,"64":5}}],["method",{"2":{"1":4,"3":3,"4":4,"9":1,"11":2,"15":7,"17":1,"20":2,"23":3,"40":1,"42":2}}],["methods",{"0":{"1":1,"2":1,"3":1,"19":1,"20":1},"2":{"0":2,"1":1,"3":3,"4":3,"7":1,"15":1,"16":5,"19":1,"21":3,"23":2,"32":1,"34":1,"36":1,"40":1,"43":1,"44":1,"49":1,"53":1}}],["m",{"2":{"0":1,"4":3,"62":2,"64":2,"66":3,"75":2,"85":1}}],["mon",{"2":{"80":2}}],["monthabbr",{"2":{"80":2}}],["months",{"2":{"19":5,"48":4,"80":1}}],["monthly",{"2":{"19":2}}],["month",{"2":{"0":6,"15":1,"19":4,"25":21,"46":1,"47":2,"48":13,"80":5}}],["moving",{"2":{"61":1,"67":1}}],["moved",{"2":{"27":2}}],["move",{"2":{"26":1}}],["moves",{"2":{"15":1}}],["mod",{"2":{"61":2}}],["models",{"2":{"54":1,"57":1}}],["model",{"2":{"27":1,"56":1}}],["modification",{"2":{"27":1}}],["modified",{"2":{"5":1}}],["modifying",{"0":{"60":1},"1":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1}}],["modify",{"0":{"61":1},"2":{"6":1,"20":6,"26":1,"60":1,"61":6}}],["module",{"2":{"0":2,"4":1}}],["mostly",{"2":{"15":1,"20":2,"67":1,"68":1}}],["most",{"2":{"4":1,"16":4,"20":1,"21":1,"23":1,"26":1,"35":1,"36":1,"64":1,"80":1,"81":1}}],["more",{"2":{"0":2,"4":4,"13":1,"15":1,"18":1,"23":1,"40":2,"52":1,"61":1,"65":1,"73":1,"79":1}}],["magic",{"0":{"65":1}}],["made",{"2":{"51":1}}],["masking",{"2":{"51":1}}],["mar",{"2":{"48":6,"80":1}}],["markersize=15",{"2":{"73":1}}],["markers",{"0":{"73":1},"2":{"10":1}}],["max",{"2":{"33":4}}],["maximum",{"2":{"5":1,"23":1,"32":1,"47":1,"77":3}}],["manipulation",{"2":{"51":1}}],["mandatory",{"2":{"23":4,"42":2}}],["many",{"2":{"16":4,"23":2,"32":1,"78":1}}],["manually",{"2":{"4":5,"19":1,"40":1,"78":1,"80":2,"81":1}}],["mapping",{"2":{"69":4}}],["mapped",{"2":{"51":1}}],["mapslices",{"2":{"32":1}}],["mapreduce",{"2":{"32":1}}],["map",{"2":{"16":5,"19":4,"21":1}}],["maintains",{"2":{"15":1}}],["main",{"2":{"15":1,"23":4}}],["makie",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1},"2":{"67":2,"68":3,"69":1,"71":1,"73":1}}],["making",{"2":{"0":1,"69":1}}],["makes",{"2":{"22":1,"43":1}}],["make",{"2":{"4":1,"5":1,"17":2,"64":1,"80":1}}],["math",{"2":{"31":1}}],["matmul",{"2":{"21":4}}],["matrix",{"2":{"8":1,"21":6,"28":3,"61":3,"77":1}}],["matter",{"2":{"3":1,"17":1}}],["match",{"2":{"1":3,"2":2,"3":3,"4":1,"5":1,"15":3,"19":1,"20":4,"21":9,"24":1,"75":1,"77":1,"83":1}}],["matches",{"2":{"1":1,"5":1,"15":1,"19":1,"23":4,"42":4,"64":1}}],["matching",{"2":{"0":2,"1":1,"3":1,"4":3,"15":1,"16":2,"19":2,"20":1,"39":2,"79":1,"82":1}}],["macro",{"2":{"0":1,"3":1,"20":3,"24":1,"25":1}}],["may",{"2":{"0":2,"3":1,"4":5,"5":4,"6":1,"8":1,"11":2,"16":2,"21":1,"23":1,"48":6,"64":2,"66":1,"80":3}}],["tue",{"2":{"80":2}}],["turned",{"2":{"24":1}}],["turn",{"2":{"21":2}}],["tuples",{"2":{"3":4,"4":1,"17":1,"19":2,"30":2,"41":1,"43":1,"46":1,"63":1}}],["tuple",{"2":{"1":22,"2":8,"3":34,"4":32,"8":2,"11":5,"15":43,"16":3,"17":8,"19":2,"20":10,"21":1,"23":5,"30":3,"37":1,"41":1,"42":2,"43":6,"46":4,"47":3,"75":1,"77":4,"79":1,"85":2}}],["tell",{"2":{"62":1}}],["text",{"2":{"23":2}}],["testable",{"2":{"42":1}}],["testing",{"0":{"42":1},"2":{"42":2}}],["test",{"0":{"70":1},"1":{"71":1,"72":1,"73":1},"2":{"23":4,"42":4}}],["tested",{"2":{"23":2}}],["testname",{"2":{"20":1}}],["temporal",{"2":{"57":1}}],["tempo",{"2":{"46":9,"47":1}}],["temp",{"2":{"21":4}}],["term",{"2":{"6":1,"43":1}}],["terms",{"2":{"4":1}}],["twice",{"2":{"5":1}}],["two",{"2":{"3":1,"4":2,"5":4,"15":4,"16":2,"18":1,"27":1,"48":1,"74":1,"79":1}}],["tries",{"2":{"66":1}}],["trivially",{"2":{"49":1}}],["trial",{"2":{"33":2}}],["try",{"2":{"20":1}}],["treated",{"2":{"19":1}}],["treat",{"2":{"18":1}}],["track",{"2":{"15":1}}],["tracking",{"2":{"4":1,"8":1,"11":1}}],["trait",{"2":{"6":1,"20":2}}],["traits",{"0":{"6":1},"1":{"7":1,"8":1,"9":1,"10":1},"2":{"3":1,"4":1,"6":2,"7":1,"20":1,"80":1}}],["transforming",{"2":{"19":1,"20":1}}],["transform",{"2":{"4":1,"46":1,"64":1}}],["transformation",{"2":{"4":3}}],["transformations",{"2":{"3":1,"4":1,"15":1}}],["transformed",{"2":{"4":4}}],["transpose",{"2":{"0":1,"32":2,"77":1}}],["transect",{"2":{"0":1}}],["true",{"2":{"1":4,"3":3,"15":5,"16":1,"19":2,"20":2,"30":1,"42":89,"44":21}}],["typ",{"2":{"0":2}}],["typeof",{"2":{"20":1,"26":1,"80":2}}],["typed",{"2":{"20":1}}],["typemax",{"2":{"4":1}}],["typemin",{"2":{"4":1}}],["type",{"2":{"0":3,"1":6,"2":3,"3":15,"4":2,"8":1,"11":2,"15":6,"16":1,"18":2,"20":4,"22":1,"27":1,"30":1,"39":2,"41":1,"43":1,"64":1,"66":1,"69":1,"86":1}}],["types",{"2":{"0":6,"1":5,"2":1,"3":8,"4":7,"5":1,"6":1,"10":1,"11":2,"15":7,"18":1,"20":3,"31":1,"32":2,"34":2,"36":2,"46":1,"51":1,"55":1,"81":2}}],["tabular",{"2":{"83":1}}],["table",{"2":{"18":1,"69":1,"85":1}}],["tabletraits",{"0":{"18":1},"2":{"18":1}}],["tables",{"0":{"18":1,"83":1},"1":{"84":1,"85":1,"86":1},"2":{"0":1,"15":1,"18":4,"69":1,"83":2,"86":1}}],["taking",{"2":{"48":1}}],["taken",{"2":{"17":1}}],["take",{"2":{"0":1,"4":2,"5":1,"16":1,"19":2,"47":1,"72":1,"78":1,"79":3,"85":1}}],["target",{"2":{"17":2}}],["t",{"2":{"0":1,"2":2,"3":2,"4":10,"11":1,"17":1,"21":4,"25":3,"30":2,"31":1,"64":1,"65":1,"66":1,"69":2,"80":1,"81":1,"82":1,"85":1}}],["title",{"2":{"23":5}}],["ti=>",{"2":{"49":1}}],["ti=>cyclicbins",{"2":{"48":4}}],["ti=>bins",{"2":{"48":8}}],["ti=>yearday",{"2":{"47":2}}],["ti=>yearmonth",{"2":{"47":2}}],["ti=>yearmonthday",{"2":{"47":2}}],["ti=>hour",{"2":{"47":2}}],["ti=>dayofyear",{"2":{"47":2}}],["ti=>month",{"2":{"19":6,"47":3}}],["ti=2",{"2":{"17":1}}],["ti=all",{"2":{"5":1}}],["time=1",{"2":{"13":1}}],["timeseriestools",{"0":{"59":1},"2":{"59":1}}],["times",{"2":{"0":1,"47":1,"74":2}}],["timedime",{"2":{"0":1}}],["timedim",{"2":{"0":4,"3":1}}],["time",{"0":{"25":1},"2":{"0":4,"4":1,"13":1,"16":1,"19":1,"21":1,"23":1,"33":6,"47":1,"59":1,"78":1}}],["ti",{"2":{"0":14,"1":1,"3":3,"5":3,"15":5,"17":1,"18":2,"19":6,"20":5,"21":3,"25":15,"32":3,"34":1,"47":10,"48":23,"49":5,"68":1}}],["thur",{"2":{"80":2}}],["though",{"2":{"78":1}}],["those",{"2":{"5":1,"21":2,"34":1,"64":1}}],["think",{"2":{"66":1}}],["thing",{"2":{"66":2}}],["things",{"2":{"23":2,"26":1,"60":1,"61":1,"64":2,"81":1}}],["this",{"2":{"0":1,"2":3,"3":6,"4":13,"5":6,"7":1,"8":1,"10":2,"11":2,"12":1,"16":4,"17":2,"18":2,"19":6,"20":8,"21":6,"22":1,"23":3,"24":1,"26":1,"27":2,"30":1,"31":1,"32":1,"34":1,"35":1,"38":1,"39":1,"41":1,"42":1,"43":1,"45":1,"48":5,"57":1,"61":2,"64":1,"66":1,"67":1,"69":2,"74":1,"77":1,"78":1,"79":1,"81":2}}],["through",{"2":{"15":1,"55":1}}],["throws",{"2":{"5":1}}],["throw",{"2":{"3":1,"30":1}}],["throwing",{"2":{"3":1}}],["thrown",{"2":{"2":1,"3":1,"5":1,"64":1}}],["three",{"2":{"4":2,"16":2,"19":1,"48":1}}],["than",{"2":{"3":1,"4":2,"5":2,"9":1,"19":2,"27":1,"39":1,"40":1,"48":1,"60":1,"62":1,"78":1,"79":1}}],["that",{"2":{"0":3,"1":2,"2":2,"3":1,"4":13,"5":15,"7":4,"8":3,"9":2,"10":1,"11":1,"12":1,"15":9,"16":4,"17":4,"19":4,"20":7,"21":12,"24":4,"27":2,"28":1,"31":1,"34":1,"36":1,"37":1,"38":1,"39":1,"40":3,"43":3,"46":2,"64":1,"69":2,"74":1,"80":2,"81":1,"83":1,"85":1}}],["then",{"2":{"20":1,"69":1,"79":1,"81":1}}],["their",{"2":{"3":2,"16":2,"20":3,"43":1,"51":2}}],["there",{"2":{"2":2,"4":2,"15":4,"20":1,"24":1,"28":1,"40":1,"43":1,"48":1,"66":1,"78":1,"80":1}}],["these",{"2":{"0":3,"1":1,"3":2,"4":4,"6":2,"7":1,"8":1,"9":1,"10":1,"15":2,"16":1,"17":2,"18":1,"19":2,"20":1,"21":3,"30":1,"34":1,"36":1,"39":1,"40":3,"44":1,"64":1,"80":2,"82":1}}],["they",{"2":{"0":1,"2":1,"3":2,"4":3,"5":2,"10":2,"11":1,"15":1,"17":2,"20":2,"21":1,"23":2,"27":1,"30":1,"34":2,"35":1,"60":1,"64":1,"67":1,"69":1,"80":1,"81":3,"83":1}}],["them",{"2":{"0":1,"4":1,"5":3,"11":1,"21":1,"27":1,"30":1,"43":1,"47":1,"48":1,"79":1,"80":1}}],["the",{"0":{"25":1},"2":{"0":20,"1":13,"2":8,"3":43,"4":85,"5":45,"6":3,"7":9,"8":7,"9":7,"10":9,"11":6,"12":3,"13":1,"15":52,"16":24,"17":16,"18":4,"19":48,"20":56,"21":22,"22":4,"23":9,"24":3,"25":8,"26":9,"27":5,"28":1,"29":1,"30":6,"31":4,"32":3,"33":2,"34":6,"35":1,"36":1,"38":7,"39":3,"40":6,"41":4,"42":4,"43":11,"44":1,"46":6,"47":4,"48":10,"51":1,"52":1,"56":1,"60":3,"61":4,"62":1,"63":1,"64":7,"65":4,"66":9,"67":4,"68":5,"69":7,"72":2,"74":3,"75":2,"76":1,"77":5,"79":19,"80":13,"81":6,"82":2,"83":8,"85":3,"86":1}}],["tolerance",{"2":{"79":1}}],["todo",{"2":{"49":1,"66":1}}],["together",{"2":{"24":1}}],["top",{"2":{"23":1,"30":1,"69":1}}],["tools",{"2":{"35":1,"51":2,"58":1}}],["too",{"2":{"21":1,"27":1,"55":1,"64":1}}],["total",{"2":{"19":1}}],["touched",{"2":{"79":1}}],["touches",{"2":{"5":7,"79":2}}],["touch",{"2":{"5":2}}],["touching",{"2":{"5":1}}],["tosort",{"2":{"3":4}}],["to",{"0":{"85":1,"86":1},"2":{"0":8,"1":5,"2":4,"3":18,"4":35,"5":18,"6":1,"8":1,"9":2,"10":12,"11":5,"12":3,"15":20,"16":8,"17":5,"18":1,"19":16,"20":32,"21":21,"22":2,"23":6,"24":4,"25":4,"26":2,"27":10,"30":1,"31":2,"32":3,"34":5,"35":3,"36":4,"38":1,"39":1,"40":3,"41":1,"42":2,"43":1,"44":1,"46":2,"48":7,"49":2,"51":1,"57":1,"58":1,"60":1,"61":5,"62":2,"64":3,"66":6,"67":2,"69":10,"74":1,"75":1,"77":1,"78":2,"79":4,"80":4,"81":3,"83":2,"86":1}}],["jan",{"2":{"48":4,"80":1}}],["january",{"2":{"19":2,"48":1}}],["jarring",{"2":{"16":2}}],["jump",{"0":{"55":1},"2":{"55":1}}],["jul",{"2":{"48":6,"80":1}}],["juliaprint",{"2":{"23":2}}],["juliaposition",{"2":{"10":1}}],["juliapoints",{"2":{"9":1}}],["juliahours",{"2":{"19":1}}],["juliahasselection",{"2":{"4":1}}],["juliahasdim",{"2":{"1":1,"15":1}}],["juliaranges",{"2":{"19":1}}],["juliareorder",{"2":{"20":1}}],["juliarebuild",{"2":{"20":1,"23":1,"40":1}}],["juliarefdims",{"2":{"15":1,"23":1}}],["juliaregular",{"2":{"8":1}}],["juliareverseordered",{"2":{"7":1}}],["juliareducedims",{"2":{"3":1}}],["juliagroupby",{"2":{"19":1}}],["juliamakie",{"2":{"68":1,"72":2,"73":1}}],["juliamap",{"2":{"16":1}}],["juliamodify",{"2":{"20":1}}],["juliamonths",{"2":{"19":1}}],["juliamergedims",{"2":{"20":3}}],["juliamergedlookup",{"2":{"4":1}}],["juliametadata",{"2":{"11":1,"15":1}}],["juliamean",{"2":{"0":4,"16":1}}],["juliafunction",{"2":{"16":1}}],["juliaforwardordered",{"2":{"7":1}}],["juliaformat",{"2":{"2":1,"41":1}}],["juliaend",{"2":{"10":1}}],["juliaexplicit",{"2":{"8":1}}],["juliairregular",{"2":{"8":1}}],["juliaintervals",{"2":{"9":1,"19":1}}],["juliaintselector",{"2":{"5":1}}],["juliaindependentdim",{"2":{"0":1}}],["juliawhere",{"2":{"5":1}}],["juliaordered",{"2":{"7":1}}],["juliaorder",{"2":{"4":1,"7":1}}],["juliaotherdims",{"2":{"1":1,"15":1}}],["juliab",{"2":{"71":1}}],["juliablockwidth",{"2":{"23":1}}],["juliabroadcast",{"2":{"20":2}}],["juliabins",{"2":{"19":1}}],["juliabegin",{"2":{"10":1}}],["juliabetween",{"2":{"5":1}}],["juliabounds",{"2":{"4":1}}],["juliabase",{"2":{"15":4,"21":5}}],["juliabasedims",{"2":{"3":1}}],["juliabasetypeof",{"2":{"3":1}}],["julianame",{"2":{"15":1,"22":1}}],["julianame2dim",{"2":{"3":1}}],["julianoname",{"2":{"22":1}}],["julianometadata",{"2":{"11":1}}],["julianolookup",{"2":{"4":1}}],["julianear",{"2":{"5":1}}],["juliatouches",{"2":{"5":1}}],["juliatransformed",{"2":{"4":1}}],["juliatimedim",{"2":{"0":2}}],["juliaunmergedims",{"2":{"20":2}}],["juliaunits",{"2":{"11":1}}],["juliaunordered",{"2":{"7":1}}],["juliaunaligned",{"2":{"4":1}}],["juliausing",{"2":{"0":3,"3":2,"4":6,"5":7,"13":1,"20":3,"25":1,"26":1,"34":1,"43":1,"46":1,"68":1,"69":1,"77":1,"79":1,"80":1,"84":1,"86":1}}],["juliacat",{"2":{"21":1}}],["juliacategorical",{"2":{"4":1}}],["juliacenter",{"2":{"10":1}}],["juliacolor",{"2":{"69":1}}],["juliacopy",{"2":{"21":2}}],["juliacontains",{"2":{"5":1}}],["juliacombinedims",{"2":{"3":1}}],["juliacomparedims",{"2":{"3":1}}],["juliacommondims",{"2":{"3":1}}],["juliacyclicbins",{"2":{"19":1}}],["juliacyclic",{"2":{"4":1}}],["juliaa",{"2":{"20":1}}],["juliaall",{"2":{"5":1}}],["juliaaligned",{"2":{"4":1}}],["juliaat",{"2":{"5":1}}],["juliaarrayselector",{"2":{"5":1}}],["juliaautoposition",{"2":{"10":1}}],["juliaautospan",{"2":{"8":1}}],["juliaautoorder",{"2":{"7":1}}],["juliaautovalues",{"2":{"4":1}}],["juliaautolookup",{"2":{"4":1}}],["juliaabstractname",{"2":{"22":1}}],["juliaabstractdimtable",{"2":{"18":1}}],["juliaabstractdimstack",{"2":{"16":1}}],["juliaabstractdimarray",{"2":{"15":1}}],["juliaabstractbasicdimarray",{"2":{"15":1}}],["juliaabstractmetadata",{"2":{"11":1}}],["juliaabstractcategorical",{"2":{"4":1}}],["juliaabstractcyclic",{"2":{"4":1}}],["juliaabstractsampled",{"2":{"4":1}}],["juliaanondim",{"2":{"0":1}}],["juliashow",{"2":{"23":2}}],["juliashiftlocus",{"2":{"4":1}}],["juliastrict",{"2":{"21":4}}],["juliastart",{"2":{"10":1}}],["juliaspan",{"2":{"4":1,"8":1}}],["juliasampling",{"2":{"4":1,"9":1}}],["juliasampled",{"2":{"4":1}}],["juliaset",{"2":{"20":1}}],["juliasetdims",{"2":{"3":1}}],["juliaseasons",{"2":{"19":1}}],["juliaselector",{"2":{"5":1}}],["juliaselectindices",{"2":{"2":1}}],["juliasortdims",{"2":{"3":1}}],["juliaslicedims",{"2":{"3":1}}],["juliaswapdims",{"2":{"3":1}}],["julialocus",{"2":{"4":1}}],["julialookuptrait",{"2":{"6":1}}],["julialookups",{"2":{"4":1}}],["julialookup",{"2":{"2":1,"4":1}}],["julialabel",{"2":{"2":1}}],["julia>",{"2":{"1":12,"3":4,"12":1,"15":24,"16":8,"17":4,"18":2,"19":2,"20":4,"21":4,"28":1,"33":1,"34":1,"42":1,"43":1,"61":1,"62":2,"74":1,"78":1,"79":2,"80":1}}],["julia",{"2":{"0":1,"19":1,"20":2,"23":2,"24":2,"26":1,"27":1,"31":1,"32":1,"35":3,"54":1,"56":1,"83":1}}],["juliajulia>",{"2":{"0":1,"1":4,"3":1,"12":3,"13":4,"15":10,"16":1,"17":2,"18":1,"19":4,"20":6,"21":1,"25":10,"26":2,"28":17,"29":2,"30":7,"31":2,"32":2,"33":3,"34":4,"42":4,"43":50,"44":73,"46":9,"47":8,"48":13,"49":4,"61":8,"62":2,"64":6,"65":2,"66":6,"74":2,"75":9,"76":4,"77":34,"78":2,"79":17,"80":11,"81":1,"82":5,"84":3,"85":5}}],["juliaz",{"2":{"0":1}}],["juliazdim",{"2":{"0":2}}],["juliayearday",{"2":{"46":1}}],["juliay",{"2":{"0":1}}],["juliaydim",{"2":{"0":2}}],["juliaval",{"2":{"0":4,"4":1}}],["juliadata",{"2":{"69":1}}],["juliadimgroupbyarray",{"2":{"19":1}}],["juliadimtable",{"2":{"18":1}}],["juliadimpoints",{"2":{"17":1}}],["juliadimindices",{"2":{"17":1}}],["juliadimarray",{"2":{"15":1}}],["juliadimnum",{"2":{"1":1,"15":1}}],["juliadimselectors",{"2":{"17":1}}],["juliadimstack",{"2":{"16":1}}],["juliadimsmatch",{"2":{"3":1}}],["juliadims2indices",{"2":{"2":1}}],["juliadims",{"2":{"1":2,"15":2}}],["juliadim",{"2":{"0":1}}],["juliadimension",{"2":{"0":1}}],["juliadimensions",{"2":{"0":1}}],["juliadependentdim",{"2":{"0":1}}],["juliaxdim",{"2":{"0":2}}],["juliax",{"2":{"0":3}}],["jun",{"2":{"48":6,"80":1}}],["just",{"2":{"5":2,"21":1,"24":1,"38":1,"40":1,"43":1,"48":3,"65":1,"66":1,"75":1}}],["j",{"2":{"3":2,"13":3,"71":1,"85":1}}],["jl",{"0":{"18":2,"35":1,"42":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"67":1,"68":1,"69":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1},"2":{"0":2,"4":5,"5":2,"18":2,"19":1,"20":2,"23":6,"26":1,"27":7,"31":6,"34":1,"35":11,"36":1,"37":1,"38":2,"40":3,"42":1,"43":2,"45":1,"51":3,"52":4,"53":2,"54":1,"55":1,"56":1,"57":2,"58":1,"59":1,"60":1,"64":1,"65":2,"67":4,"68":1,"69":4,"73":1,"83":5,"86":2}}],["omitted",{"2":{"85":4}}],["o=rand",{"2":{"75":1}}],["oct",{"2":{"48":4,"80":1}}],["own",{"2":{"46":1,"49":1,"55":1}}],["objs",{"2":{"39":1}}],["obj",{"2":{"37":1,"39":2,"40":2}}],["object",{"2":{"0":1,"1":9,"2":1,"3":7,"4":7,"6":1,"10":1,"11":2,"15":12,"17":1,"18":1,"20":11,"23":1,"31":2,"34":2,"40":1,"43":3,"49":1,"62":1,"64":1,"66":1}}],["objects",{"0":{"60":1},"1":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1},"2":{"0":1,"2":2,"3":1,"4":1,"5":2,"7":1,"11":1,"15":1,"16":3,"19":1,"20":4,"27":1,"30":1,"34":1,"37":1,"38":1,"39":1,"40":3,"43":1,"49":2,"60":1,"65":2,"66":1,"77":1}}],["our",{"2":{"30":2,"43":1,"46":1,"48":6,"69":1}}],["outer",{"2":{"41":1,"61":1,"80":1,"81":3}}],["outcome",{"2":{"16":2}}],["out",{"2":{"4":1,"18":1,"34":1,"51":1,"67":1}}],["outputs",{"2":{"57":1}}],["output",{"2":{"0":4,"3":2,"4":5,"5":7,"20":2,"25":1,"48":1,"49":1,"56":1}}],["old",{"2":{"20":6}}],["optimization",{"2":{"55":1}}],["optimised",{"2":{"7":1}}],["options",{"2":{"20":5,"42":2}}],["optional",{"2":{"15":1,"23":4,"42":2}}],["operation",{"2":{"19":1,"32":1,"69":1}}],["operations",{"2":{"0":1,"15":1,"19":1,"21":1,"27":1,"69":1}}],["open",{"2":{"5":1,"48":35,"79":1}}],["openinterval",{"2":{"5":1}}],["o",{"2":{"4":1,"75":2,"85":1}}],["overheads",{"2":{"78":1}}],["overlapping",{"2":{"19":1}}],["over",{"2":{"0":1,"4":4,"9":1,"16":3,"17":2,"19":2,"20":6,"21":2,"24":2,"25":1,"47":1,"77":1,"80":1}}],["others",{"2":{"20":2}}],["otherwise",{"2":{"4":1,"19":1,"20":1,"21":1,"36":1,"69":1}}],["otherdims",{"2":{"1":3,"15":3,"17":1,"43":8,"44":13}}],["other",{"2":{"0":2,"3":2,"4":2,"5":2,"19":1,"20":3,"21":2,"24":1,"25":1,"27":1,"28":1,"36":1,"44":1,"46":1,"49":1,"68":1,"74":1,"75":1,"80":1,"81":2,"83":1,"86":1}}],["orange",{"2":{"72":1,"73":1}}],["organized",{"2":{"34":1}}],["organises",{"2":{"0":1}}],["originates",{"2":{"19":1}}],["original",{"2":{"3":3,"20":7}}],["origin",{"2":{"11":1}}],["ordering",{"2":{"4":1}}],["order=unordered",{"2":{"4":1,"80":1}}],["order=autoorder",{"2":{"4":2}}],["order=forwardordered",{"2":{"3":1,"80":2}}],["ordered",{"2":{"1":1,"4":1,"7":4,"15":3,"80":2}}],["order",{"0":{"7":1},"2":{"1":1,"2":1,"3":12,"4":23,"5":1,"7":9,"15":1,"17":7,"20":17,"21":4,"25":1,"30":4,"43":6,"64":3,"68":1,"81":2}}],["or",{"2":{"0":5,"1":20,"2":7,"3":20,"4":33,"5":7,"7":1,"8":5,"9":3,"10":3,"11":6,"12":1,"13":2,"15":32,"16":7,"17":6,"18":4,"19":16,"20":15,"21":5,"23":4,"25":2,"27":1,"30":1,"31":2,"32":2,"34":1,"36":3,"38":1,"39":1,"41":1,"42":2,"43":10,"44":1,"45":1,"48":1,"60":1,"61":1,"64":1,"69":3,"72":1,"74":1,"75":2,"79":4,"80":3,"81":3,"82":2,"83":1,"86":1}}],["off",{"2":{"21":1,"24":1}}],["offsetarrays",{"2":{"38":2}}],["offset",{"2":{"5":1}}],["often",{"2":{"19":1,"20":1,"27":1,"51":1,"80":1}}],["of",{"2":{"0":5,"1":13,"2":6,"3":17,"4":45,"5":13,"6":5,"7":3,"8":1,"9":2,"10":7,"11":5,"15":35,"16":10,"17":16,"18":3,"19":40,"20":29,"21":10,"22":1,"23":16,"24":1,"25":2,"26":2,"27":1,"28":2,"30":8,"31":1,"34":2,"35":3,"36":1,"37":1,"38":1,"39":1,"40":2,"41":4,"42":10,"43":10,"46":2,"47":2,"48":5,"51":2,"53":1,"54":1,"56":1,"60":1,"61":1,"63":2,"64":4,"66":2,"67":1,"69":3,"72":1,"74":5,"75":2,"76":1,"77":3,"79":2,"80":4,"81":3,"82":2,"83":5,"85":1}}],["oneto",{"2":{"21":2,"25":2,"80":2}}],["one",{"2":{"3":1,"4":3,"9":1,"16":2,"20":1,"21":3,"26":1,"27":1,"40":2,"64":2,"74":1,"76":1,"79":1,"85":3}}],["ones",{"2":{"1":4,"3":3,"4":1,"15":10,"18":1,"20":4,"24":1,"28":4,"33":1}}],["only",{"2":{"2":1,"4":1,"5":1,"15":3,"17":4,"20":4,"40":2,"48":1,"60":1,"64":1,"69":1,"74":1,"75":1,"77":1,"85":1}}],["on",{"2":{"0":6,"1":1,"2":3,"3":1,"4":2,"5":1,"10":1,"11":1,"15":3,"16":2,"19":3,"20":3,"21":2,"22":1,"23":3,"24":2,"26":3,"27":2,"30":1,"35":1,"41":1,"42":2,"48":1,"57":1,"64":1,"65":1,"67":2,"69":1,"75":2}}],["away",{"2":{"64":1}}],["aware",{"2":{"24":1,"51":1}}],["a1",{"2":{"64":4}}],["aimed",{"2":{"52":1}}],["aggregate",{"2":{"48":1}}],["again",{"2":{"16":1,"30":1}}],["a=rand",{"2":{"74":1}}],["a=falses",{"2":{"61":1}}],["a=3",{"2":{"29":1}}],["a=1",{"2":{"13":1}}],["aug",{"2":{"48":6,"80":1}}],["auxiliary",{"2":{"27":1,"57":1}}],["autodetection",{"0":{"81":1}}],["automata",{"2":{"57":1}}],["automated",{"2":{"20":1}}],["automatic",{"2":{"0":1,"4":1,"10":1}}],["automatically",{"2":{"0":1,"4":3,"7":1,"27":1,"40":1,"80":2,"81":1}}],["autoposition",{"2":{"10":2}}],["autospan",{"2":{"8":2,"80":1}}],["autovalues",{"2":{"4":1,"80":1}}],["autolookup",{"2":{"4":3}}],["autoorder",{"2":{"4":3,"7":2,"80":1}}],["auto",{"2":{"2":1}}],["amazing",{"2":{"26":1}}],["amp",{"0":{"26":1},"1":{"27":1}}],["ambiguity",{"2":{"2":1,"11":1,"20":1,"24":1,"66":1}}],["after",{"2":{"15":1,"19":3,"23":3,"25":1,"48":1}}],["affine",{"2":{"4":1}}],["affect",{"2":{"0":1}}],["apr",{"2":{"48":6,"80":2}}],["approach",{"2":{"69":1}}],["appearance",{"2":{"20":1}}],["applies",{"2":{"61":1}}],["applied",{"2":{"4":1,"16":1,"19":2,"20":1,"77":1}}],["applicable",{"2":{"20":1,"69":1}}],["applications",{"2":{"64":1}}],["application",{"2":{"19":1,"35":1}}],["applying",{"2":{"19":2}}],["apply",{"2":{"16":3,"49":1}}],["api",{"0":{"14":1},"1":{"15":1,"16":1,"17":1,"18":1}}],["adherence",{"2":{"35":1}}],["adjoint",{"2":{"32":1,"77":1}}],["adjacent",{"2":{"5":1}}],["adapt",{"2":{"27":3}}],["addition",{"2":{"79":1}}],["additional",{"2":{"23":2,"80":1}}],["additionally",{"2":{"12":1}}],["adding",{"2":{"4":3,"23":2}}],["add",{"2":{"12":2,"23":1,"28":1,"80":1}}],["added",{"2":{"3":1,"23":3,"24":1,"36":1,"42":2}}],["available",{"2":{"4":1,"11":2}}],["avoids",{"2":{"16":1,"19":1}}],["avoid",{"2":{"0":1,"5":1,"16":1,"23":1,"24":1}}],["actual",{"2":{"27":1}}],["actually",{"2":{"2":1,"4":1}}],["active",{"2":{"21":2}}],["acepted",{"2":{"15":4}}],["accessed",{"2":{"75":1}}],["accessible",{"2":{"69":1}}],["accessing",{"2":{"33":1}}],["accessors",{"2":{"65":1}}],["access",{"2":{"28":1,"34":1,"69":1}}],["accepted",{"2":{"23":2,"42":2,"64":1}}],["accept",{"2":{"15":1,"16":1,"39":1,"41":1,"64":1}}],["acceptable",{"2":{"8":1}}],["accepts",{"2":{"4":1,"5":1,"55":1}}],["accurate",{"2":{"8":1}}],["account",{"2":{"4":2}}],["atol=0",{"2":{"79":1}}],["atol=nothing",{"2":{"5":1}}],["atol",{"2":{"5":1,"17":6,"64":1}}],["attach",{"2":{"4":1}}],["attached",{"2":{"3":1,"38":1}}],["attempting",{"2":{"21":2}}],["attempt",{"2":{"0":1}}],["at",{"2":{"0":1,"3":2,"4":6,"5":11,"9":3,"15":1,"16":3,"17":4,"19":2,"20":1,"23":5,"43":1,"46":1,"48":1,"51":1,"52":1,"74":2,"79":2,"80":2,"82":2}}],["astroimage",{"2":{"58":1}}],["astroimages",{"0":{"58":1},"2":{"58":1}}],["astronomical",{"2":{"58":1}}],["assumes",{"2":{"64":1}}],["assert",{"2":{"49":1}}],["associate",{"2":{"34":2}}],["assignment",{"2":{"20":1,"25":1}}],["assigned",{"2":{"4":9,"60":1,"81":1}}],["ascending",{"2":{"5":1}}],["as",{"2":{"0":6,"1":1,"2":3,"3":5,"4":8,"5":4,"8":1,"10":3,"15":7,"16":6,"17":4,"18":5,"19":5,"20":8,"21":4,"23":2,"24":2,"26":2,"27":3,"32":1,"33":1,"34":1,"35":2,"36":1,"38":1,"39":2,"40":4,"64":3,"67":3,"68":1,"69":2,"72":1,"79":2,"80":1,"81":5}}],["above",{"2":{"44":1,"47":2}}],["about",{"2":{"0":1,"4":3,"11":1,"26":1,"65":1}}],["abstracdimarray",{"2":{"31":1}}],["abstractname",{"2":{"22":3}}],["abstraction",{"2":{"20":1}}],["abstractdimtable",{"2":{"18":2}}],["abstractdimstack",{"2":{"16":4,"18":3,"19":5,"20":10,"21":7,"23":5,"36":1,"41":1,"51":1,"54":1,"61":1,"64":2,"74":1,"77":2,"83":1}}],["abstractdimarrays",{"2":{"3":1,"20":4,"22":1,"23":2,"31":1}}],["abstractdimarray",{"2":{"0":1,"3":2,"4":1,"11":2,"15":7,"16":5,"17":1,"18":4,"19":7,"20":17,"21":7,"23":6,"24":1,"27":2,"32":1,"36":1,"40":3,"41":2,"45":1,"51":1,"52":1,"55":1,"57":2,"58":1,"61":1,"64":2,"67":1,"68":1,"74":1,"77":1,"83":1}}],["abstractrng",{"2":{"15":2}}],["abstractrange",{"2":{"4":4,"19":2,"80":1,"81":1}}],["abstractbasicarray",{"2":{"15":1}}],["abstractbasicdimarray",{"2":{"15":2,"20":1}}],["abstractmetadata",{"2":{"11":3,"20":1}}],["abstractmatrix",{"2":{"8":1}}],["abstractstring",{"2":{"4":1}}],["abstractsampled",{"2":{"4":6,"36":1,"51":1,"80":1}}],["abstractcolumns",{"2":{"18":1}}],["abstractcategorical",{"2":{"4":4,"36":1}}],["abstractcyclic",{"2":{"4":2}}],["abstractarray",{"2":{"2":3,"3":2,"4":4,"5":1,"15":4,"16":2,"17":3,"19":4,"20":4,"21":2,"28":1,"35":1,"38":1,"48":2,"74":1,"80":1,"81":1}}],["abstractvector",{"2":{"0":1,"4":4,"15":8}}],["abstract",{"2":{"0":7,"1":2,"3":4,"4":4,"5":3,"6":1,"10":1,"11":1,"15":4,"16":2,"18":1,"20":1,"22":1}}],["abs",{"2":{"13":1}}],["absent",{"2":{"3":1}}],["axis",{"2":{"0":6,"2":1,"3":2,"4":9,"10":3,"15":4,"17":1,"20":1,"38":1,"48":1,"67":1,"68":2,"79":2,"80":2}}],["axes",{"0":{"38":1},"2":{"0":1,"1":1,"4":1,"15":1,"21":3,"25":2,"30":2,"32":1,"38":2,"64":1,"68":2}}],["algebraic",{"2":{"69":1}}],["algebra",{"2":{"69":1}}],["algebraofgraphics",{"0":{"69":1},"2":{"69":5}}],["algorithms",{"2":{"3":1,"64":1}}],["alpha",{"2":{"13":1}}],["alpha=",{"2":{"13":1}}],["align",{"2":{"10":1}}],["aligned",{"2":{"4":6,"82":1}}],["although",{"2":{"4":1,"15":1,"67":1}}],["alone",{"2":{"4":2}}],["along",{"0":{"25":1},"2":{"0":1,"19":1,"32":1,"43":1,"80":1}}],["always",{"2":{"1":1,"3":1,"9":1,"11":2,"15":1,"16":2,"20":2,"21":4,"23":2,"40":1,"44":1,"51":1,"64":1}}],["already",{"2":{"0":1,"27":1}}],["also",{"2":{"0":3,"3":3,"5":2,"10":1,"11":1,"16":1,"19":1,"20":3,"25":1,"30":1,"31":1,"32":1,"34":1,"38":1,"39":1,"40":1,"47":1,"48":3,"49":2,"51":1,"66":1,"68":2,"69":3,"76":1,"79":4,"80":1,"82":1,"86":1}}],["allocate",{"2":{"83":1}}],["allocations",{"2":{"78":2}}],["allocation",{"2":{"20":1}}],["allocs",{"2":{"33":2}}],["allows",{"2":{"10":1,"19":1,"20":1,"69":1}}],["allowing",{"2":{"4":1}}],["allow",{"2":{"4":1,"10":1,"11":1,"57":1}}],["all",{"2":{"0":5,"2":1,"3":3,"4":5,"5":6,"6":1,"11":1,"15":3,"16":5,"17":3,"20":11,"21":8,"22":1,"23":2,"27":1,"31":1,"40":2,"42":2,"43":1,"44":3,"48":1,"51":1,"57":2,"60":1,"61":3,"69":1,"74":2,"75":1,"76":1,"77":1,"78":1,"79":1,"83":1}}],["arviz",{"0":{"54":1},"2":{"36":1,"54":2}}],["archgdal",{"2":{"35":1}}],["around",{"2":{"19":3,"20":1}}],["arbitrary",{"0":{"29":1},"2":{"17":1,"19":2,"29":1,"48":1}}],["arg",{"2":{"23":3,"42":3,"64":1}}],["args",{"2":{"3":1,"15":1,"20":3,"23":12,"40":1,"42":12}}],["argumenterror",{"2":{"30":1}}],["argument",{"2":{"2":1,"3":2,"4":4,"11":2,"15":2,"16":1,"20":4,"25":1,"39":1,"40":3,"72":1}}],["arguments",{"2":{"0":1,"1":4,"3":4,"4":8,"8":1,"15":6,"16":1,"19":1,"20":5,"23":2,"27":1,"40":1,"42":2,"64":2}}],["arrays",{"0":{"15":1},"2":{"5":1,"15":5,"16":1,"19":1,"20":2,"21":1,"22":1,"23":2,"25":1,"60":1,"61":3,"81":3,"82":1,"85":1,"86":1}}],["arrayselectors",{"2":{"5":1}}],["arrayselector",{"2":{"5":4}}],["array",{"0":{"16":1,"76":1},"2":{"0":3,"1":1,"2":2,"3":4,"4":16,"5":1,"9":1,"10":1,"11":1,"13":1,"15":6,"16":3,"17":3,"18":1,"19":1,"20":8,"21":4,"22":2,"23":2,"24":1,"25":1,"26":1,"27":3,"31":1,"32":1,"33":1,"36":2,"38":3,"41":2,"42":2,"47":1,"48":1,"55":1,"61":4,"64":4,"69":1,"78":1,"79":2,"80":1,"81":2,"82":1,"83":1}}],["aren",{"2":{"82":1}}],["area",{"2":{"5":3}}],["are",{"2":{"0":7,"1":1,"2":2,"3":17,"4":15,"5":11,"7":1,"8":2,"9":2,"11":1,"15":10,"16":3,"17":4,"18":2,"19":1,"20":15,"21":5,"23":13,"24":1,"25":1,"27":2,"28":2,"30":1,"34":4,"35":2,"36":3,"40":2,"42":10,"43":1,"46":1,"48":1,"51":2,"57":2,"60":2,"64":3,"68":1,"76":2,"77":1,"78":1,"80":2,"81":9,"82":1,"83":3}}],["analysis",{"2":{"48":1,"53":1,"54":1}}],["analogous",{"2":{"24":1}}],["answer",{"2":{"35":1}}],["ansi",{"2":{"23":1}}],["anomalies",{"2":{"19":1}}],["another",{"2":{"4":1,"15":1,"16":1,"17":2,"21":1,"29":1,"45":1,"52":1,"64":1,"75":1,"76":2,"79":1,"82":1}}],["anonymous",{"2":{"0":1}}],["anondim",{"2":{"0":2}}],["annual",{"2":{"4":1}}],["anything",{"2":{"2":1,"20":1}}],["any",{"2":{"0":1,"1":5,"2":1,"3":4,"4":5,"5":5,"11":2,"15":5,"19":8,"20":1,"21":1,"23":2,"27":1,"28":12,"34":2,"39":3,"40":1,"43":2,"47":7,"48":11,"49":3,"55":1,"69":1,"74":1,"77":1,"80":1,"86":1}}],["an",{"2":{"0":2,"1":8,"2":1,"3":5,"4":9,"5":5,"6":1,"7":1,"8":1,"9":1,"10":3,"11":2,"15":21,"16":1,"17":6,"18":3,"19":6,"20":8,"21":2,"22":1,"23":6,"24":1,"27":1,"30":1,"31":2,"32":1,"34":1,"38":1,"40":1,"41":2,"43":6,"47":1,"48":3,"49":1,"54":2,"69":2,"72":1,"74":2,"79":2,"80":2,"81":1,"83":1}}],["and",{"0":{"24":1,"47":1,"83":1},"1":{"25":1,"84":1,"85":1,"86":1},"2":{"0":9,"2":7,"3":8,"4":27,"5":10,"7":2,"8":3,"10":2,"11":4,"13":1,"15":17,"16":13,"17":2,"18":3,"19":4,"20":10,"21":11,"22":1,"23":12,"24":2,"25":4,"26":1,"27":4,"28":2,"29":2,"30":1,"31":3,"34":3,"35":5,"36":1,"38":2,"39":1,"40":3,"41":3,"42":6,"43":3,"44":2,"48":4,"49":1,"51":7,"52":2,"57":2,"58":1,"60":1,"61":2,"64":2,"65":1,"66":1,"67":3,"68":4,"69":3,"74":1,"75":1,"77":1,"78":3,"79":3,"80":3,"81":8,"82":1,"83":6,"85":3,"86":1}}],["a",{"0":{"72":1},"2":{"0":30,"1":30,"2":11,"3":32,"4":50,"5":38,"6":1,"7":2,"8":4,"9":1,"10":6,"11":8,"13":6,"15":69,"16":32,"17":16,"18":5,"19":43,"20":46,"21":12,"22":2,"23":13,"24":3,"25":7,"26":5,"27":1,"28":7,"29":3,"31":2,"34":4,"36":2,"37":1,"38":2,"40":1,"41":2,"42":4,"43":64,"44":73,"45":2,"46":1,"47":8,"48":14,"49":4,"51":5,"52":1,"54":1,"55":2,"56":1,"57":1,"60":1,"61":10,"62":9,"63":2,"64":13,"65":4,"66":14,"67":2,"68":6,"69":13,"71":1,"72":3,"73":2,"74":5,"75":14,"76":27,"77":41,"78":6,"79":60,"80":14,"81":6,"82":5,"84":5,"85":33,"86":9}}]],"serializationVersion":2}';export{e as default}; diff --git a/previews/PR872/assets/chunks/VPLocalSearchBox.805L3Tdu.js b/previews/PR872/assets/chunks/VPLocalSearchBox.805L3Tdu.js new file mode 100644 index 000000000..9dffac9d9 --- /dev/null +++ b/previews/PR872/assets/chunks/VPLocalSearchBox.805L3Tdu.js @@ -0,0 +1,8 @@ +var Ft=Object.defineProperty;var Ot=(a,e,t)=>e in a?Ft(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ae=(a,e,t)=>Ot(a,typeof e!="symbol"?e+"":e,t);import{V as Ct,p as ie,h as me,aj as tt,ak as Rt,al as At,q as $e,am as Mt,d as Lt,D as xe,an as st,ao as Dt,ap as zt,s as Pt,aq as jt,v as Me,P as he,O as _e,ar as Vt,as as $t,W as Bt,R as Wt,$ as Kt,o as H,b as Jt,j as _,a0 as Ut,k as L,at as qt,au as Gt,av as Ht,c as Z,n as nt,e as Se,C as it,F as rt,a as fe,t as pe,aw as Qt,ax as at,ay as Yt,a8 as Zt,ae as Xt,az as es,_ as ts}from"./framework.ByNLHi2E.js";import{u as ss,c as ns}from"./theme.DYW__FGo.js";const is={root:()=>Ct(()=>import("./@localSearchIndexroot.CbrSiIgt.js"),[])};/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var mt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ne=mt.join(","),gt=typeof Element>"u",ae=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!gt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Oe=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},rs=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},bt=function(e,t,s){if(Oe(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&ae.call(e,Ne)&&n.unshift(e),n=n.filter(s),n},yt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!Oe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scopeParent:i,candidates:c})}else{var h=ae.call(i,Ne);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var m=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),f=!Oe(m,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(m&&f){var b=a(m===!0?i.children:m.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},re=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rs(e))&&!wt(e)?0:e.tabIndex},as=function(e,t){var s=re(e);return s<0&&t&&!wt(e)?0:s},os=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},ls=function(e){return xt(e)&&e.type==="hidden"},cs=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},us=function(e,t){for(var s=0;ssummary:first-of-type"),i=r?e.parentElement:e;if(ae.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var l=e.parentElement,c=Fe(e);if(l&&!l.shadowRoot&&n(l)===!0)return ot(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(ps(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return ot(e);return!1},ms=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s=0)},bs=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,l=as(o,i),c=i?a(n.candidates):o;l===0?i?t.push.apply(t,c):t.push(o):s.push({documentOrder:r,tabIndex:l,item:n,isScope:i,content:c})}),s.sort(os).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},ys=function(e,t){t=t||{};var s;return t.getShadowRoot?s=yt([e],t.includeContainer,{filter:Be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gs}):s=bt(e,t.includeContainer,Be.bind(null,t)),bs(s)},ws=function(e,t){t=t||{};var s;return t.getShadowRoot?s=yt([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=bt(e,t.includeContainer,Ce.bind(null,t)),s},oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,Ne)===!1?!1:Be(t,e)},xs=mt.concat("iframe").join(","),Le=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,xs)===!1?!1:Ce(t,e)};/*! +* focus-trap 7.6.2 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function We(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,s=Array(e);t0){var s=e[e.length-1];s!==t&&s.pause()}var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var s=e.indexOf(t);s!==-1&&e.splice(s,1),e.length>0&&e[e.length-1].unpause()}},Os=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Cs=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ge=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Rs=function(e){return ge(e)&&!e.shiftKey},As=function(e){return ge(e)&&e.shiftKey},dt=function(e){return setTimeout(e,0)},ve=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:{},g=d.hasFallback,T=g===void 0?!1:g,k=d.params,O=k===void 0?[]:k,S=r[u];if(typeof S=="function"&&(S=S.apply(void 0,Is(O))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var C=S;if(typeof S=="string"){try{C=s.querySelector(S)}catch(v){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(v.message,'"'))}if(!C&&!T)throw new Error("`".concat(u,"` as selector refers to no known node"))}return C},m=function(){var u=h("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Le(u,r.tabbableOptions))if(c(s.activeElement)>=0)u=s.activeElement;else{var d=i.tabbableGroups[0],g=d&&d.firstTabbableNode;u=g||h("fallbackFocus")}else u===null&&(u=h("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},f=function(){if(i.containerGroups=i.containers.map(function(u){var d=ys(u,r.tabbableOptions),g=ws(u,r.tabbableOptions),T=d.length>0?d[0]:void 0,k=d.length>0?d[d.length-1]:void 0,O=g.find(function(v){return oe(v)}),S=g.slice().reverse().find(function(v){return oe(v)}),C=!!d.find(function(v){return re(v)>0});return{container:u,tabbableNodes:d,focusableNodes:g,posTabIndexesFound:C,firstTabbableNode:T,lastTabbableNode:k,firstDomTabbableNode:O,lastDomTabbableNode:S,nextTabbableNode:function(p){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=d.indexOf(p);return F<0?E?g.slice(g.indexOf(p)+1).find(function(z){return oe(z)}):g.slice(0,g.indexOf(p)).reverse().find(function(z){return oe(z)}):d[F+(E?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var d=u.activeElement;if(d)return d.shadowRoot&&d.shadowRoot.activeElement!==null?b(d.shadowRoot):d},y=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){y(m());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,Os(u)&&u.select()}},x=function(u){var d=h("setReturnFocus",{params:[u]});return d||(d===!1?!1:u)},w=function(u){var d=u.target,g=u.event,T=u.isBackward,k=T===void 0?!1:T;d=d||Ee(g),f();var O=null;if(i.tabbableGroups.length>0){var S=c(d,g),C=S>=0?i.containerGroups[S]:void 0;if(S<0)k?O=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:O=i.tabbableGroups[0].firstTabbableNode;else if(k){var v=i.tabbableGroups.findIndex(function(j){var I=j.firstTabbableNode;return d===I});if(v<0&&(C.container===d||Le(d,r.tabbableOptions)&&!oe(d,r.tabbableOptions)&&!C.nextTabbableNode(d,!1))&&(v=S),v>=0){var p=v===0?i.tabbableGroups.length-1:v-1,E=i.tabbableGroups[p];O=re(d)>=0?E.lastTabbableNode:E.lastDomTabbableNode}else ge(g)||(O=C.nextTabbableNode(d,!1))}else{var F=i.tabbableGroups.findIndex(function(j){var I=j.lastTabbableNode;return d===I});if(F<0&&(C.container===d||Le(d,r.tabbableOptions)&&!oe(d,r.tabbableOptions)&&!C.nextTabbableNode(d))&&(F=S),F>=0){var z=F===i.tabbableGroups.length-1?0:F+1,P=i.tabbableGroups[z];O=re(d)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else ge(g)||(O=C.nextTabbableNode(d))}}else O=h("fallbackFocus");return O},R=function(u){var d=Ee(u);if(!(c(d,u)>=0)){if(ve(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ve(r.allowOutsideClick,u)||u.preventDefault()}},A=function(u){var d=Ee(u),g=c(d,u)>=0;if(g||d instanceof Document)g&&(i.mostRecentlyFocusedNode=d);else{u.stopImmediatePropagation();var T,k=!0;if(i.mostRecentlyFocusedNode)if(re(i.mostRecentlyFocusedNode)>0){var O=c(i.mostRecentlyFocusedNode),S=i.containerGroups[O].tabbableNodes;if(S.length>0){var C=S.findIndex(function(v){return v===i.mostRecentlyFocusedNode});C>=0&&(r.isKeyForward(i.recentNavEvent)?C+1=0&&(T=S[C-1],k=!1))}}else i.containerGroups.some(function(v){return v.tabbableNodes.some(function(p){return re(p)>0})})||(k=!1);else k=!1;k&&(T=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),y(T||i.mostRecentlyFocusedNode||m())}i.recentNavEvent=void 0},J=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=w({event:u,isBackward:d});g&&(ge(u)&&u.preventDefault(),y(g))},Q=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&J(u,r.isKeyBackward(u))},W=function(u){Cs(u)&&ve(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},V=function(u){var d=Ee(u);c(d,u)>=0||ve(r.clickOutsideDeactivates,u)||ve(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},$=function(){if(i.active)return ut.activateTrap(n,o),i.delayInitialFocusTimer=r.delayInitialFocus?dt(function(){y(m())}):y(m()),s.addEventListener("focusin",A,!0),s.addEventListener("mousedown",R,{capture:!0,passive:!1}),s.addEventListener("touchstart",R,{capture:!0,passive:!1}),s.addEventListener("click",V,{capture:!0,passive:!1}),s.addEventListener("keydown",Q,{capture:!0,passive:!1}),s.addEventListener("keydown",W),o},be=function(){if(i.active)return s.removeEventListener("focusin",A,!0),s.removeEventListener("mousedown",R,!0),s.removeEventListener("touchstart",R,!0),s.removeEventListener("click",V,!0),s.removeEventListener("keydown",Q,!0),s.removeEventListener("keydown",W),o},M=function(u){var d=u.some(function(g){var T=Array.from(g.removedNodes);return T.some(function(k){return k===i.mostRecentlyFocusedNode})});d&&y(m())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,q=function(){U&&(U.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){U.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var d=l(u,"onActivate"),g=l(u,"onPostActivate"),T=l(u,"checkCanFocusTrap");T||f(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=s.activeElement,d==null||d();var k=function(){T&&f(),$(),q(),g==null||g()};return T?(T(i.containers.concat()).then(k,k),this):(k(),this)},deactivate:function(u){if(!i.active)return this;var d=ct({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,be(),i.active=!1,i.paused=!1,q(),ut.deactivateTrap(n,o);var g=l(d,"onDeactivate"),T=l(d,"onPostDeactivate"),k=l(d,"checkCanReturnFocus"),O=l(d,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){dt(function(){O&&y(x(i.nodeFocusedBeforeActivation)),T==null||T()})};return O&&k?(k(x(i.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){if(i.paused||!i.active)return this;var d=l(u,"onPause"),g=l(u,"onPostPause");return i.paused=!0,d==null||d(),be(),q(),g==null||g(),this},unpause:function(u){if(!i.paused||!i.active)return this;var d=l(u,"onUnpause"),g=l(u,"onPostUnpause");return i.paused=!1,d==null||d(),f(),$(),q(),g==null||g(),this},updateContainerElements:function(u){var d=[].concat(u).filter(Boolean);return i.containers=d.map(function(g){return typeof g=="string"?s.querySelector(g):g}),i.active&&f(),q(),this}},o.updateContainerElements(e),o};function Ds(a,e={}){let t;const{immediate:s,...n}=e,r=ie(!1),i=ie(!1),o=f=>t&&t.activate(f),l=f=>t&&t.deactivate(f),c=()=>{t&&(t.pause(),i.value=!0)},h=()=>{t&&(t.unpause(),i.value=!1)},m=me(()=>{const f=tt(a);return(Array.isArray(f)?f:[f]).map(b=>{const y=tt(b);return typeof y=="string"?y:Rt(y)}).filter(At)});return $e(m,f=>{f.length&&(t=Ls(f,{...n,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),s&&o())},{flush:"post"}),Mt(()=>l()),{hasFocus:r,isPaused:i,activate:o,deactivate:l,pause:c,unpause:h}}class ce{constructor(e,t=!0,s=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=s,this.iframesTimeout=n}static matches(e,t){const s=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let r=!1;return s.every(i=>n.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(s=>{const n=t.filter(r=>r.contains(s)).length>0;t.indexOf(s)===-1&&!n&&t.push(s)}),t}getIframeContents(e,t,s=()=>{}){let n;try{const r=e.contentWindow;if(n=r.document,!r||!n)throw new Error("iframe inaccessible")}catch{s()}n&&t(n)}isIframeBlank(e){const t="about:blank",s=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&s!==t&&s}observeIframeLoad(e,t,s){let n=!1,r=null;const i=()=>{if(!n){n=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,s))}catch{s()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,s){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,s):this.getIframeContents(e,t,s):this.observeIframeLoad(e,t,s)}catch{s()}}waitForIframes(e,t){let s=0;this.forEachIframe(e,()=>!0,n=>{s++,this.waitForIframes(n.querySelector("html"),()=>{--s||t()})},n=>{n||t()})}forEachIframe(e,t,s,n=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const l=()=>{--i<=0&&n(o)};i||l(),r.forEach(c=>{ce.matches(c,this.exclude)?l():this.onIframeReady(c,h=>{t(c)&&(o++,s(h)),l()},l)})}createIterator(e,t,s){return document.createNodeIterator(e,t,s,!1)}createInstanceOnIframe(e){return new ce(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,s){const n=e.compareDocumentPosition(s),r=Node.DOCUMENT_POSITION_PRECEDING;if(n&r)if(t!==null){const i=t.compareDocumentPosition(s),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let s;return t===null?s=e.nextNode():s=e.nextNode()&&e.nextNode(),{prevNode:t,node:s}}checkIframeFilter(e,t,s,n){let r=!1,i=!1;return n.forEach((o,l)=>{o.val===s&&(r=l,i=o.handled)}),this.compareNodeIframe(e,t,s)?(r===!1&&!i?n.push({val:s,handled:!0}):r!==!1&&!i&&(n[r].handled=!0),!0):(r===!1&&n.push({val:s,handled:!1}),!1)}handleOpenIframes(e,t,s,n){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,s,n)})})}iterateThroughNodes(e,t,s,n,r){const i=this.createIterator(t,e,n);let o=[],l=[],c,h,m=()=>({prevNode:h,node:c}=this.getIteratorNode(i),c);for(;m();)this.iframes&&this.forEachIframe(t,f=>this.checkIframeFilter(c,h,f,o),f=>{this.createInstanceOnIframe(f).forEachNode(e,b=>l.push(b),n)}),l.push(c);l.forEach(f=>{s(f)}),this.iframes&&this.handleOpenIframes(o,e,s,n),r()}forEachNode(e,t,s,n=()=>{}){const r=this.getContexts();let i=r.length;i||n(),r.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,s,()=>{--i<=0&&n()})};this.iframes?this.waitForIframes(o,l):l()})}}let zs=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ce(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[t]=="function"&&s[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${s}`),n+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,s,n)=>{let r=n.charAt(s+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&t.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let n=[];return e.split("").forEach(r=>{s.every(i=>{if(i.indexOf(r)!==-1){if(n.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),n.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,n=typeof s=="string"?s:s.value,r=typeof s=="string"?[]:s.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):s.trim()&&t.indexOf(s)===-1&&t.push(s)}),{keywords:t.sort((s,n)=>n.length-s.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let s=0;return e.sort((n,r)=>n.start-r.start).forEach(n=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(n,s);o&&(n.start=r,n.length=i-r,t.push(n),s=i)}),t}callNoMatchOnInvalidRanges(e,t){let s,n,r=!1;return e&&typeof e.start<"u"?(s=parseInt(e.start,10),n=s+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-s>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:s,end:n,valid:r}}checkWhitespaceRanges(e,t,s){let n,r=!0,i=s.length,o=t-i,l=parseInt(e.start,10)-o;return l=l>i?i:l,n=l+parseInt(e.length,10),n>i&&(n=i,this.log(`End range automatically set to the max value of ${i}`)),l<0||n-l<0||l>i||n>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):s.substring(l,n).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:n,valid:r}}getTextNodes(e){let t="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{s.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:s})})}matchesExclude(e){return ce.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,s){const n=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(s-t);let o=document.createElement(n);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,s,n,r){e.nodes.every((i,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!n(i.node))return!1;const c=t-i.start,h=(s>i.end?i.end:s)-i.start,m=e.value.substr(0,i.start),f=e.value.substr(h+i.start);if(i.node=this.wrapRangeInTextNode(i.node,c,h),e.value=m+f,e.nodes.forEach((b,y)=>{y>=o&&(e.nodes[y].start>0&&y!==o&&(e.nodes[y].start-=h),e.nodes[y].end-=h)}),s-=h,r(i.node.previousSibling,i.start),s>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,s,n,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[i]!=="";){if(!s(c[i],l))continue;let h=c.index;if(i!==0)for(let m=1;m{let l;for(;(l=e.exec(o.value))!==null&&l[i]!=="";){let c=l.index;if(i!==0)for(let m=1;ms(l[i],m),(m,f)=>{e.lastIndex=f,n(m)})}r()})}wrapRangeFromIndex(e,t,s,n){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,l)=>{let{start:c,end:h,valid:m}=this.checkWhitespaceRanges(o,i,r.value);m&&this.wrapRangeInMappedTextNode(r,c,h,f=>t(f,o,r.value.substring(c,h),l),f=>{s(f,o)})}),n()})}unwrapMatches(e){const t=e.parentNode;let s=document.createDocumentFragment();for(;e.firstChild;)s.appendChild(e.removeChild(e.firstChild));t.replaceChild(s,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let s=0,n="wrapMatches";const r=i=>{s++,this.opt.each(i)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,s),r,()=>{s===0&&this.opt.noMatch(e),this.opt.done(s)})}mark(e,t){this.opt=t;let s=0,n="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let h=new RegExp(this.createRegExp(c),`gm${o}`),m=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(f,b)=>this.opt.filter(b,c,s,m),f=>{m++,s++,this.opt.each(f)},()=>{m===0&&this.opt.noMatch(c),r[i-1]===c?this.opt.done(s):l(r[r.indexOf(c)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),i===0?this.opt.done(s):l(r[0])}markRanges(e,t){this.opt=t;let s=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(r,i,o,l)=>this.opt.filter(r,i,o,l),(r,i)=>{s++,this.opt.each(r,i)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const n=ce.matches(s,t),r=this.matchesExclude(s);return!n||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ps(a){const e=new zs(a);return this.mark=(t,s)=>(e.mark(t,s),this),this.markRegExp=(t,s)=>(e.markRegExp(t,s),this),this.markRanges=(t,s)=>(e.markRanges(t,s),this),this.unmark=t=>(e.unmark(t),this),this}function ke(a,e,t,s){function n(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(h){try{c(s.next(h))}catch(m){i(m)}}function l(h){try{c(s.throw(h))}catch(m){i(m)}}function c(h){h.done?r(h.value):n(h.value).then(o,l)}c((s=s.apply(a,[])).next())})}const js="ENTRIES",_t="KEYS",St="VALUES",D="";class De{constructor(e,t){const s=e._tree,n=Array.from(s.keys());this.set=e,this._type=t,this._path=n.length>0?[{node:s,keys:n}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=le(this._path);if(le(t)===D)return{done:!1,value:this.result()};const s=e.get(le(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=le(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>le(e)).filter(e=>e!==D).join("")}value(){return le(this._path).node.get(D)}result(){switch(this._type){case St:return this.value();case _t:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const le=a=>a[a.length-1],Vs=(a,e,t)=>{const s=new Map;if(e===void 0)return s;const n=e.length+1,r=n+t,i=new Uint8Array(r*n).fill(t+1);for(let o=0;o{const l=r*i;e:for(const c of a.keys())if(c===D){const h=n[l-1];h<=t&&s.set(o,[a.get(c),h])}else{let h=r;for(let m=0;mt)continue e}Et(a.get(c),e,t,s,n,h,i,o+c)}};class X{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,s]=Re(this._tree,e.slice(this._prefix.length));if(t===void 0){const[n,r]=qe(s);for(const i of n.keys())if(i!==D&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),n.get(i)),new X(o,e)}}return new X(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,$s(this._tree,e)}entries(){return new De(this,js)}forEach(e){for(const[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Vs(this._tree,e,t)}get(e){const t=Ke(this._tree,e);return t!==void 0?t.get(D):void 0}has(e){const t=Ke(this._tree,e);return t!==void 0&&t.has(D)}keys(){return new De(this,_t)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ze(this._tree,e).set(D,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=ze(this._tree,e);return s.set(D,t(s.get(D))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const s=ze(this._tree,e);let n=s.get(D);return n===void 0&&s.set(D,n=t()),n}values(){return new De(this,St)}[Symbol.iterator](){return this.entries()}static from(e){const t=new X;for(const[s,n]of e)t.set(s,n);return t}static fromObject(e){return X.from(Object.entries(e))}}const Re=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const s of a.keys())if(s!==D&&e.startsWith(s))return t.push([a,s]),Re(a.get(s),e.slice(s.length),t);return t.push([a,e]),Re(void 0,"",t)},Ke=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==D&&e.startsWith(t))return Ke(a.get(t),e.slice(t.length))},ze=(a,e)=>{const t=e.length;e:for(let s=0;a&&s{const[t,s]=Re(a,e);if(t!==void 0){if(t.delete(D),t.size===0)Tt(s);else if(t.size===1){const[n,r]=t.entries().next().value;It(s,n,r)}}},Tt=a=>{if(a.length===0)return;const[e,t]=qe(a);if(e.delete(t),e.size===0)Tt(a.slice(0,-1));else if(e.size===1){const[s,n]=e.entries().next().value;s!==D&&It(a.slice(0,-1),s,n)}},It=(a,e,t)=>{if(a.length===0)return;const[s,n]=qe(a);s.set(n+e,t),s.delete(n)},qe=a=>a[a.length-1],Ge="or",kt="and",Bs="and_not";class ue{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Ve:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},je),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},ht),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},qs),e.autoSuggestOptions||{})}),this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ue,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:s,processTerm:n,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const l=this.addDocumentId(o);this.saveStoredFields(l,e);for(const c of r){const h=t(e,c);if(h==null)continue;const m=s(h.toString(),c),f=this._fieldIds[c],b=new Set(m).size;this.addFieldLength(l,f,this._documentCount-1,b);for(const y of m){const x=n(y,c);if(Array.isArray(x))for(const w of x)this.addTerm(f,l,w);else x&&this.addTerm(f,l,x)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:s=10}=t,n={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:l},c,h)=>(o.push(c),(h+1)%s===0?{chunk:[],promise:l.then(()=>new Promise(m=>setTimeout(m,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),n);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:s,extractField:n,fields:r,idField:i}=this._options,o=n(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const l=this._idToShortId.get(o);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const c of r){const h=n(e,c);if(h==null)continue;const m=t(h.toString(),c),f=this._fieldIds[c],b=new Set(m).size;this.removeFieldLength(l,f,this._documentCount,b);for(const y of m){const x=s(y,c);if(Array.isArray(x))for(const w of x)this.removeTerm(f,l,w);else x&&this.removeTerm(f,l,x)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(o),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new X,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,n)=>{this.removeFieldLength(t,n,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:n}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:n},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:s}=this._options,n=s(e,t);this.discard(n),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ue,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return ke(this,void 0,void 0,function*(){const s=this._dirtCount;if(this.vacuumConditionsMet(t)){const n=e.batchSize||Je.batchSize,r=e.batchWait||Je.batchWait;let i=1;for(const[o,l]of this._index){for(const[c,h]of l)for(const[m]of h)this._documentIds.has(m)||(h.size<=1?l.delete(c):h.delete(m));this._index.get(o).size===0&&this._index.delete(o),i%n===0&&(yield new Promise(c=>setTimeout(c,r))),i+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||Ve.minDirtCount,s=s||Ve.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:s}=this._options,n=Object.assign(Object.assign({},s),t),r=this.executeQuery(e,t),i=[];for(const[o,{score:l,terms:c,match:h}]of r){const m=c.length||1,f={id:this._documentIds.get(o),score:l*m,terms:Object.keys(h),queryTerms:c,match:h};Object.assign(f,this._storedFields.get(o)),(n.filter==null||n.filter(f))&&i.push(f)}return e===ue.wildcard&&n.boostDocument==null||i.sort(pt),i}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const s=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),l=s.get(o);l!=null?(l.score+=r,l.count+=1):s.set(o,{score:r,terms:i,count:1})}const n=[];for(const[r,{score:i,terms:o,count:l}]of s)n.push({suggestion:r,terms:o,score:i/l});return n.sort(pt),n}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return ke(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(je.hasOwnProperty(e))return Pe(je,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Te(n),l._fieldLength=Te(r),l._storedFields=Te(i);for(const[c,h]of l._documentIds)l._idToShortId.set(h,c);for(const[c,h]of s){const m=new Map;for(const f of Object.keys(h)){let b=h[f];o===1&&(b=b.ds),m.set(parseInt(f,10),Te(b))}l._index.set(c,m)}return l}static loadJSAsync(e,t){return ke(this,void 0,void 0,function*(){const{index:s,documentIds:n,fieldLength:r,storedFields:i,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=yield Ie(n),l._fieldLength=yield Ie(r),l._storedFields=yield Ie(i);for(const[h,m]of l._documentIds)l._idToShortId.set(m,h);let c=0;for(const[h,m]of s){const f=new Map;for(const b of Object.keys(m)){let y=m[b];o===1&&(y=y.ds),f.set(parseInt(b,10),yield Ie(y))}++c%1e3===0&&(yield Nt(0)),l._index.set(h,f)}return l})}static instantiateMiniSearch(e,t){const{documentCount:s,nextId:n,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new ue(t);return c._documentCount=s,c._nextId=n,c._idToShortId=new Map,c._fieldIds=r,c._avgFieldLength=i,c._dirtCount=o||0,c._index=new X,c}executeQuery(e,t={}){if(e===ue.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const f=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),b=e.queries.map(y=>this.executeQuery(y,f));return this.combineResults(b,f.combineWith)}const{tokenize:s,processTerm:n,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:s,processTerm:n},r),t),{tokenize:o,processTerm:l}=i,m=o(e).flatMap(f=>l(f)).filter(f=>!!f).map(Us(i)).map(f=>this.executeQuerySpec(f,i));return this.combineResults(m,i.combineWith)}executeQuerySpec(e,t){const s=Object.assign(Object.assign({},this._options.searchOptions),t),n=(s.fields||this._options.fields).reduce((x,w)=>Object.assign(Object.assign({},x),{[w]:Pe(s.boost,w)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:l}=s,{fuzzy:c,prefix:h}=Object.assign(Object.assign({},ht.weights),i),m=this._index.get(e.term),f=this.termResults(e.term,e.term,1,e.termBoost,m,n,r,l);let b,y;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const x=e.fuzzy===!0?.2:e.fuzzy,w=x<1?Math.min(o,Math.round(e.term.length*x)):x;w&&(y=this._index.fuzzyGet(e.term,w))}if(b)for(const[x,w]of b){const R=x.length-e.term.length;if(!R)continue;y==null||y.delete(x);const A=h*x.length/(x.length+.3*R);this.termResults(e.term,x,A,e.termBoost,w,n,r,l,f)}if(y)for(const x of y.keys()){const[w,R]=y.get(x);if(!R)continue;const A=c*x.length/(x.length+R);this.termResults(e.term,x,A,e.termBoost,w,n,r,l,f)}return f}executeWildcardQuery(e){const t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[n,r]of this._documentIds){const i=s.boostDocument?s.boostDocument(r,"",this._storedFields.get(n)):1;t.set(n,{score:i,terms:[],match:{}})}return t}combineResults(e,t=Ge){if(e.length===0)return new Map;const s=t.toLowerCase(),n=Ws[s];if(!n)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(n)||new Map}toJSON(){const e=[];for(const[t,s]of this._index){const n={};for(const[r,i]of s)n[r]=Object.fromEntries(i);e.push([t,n])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,n,r,i,o,l,c=new Map){if(r==null)return c;for(const h of Object.keys(i)){const m=i[h],f=this._fieldIds[h],b=r.get(f);if(b==null)continue;let y=b.size;const x=this._avgFieldLength[f];for(const w of b.keys()){if(!this._documentIds.has(w)){this.removeTerm(f,w,t),y-=1;continue}const R=o?o(this._documentIds.get(w),t,this._storedFields.get(w)):1;if(!R)continue;const A=b.get(w),J=this._fieldLength.get(w)[f],Q=Js(A,y,this._documentCount,J,x,l),W=s*n*m*R*Q,V=c.get(w);if(V){V.score+=W,Gs(V.terms,e);const $=Pe(V.match,t);$?$.push(h):V.match[t]=[h]}else c.set(w,{score:W,terms:[e],match:{[t]:[h]}})}}return c}addTerm(e,t,s){const n=this._index.fetch(s,vt);let r=n.get(e);if(r==null)r=new Map,r.set(t,1),n.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}const n=this._index.fetch(s,vt),r=n.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,s):r.get(t)<=1?r.size<=1?n.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(const n of Object.keys(this._fieldIds))if(this._fieldIds[n]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${s}" was not present in field "${n}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Ws={[Ge]:(a,e)=>{for(const t of e.keys()){const s=a.get(t);if(s==null)a.set(t,e.get(t));else{const{score:n,terms:r,match:i}=e.get(t);s.score=s.score+n,s.match=Object.assign(s.match,i),ft(s.terms,r)}}return a},[kt]:(a,e)=>{const t=new Map;for(const s of e.keys()){const n=a.get(s);if(n==null)continue;const{score:r,terms:i,match:o}=e.get(s);ft(n.terms,i),t.set(s,{score:n.score+r,terms:n.terms,match:Object.assign(n.match,o)})}return t},[Bs]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},Ks={k:1.2,b:.7,d:.5},Js=(a,e,t,s,n,r)=>{const{k:i,b:o,d:l}=r;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(i+1)/(a+i*(1-o+o*s/n)))},Us=a=>(e,t,s)=>{const n=typeof a.fuzzy=="function"?a.fuzzy(e,t,s):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,s):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,s):1;return{term:e,fuzzy:n,prefix:r,termBoost:i}},je={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Hs),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ht={combineWith:Ge,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Ks},qs={combineWith:kt,prefix:(a,e,t)=>e===t.length-1},Je={batchSize:1e3,batchWait:10},Ue={minDirtFactor:.1,minDirtCount:20},Ve=Object.assign(Object.assign({},Je),Ue),Gs=(a,e)=>{a.includes(e)||a.push(e)},ft=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},pt=({score:a},{score:e})=>e-a,vt=()=>new Map,Te=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=a=>ke(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const s of Object.keys(a))e.set(parseInt(s,10),a[s]),++t%1e3===0&&(yield Nt(0));return e}),Nt=a=>new Promise(e=>setTimeout(e,a)),Hs=/[\n\r\p{Z}\p{P}]+/u;class Qs{constructor(e=10){Ae(this,"max");Ae(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Ys=["aria-owns"],Zs={class:"shell"},Xs=["title"],en={class:"search-actions before"},tn=["title"],sn=["aria-activedescendant","aria-controls","placeholder"],nn={class:"search-actions"},rn=["title"],an=["disabled","title"],on=["id","role","aria-labelledby"],ln=["id","aria-selected"],cn=["href","aria-label","onMouseenter","onFocusin","data-index"],un={class:"titles"},dn=["innerHTML"],hn={class:"title main"},fn=["innerHTML"],pn={key:0,class:"excerpt-wrapper"},vn={key:0,class:"excerpt",inert:""},mn=["innerHTML"],gn={key:0,class:"no-results"},bn={class:"search-keyboard-shortcuts"},yn=["aria-label"],wn=["aria-label"],xn=["aria-label"],_n=["aria-label"],Sn=Lt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var S,C;const t=e,s=xe(),n=xe(),r=xe(is),i=ss(),{activate:o}=Ds(s,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=i,h=st(async()=>{var v,p,E,F,z,P,j,I,K;return at(ue.loadJSON((E=await((p=(v=r.value)[l.value])==null?void 0:p.call(v)))==null?void 0:E.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((F=c.value.search)==null?void 0:F.provider)==="local"&&((P=(z=c.value.search.options)==null?void 0:z.miniSearch)==null?void 0:P.searchOptions)},...((j=c.value.search)==null?void 0:j.provider)==="local"&&((K=(I=c.value.search.options)==null?void 0:I.miniSearch)==null?void 0:K.options)}))}),f=me(()=>{var v,p;return((v=c.value.search)==null?void 0:v.provider)==="local"&&((p=c.value.search.options)==null?void 0:p.disableQueryPersistence)===!0}).value?ie(""):Dt("vitepress:local-search-filter",""),b=zt("vitepress:local-search-detailed-list",((S=c.value.search)==null?void 0:S.provider)==="local"&&((C=c.value.search.options)==null?void 0:C.detailedView)===!0),y=me(()=>{var v,p,E;return((v=c.value.search)==null?void 0:v.provider)==="local"&&(((p=c.value.search.options)==null?void 0:p.disableDetailedView)===!0||((E=c.value.search.options)==null?void 0:E.detailedView)===!1)}),x=me(()=>{var p,E,F,z,P,j,I;const v=((p=c.value.search)==null?void 0:p.options)??c.value.algolia;return((P=(z=(F=(E=v==null?void 0:v.locales)==null?void 0:E[l.value])==null?void 0:F.translations)==null?void 0:z.button)==null?void 0:P.buttonText)||((I=(j=v==null?void 0:v.translations)==null?void 0:j.button)==null?void 0:I.buttonText)||"Search"});Pt(()=>{y.value&&(b.value=!1)});const w=xe([]),R=ie(!1);$e(f,()=>{R.value=!1});const A=st(async()=>{if(n.value)return at(new Ps(n.value))},null),J=new Qs(16);jt(()=>[h.value,f.value,b.value],async([v,p,E],F,z)=>{var ee,ye,He,Qe;(F==null?void 0:F[0])!==v&&J.clear();let P=!1;if(z(()=>{P=!0}),!v)return;w.value=v.search(p).slice(0,16),R.value=!0;const j=E?await Promise.all(w.value.map(B=>Q(B.id))):[];if(P)return;for(const{id:B,mod:te}of j){const se=B.slice(0,B.indexOf("#"));let Y=J.get(se);if(Y)continue;Y=new Map,J.set(se,Y);const G=te.default??te;if(G!=null&&G.render||G!=null&&G.setup){const ne=Yt(G);ne.config.warnHandler=()=>{},ne.provide(Zt,i),Object.defineProperties(ne.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}});const Ye=document.createElement("div");ne.mount(Ye),Ye.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(de=>{var et;const we=(et=de.querySelector("a"))==null?void 0:et.getAttribute("href"),Ze=(we==null?void 0:we.startsWith("#"))&&we.slice(1);if(!Ze)return;let Xe="";for(;(de=de.nextElementSibling)&&!/^h[1-6]$/i.test(de.tagName);)Xe+=de.outerHTML;Y.set(Ze,Xe)}),ne.unmount()}if(P)return}const I=new Set;if(w.value=w.value.map(B=>{const[te,se]=B.id.split("#"),Y=J.get(te),G=(Y==null?void 0:Y.get(se))??"";for(const ne in B.match)I.add(ne);return{...B,text:G}}),await he(),P)return;await new Promise(B=>{var te;(te=A.value)==null||te.unmark({done:()=>{var se;(se=A.value)==null||se.markRegExp(k(I),{done:B})}})});const K=((ee=s.value)==null?void 0:ee.querySelectorAll(".result .excerpt"))??[];for(const B of K)(ye=B.querySelector('mark[data-markjs="true"]'))==null||ye.scrollIntoView({block:"center"});(Qe=(He=n.value)==null?void 0:He.firstElementChild)==null||Qe.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function Q(v){const p=Xt(v.slice(0,v.indexOf("#")));try{if(!p)throw new Error(`Cannot find file for id: ${v}`);return{id:v,mod:await import(p)}}catch(E){return console.error(E),{id:v,mod:{}}}}const W=ie(),V=me(()=>{var v;return((v=f.value)==null?void 0:v.length)<=0});function $(v=!0){var p,E;(p=W.value)==null||p.focus(),v&&((E=W.value)==null||E.select())}Me(()=>{$()});function be(v){v.pointerType==="mouse"&&$()}const M=ie(-1),U=ie(!0);$e(w,v=>{M.value=v.length?0:-1,q()});function q(){he(()=>{const v=document.querySelector(".result.selected");v==null||v.scrollIntoView({block:"nearest"})})}_e("ArrowUp",v=>{v.preventDefault(),M.value--,M.value<0&&(M.value=w.value.length-1),U.value=!0,q()}),_e("ArrowDown",v=>{v.preventDefault(),M.value++,M.value>=w.value.length&&(M.value=0),U.value=!0,q()});const N=Vt();_e("Enter",v=>{if(v.isComposing||v.target instanceof HTMLButtonElement&&v.target.type!=="submit")return;const p=w.value[M.value];if(v.target instanceof HTMLInputElement&&!p){v.preventDefault();return}p&&(N.go(p.id),t("close"))}),_e("Escape",()=>{t("close")});const d=ns({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Me(()=>{window.history.pushState(null,"",null)}),$t("popstate",v=>{v.preventDefault(),t("close")});const g=Bt(Wt?document.body:null);Me(()=>{he(()=>{g.value=!0,he().then(()=>o())})}),Kt(()=>{g.value=!1});function T(){f.value="",he().then(()=>$(!1))}function k(v){return new RegExp([...v].sort((p,E)=>E.length-p.length).map(p=>`(${es(p)})`).join("|"),"gi")}function O(v){var F;if(!U.value)return;const p=(F=v.target)==null?void 0:F.closest(".result"),E=Number.parseInt(p==null?void 0:p.dataset.index);E>=0&&E!==M.value&&(M.value=E),U.value=!1}return(v,p)=>{var E,F,z,P,j;return H(),Jt(Qt,{to:"body"},[_("div",{ref_key:"el",ref:s,role:"button","aria-owns":(E=w.value)!=null&&E.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[_("div",{class:"backdrop",onClick:p[0]||(p[0]=I=>v.$emit("close"))}),_("div",Zs,[_("form",{class:"search-bar",onPointerup:p[4]||(p[4]=I=>be(I)),onSubmit:p[5]||(p[5]=Ut(()=>{},["prevent"]))},[_("label",{title:x.value,id:"localsearch-label",for:"localsearch-input"},p[7]||(p[7]=[_("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)]),8,Xs),_("div",en,[_("button",{class:"back-button",title:L(d)("modal.backButtonTitle"),onClick:p[1]||(p[1]=I=>v.$emit("close"))},p[8]||(p[8]=[_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)]),8,tn)]),qt(_("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":p[2]||(p[2]=I=>Ht(f)?f.value=I:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(F=w.value)!=null&&F.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:x.value,spellcheck:"false",type:"search"},null,8,sn),[[Gt,L(f)]]),_("div",nn,[y.value?Se("",!0):(H(),Z("button",{key:0,class:nt(["toggle-layout-button",{"detailed-list":L(b)}]),type:"button",title:L(d)("modal.displayDetails"),onClick:p[3]||(p[3]=I=>M.value>-1&&(b.value=!L(b)))},p[9]||(p[9]=[_("span",{class:"vpi-layout-list local-search-icon"},null,-1)]),10,rn)),_("button",{class:"clear-button",type:"reset",disabled:V.value,title:L(d)("modal.resetButtonTitle"),onClick:T},p[10]||(p[10]=[_("span",{class:"vpi-delete local-search-icon"},null,-1)]),8,an)])],32),_("ul",{ref_key:"resultsEl",ref:n,id:(z=w.value)!=null&&z.length?"localsearch-list":void 0,role:(P=w.value)!=null&&P.length?"listbox":void 0,"aria-labelledby":(j=w.value)!=null&&j.length?"localsearch-label":void 0,class:"results",onMousemove:O},[(H(!0),Z(rt,null,it(w.value,(I,K)=>(H(),Z("li",{key:I.id,id:"localsearch-item-"+K,"aria-selected":M.value===K?"true":"false",role:"option"},[_("a",{href:I.id,class:nt(["result",{selected:M.value===K}]),"aria-label":[...I.titles,I.title].join(" > "),onMouseenter:ee=>!U.value&&(M.value=K),onFocusin:ee=>M.value=K,onClick:p[6]||(p[6]=ee=>v.$emit("close")),"data-index":K},[_("div",null,[_("div",un,[p[12]||(p[12]=_("span",{class:"title-icon"},"#",-1)),(H(!0),Z(rt,null,it(I.titles,(ee,ye)=>(H(),Z("span",{key:ye,class:"title"},[_("span",{class:"text",innerHTML:ee},null,8,dn),p[11]||(p[11]=_("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),_("span",hn,[_("span",{class:"text",innerHTML:I.title},null,8,fn)])]),L(b)?(H(),Z("div",pn,[I.text?(H(),Z("div",vn,[_("div",{class:"vp-doc",innerHTML:I.text},null,8,mn)])):Se("",!0),p[13]||(p[13]=_("div",{class:"excerpt-gradient-bottom"},null,-1)),p[14]||(p[14]=_("div",{class:"excerpt-gradient-top"},null,-1))])):Se("",!0)])],42,cn)],8,ln))),128)),L(f)&&!w.value.length&&R.value?(H(),Z("li",gn,[fe(pe(L(d)("modal.noResultsText"))+' "',1),_("strong",null,pe(L(f)),1),p[15]||(p[15]=fe('" '))])):Se("",!0)],40,on),_("div",bn,[_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.navigateUpKeyAriaLabel")},p[16]||(p[16]=[_("span",{class:"vpi-arrow-up navigate-icon"},null,-1)]),8,yn),_("kbd",{"aria-label":L(d)("modal.footer.navigateDownKeyAriaLabel")},p[17]||(p[17]=[_("span",{class:"vpi-arrow-down navigate-icon"},null,-1)]),8,wn),fe(" "+pe(L(d)("modal.footer.navigateText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.selectKeyAriaLabel")},p[18]||(p[18]=[_("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)]),8,xn),fe(" "+pe(L(d)("modal.footer.selectText")),1)]),_("span",null,[_("kbd",{"aria-label":L(d)("modal.footer.closeKeyAriaLabel")},"esc",8,_n),fe(" "+pe(L(d)("modal.footer.closeText")),1)])])])],8,Ys)])}}}),Fn=ts(Sn,[["__scopeId","data-v-42e65fb9"]]);export{Fn as default}; diff --git a/previews/PR872/assets/chunks/framework.ByNLHi2E.js b/previews/PR872/assets/chunks/framework.ByNLHi2E.js new file mode 100644 index 000000000..52bc4eb71 --- /dev/null +++ b/previews/PR872/assets/chunks/framework.ByNLHi2E.js @@ -0,0 +1,18 @@ +/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ns(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Z={},Et=[],ke=()=>{},Ko=()=>!1,en=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fs=e=>e.startsWith("onUpdate:"),ae=Object.assign,Ds=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qo=Object.prototype.hasOwnProperty,z=(e,t)=>qo.call(e,t),W=Array.isArray,Tt=e=>In(e)==="[object Map]",ii=e=>In(e)==="[object Set]",q=e=>typeof e=="function",re=e=>typeof e=="string",Xe=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",oi=e=>(ne(e)||q(e))&&q(e.then)&&q(e.catch),li=Object.prototype.toString,In=e=>li.call(e),Go=e=>In(e).slice(8,-1),ci=e=>In(e)==="[object Object]",Hs=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ct=Ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Yo=/-(\w)/g,Le=Nn(e=>e.replace(Yo,(t,n)=>n?n.toUpperCase():"")),Xo=/\B([A-Z])/g,st=Nn(e=>e.replace(Xo,"-$1").toLowerCase()),Fn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),_n=Nn(e=>e?`on${Fn(e)}`:""),tt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Jo=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let ar;const Dn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $s(e){if(W(e)){const t={};for(let n=0;n{if(n){const s=n.split(Qo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function js(e){let t="";if(re(e))t=e;else if(W(e))for(let n=0;n!!(e&&e.__v_isRef===!0),sl=e=>re(e)?e:e==null?"":W(e)||ne(e)&&(e.toString===li||!q(e.toString))?ui(e)?sl(e.value):JSON.stringify(e,di,2):String(e),di=(e,t)=>ui(t)?di(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[zn(s,i)+" =>"]=r,n),{})}:ii(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zn(n))}:Xe(t)?zn(t):ne(t)&&!W(t)&&!ci(t)?String(t):t,zn=(e,t="")=>{var n;return Xe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let we;class rl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(jt){let t=jt;for(jt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$t;){let t=$t;for($t=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function yi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),ks(s),ol(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function _s(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt))return;e.globalVersion=Kt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!_s(e)){e.flags&=-3;return}const n=te,s=Ne;te=e,Ne=!0;try{yi(e);const r=e.fn(e._value);(t.version===0||tt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Ne=s,vi(e),e.flags&=-3}}function ks(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)ks(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ol(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const bi=[];function rt(){bi.push(Ne),Ne=!1}function it(){const e=bi.pop();Ne=e===void 0?!0:e}function fr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Kt=0;class ll{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Ne||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new ll(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,wi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){Vs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Us()}}}function wi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)wi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Cn=new WeakMap,dt=Symbol(""),bs=Symbol(""),qt=Symbol("");function me(e,t,n){if(Ne&&te){let s=Cn.get(e);s||Cn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Hn),r.map=s,r.key=n),r.track()}}function Ge(e,t,n,s,r,i){const o=Cn.get(e);if(!o){Kt++;return}const l=c=>{c&&c.trigger()};if(Vs(),t==="clear")o.forEach(l);else{const c=W(e),f=c&&Hs(n);if(c&&n==="length"){const a=Number(s);o.forEach((h,y)=>{(y==="length"||y===qt||!Xe(y)&&y>=a)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(qt)),t){case"add":c?f&&l(o.get("length")):(l(o.get(dt)),Tt(e)&&l(o.get(bs)));break;case"delete":c||(l(o.get(dt)),Tt(e)&&l(o.get(bs)));break;case"set":Tt(e)&&l(o.get(dt));break}}Us()}function cl(e,t){const n=Cn.get(e);return n&&n.get(t)}function _t(e){const t=J(e);return t===e?t:(me(t,"iterate",qt),Pe(e)?t:t.map(ye))}function $n(e){return me(e=J(e),"iterate",qt),e}const al={__proto__:null,[Symbol.iterator](){return Zn(this,Symbol.iterator,ye)},concat(...e){return _t(this).concat(...e.map(t=>W(t)?_t(t):t))},entries(){return Zn(this,"entries",e=>(e[1]=ye(e[1]),e))},every(e,t){return We(this,"every",e,t,void 0,arguments)},filter(e,t){return We(this,"filter",e,t,n=>n.map(ye),arguments)},find(e,t){return We(this,"find",e,t,ye,arguments)},findIndex(e,t){return We(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return We(this,"findLast",e,t,ye,arguments)},findLastIndex(e,t){return We(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return We(this,"forEach",e,t,void 0,arguments)},includes(...e){return es(this,"includes",e)},indexOf(...e){return es(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return es(this,"lastIndexOf",e)},map(e,t){return We(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return ur(this,"reduce",e,t)},reduceRight(e,...t){return ur(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return We(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return Zn(this,"values",ye)}};function Zn(e,t,n){const s=$n(e),r=s[t]();return s!==e&&!Pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const fl=Array.prototype;function We(e,t,n,s,r,i){const o=$n(e),l=o!==e&&!Pe(e),c=o[t];if(c!==fl[t]){const h=c.apply(e,i);return l?ye(h):h}let f=n;o!==e&&(l?f=function(h,y){return n.call(this,ye(h),y,e)}:n.length>2&&(f=function(h,y){return n.call(this,h,y,e)}));const a=c.call(o,f,s);return l&&r?r(a):a}function ur(e,t,n,s){const r=$n(e);let i=n;return r!==e&&(Pe(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ye(l),c,e)}),r[t](i,...s)}function es(e,t,n){const s=J(e);me(s,"iterate",qt);const r=s[t](...n);return(r===-1||r===!1)&&Ks(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Ft(e,t,n=[]){rt(),Vs();const s=J(e)[t].apply(e,n);return Us(),it(),s}const ul=Ns("__proto__,__v_isRef,__isVue"),Si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function dl(e){Xe(e)||(e=String(e));const t=J(this);return me(t,"has",e),t.hasOwnProperty(e)}class xi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Sl:Ai:i?Ci:Ti).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=W(t);if(!r){let c;if(o&&(c=al[n]))return c;if(n==="hasOwnProperty")return dl}const l=Reflect.get(t,n,fe(t)?t:s);return(Xe(n)?Si.has(n):ul(n))||(r||me(t,"get",n),i)?l:fe(l)?o&&Hs(n)?l:l.value:ne(l)?r?Vn(l):jn(l):l}}class Ei extends xi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=yt(i);if(!Pe(s)&&!yt(s)&&(i=J(i),s=J(s)),!W(t)&&fe(i)&&!fe(s))return c?!1:(i.value=s,!0)}const o=W(t)&&Hs(n)?Number(n)e,cn=e=>Reflect.getPrototypeOf(e);function yl(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=Tt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?ws:t?Ss:ye;return!t&&me(i,"iterate",c?bs:dt),{next(){const{value:h,done:y}=f.next();return y?{value:h,done:y}:{value:l?[a(h[0]),a(h[1])]:a(h),done:y}},[Symbol.iterator](){return this}}}}function an(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vl(e,t){const n={get(r){const i=this.__v_raw,o=J(i),l=J(r);e||(tt(r,l)&&me(o,"get",r),me(o,"get",l));const{has:c}=cn(o),f=t?ws:e?Ss:ye;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&me(J(r),"iterate",dt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=J(i),l=J(r);return e||(tt(r,l)&&me(o,"has",r),me(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=J(l),f=t?ws:e?Ss:ye;return!e&&me(c,"iterate",dt),l.forEach((a,h)=>r.call(i,f(a),f(h),o))}};return ae(n,e?{add:an("add"),set:an("set"),delete:an("delete"),clear:an("clear")}:{add(r){!t&&!Pe(r)&&!yt(r)&&(r=J(r));const i=J(this);return cn(i).has.call(i,r)||(i.add(r),Ge(i,"add",r,r)),this},set(r,i){!t&&!Pe(i)&&!yt(i)&&(i=J(i));const o=J(this),{has:l,get:c}=cn(o);let f=l.call(o,r);f||(r=J(r),f=l.call(o,r));const a=c.call(o,r);return o.set(r,i),f?tt(i,a)&&Ge(o,"set",r,i):Ge(o,"add",r,i),this},delete(r){const i=J(this),{has:o,get:l}=cn(i);let c=o.call(i,r);c||(r=J(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&Ge(i,"delete",r,void 0),f},clear(){const r=J(this),i=r.size!==0,o=r.clear();return i&&Ge(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=yl(r,e,t)}),n}function Bs(e,t){const n=vl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const _l={get:Bs(!1,!1)},bl={get:Bs(!1,!0)},wl={get:Bs(!0,!1)};const Ti=new WeakMap,Ci=new WeakMap,Ai=new WeakMap,Sl=new WeakMap;function xl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function El(e){return e.__v_skip||!Object.isExtensible(e)?0:xl(Go(e))}function jn(e){return yt(e)?e:Ws(e,!1,pl,_l,Ti)}function Tl(e){return Ws(e,!1,ml,bl,Ci)}function Vn(e){return Ws(e,!0,gl,wl,Ai)}function Ws(e,t,n,s,r){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=El(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function ht(e){return yt(e)?ht(e.__v_raw):!!(e&&e.__v_isReactive)}function yt(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function Ks(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function wn(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&ai(e,"__v_skip",!0),e}const ye=e=>ne(e)?jn(e):e,Ss=e=>ne(e)?Vn(e):e;function fe(e){return e?e.__v_isRef===!0:!1}function oe(e){return Ri(e,!1)}function qs(e){return Ri(e,!0)}function Ri(e,t){return fe(e)?e:new Cl(e,t)}class Cl{constructor(t,n){this.dep=new Hn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:ye(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||yt(t);t=s?t:J(t),tt(t,n)&&(this._rawValue=t,this._value=s?t:ye(t),this.dep.trigger())}}function Oi(e){return fe(e)?e.value:e}const Al={get:(e,t,n)=>t==="__v_raw"?e:Oi(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return fe(r)&&!fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Mi(e){return ht(e)?e:new Proxy(e,Al)}class Rl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Hn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ol(e){return new Rl(e)}class Ml{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return cl(J(this._object),this._key)}}class Pl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ll(e,t,n){return fe(e)?e:q(e)?new Pl(e):ne(e)&&arguments.length>1?Il(e,t,n):oe(e)}function Il(e,t,n){const s=e[t];return fe(s)?s:new Ml(e,t,n)}class Nl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Hn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return mi(this,!0),!0}get value(){const t=this.dep.track();return _i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fl(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new Nl(s,r,n)}const fn={},An=new WeakMap;let ft;function Dl(e,t=!1,n=ft){if(n){let s=An.get(n);s||An.set(n,s=[]),s.push(e)}}function Hl(e,t,n=Z){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=g=>r?g:Pe(g)||r===!1||r===0?Ye(g,1):Ye(g);let a,h,y,v,S=!1,_=!1;if(fe(e)?(h=()=>e.value,S=Pe(e)):ht(e)?(h=()=>f(e),S=!0):W(e)?(_=!0,S=e.some(g=>ht(g)||Pe(g)),h=()=>e.map(g=>{if(fe(g))return g.value;if(ht(g))return f(g);if(q(g))return c?c(g,2):g()})):q(e)?t?h=c?()=>c(e,2):e:h=()=>{if(y){rt();try{y()}finally{it()}}const g=ft;ft=a;try{return c?c(e,3,[v]):e(v)}finally{ft=g}}:h=ke,t&&r){const g=h,O=r===!0?1/0:r;h=()=>Ye(g(),O)}const K=hi(),N=()=>{a.stop(),K&&K.active&&Ds(K.effects,a)};if(i&&t){const g=t;t=(...O)=>{g(...O),N()}}let j=_?new Array(e.length).fill(fn):fn;const p=g=>{if(!(!(a.flags&1)||!a.dirty&&!g))if(t){const O=a.run();if(r||S||(_?O.some((F,H)=>tt(F,j[H])):tt(O,j))){y&&y();const F=ft;ft=a;try{const H=[O,j===fn?void 0:_&&j[0]===fn?[]:j,v];c?c(t,3,H):t(...H),j=O}finally{ft=F}}}else a.run()};return l&&l(p),a=new pi(h),a.scheduler=o?()=>o(p,!1):p,v=g=>Dl(g,!1,a),y=a.onStop=()=>{const g=An.get(a);if(g){if(c)c(g,4);else for(const O of g)O();An.delete(a)}},t?s?p(!0):j=a.run():o?o(p.bind(null,!0),!0):a.run(),N.pause=a.pause.bind(a),N.resume=a.resume.bind(a),N.stop=N,N}function Ye(e,t=1/0,n){if(t<=0||!ne(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,fe(e))Ye(e.value,t,n);else if(W(e))for(let s=0;s{Ye(s,t,n)});else if(ci(e)){for(const s in e)Ye(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ye(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function tn(e,t,n,s){try{return s?e(...s):e()}catch(r){nn(r,t,n)}}function De(e,t,n,s){if(q(e)){const r=tn(e,t,n,s);return r&&oi(r)&&r.catch(i=>{nn(i,t,n)}),r}if(W(e)){const r=[];for(let i=0;i>>1,r=Se[s],i=Gt(r);i=Gt(n)?Se.push(e):Se.splice(jl(t),0,e),e.flags|=1,Li()}}function Li(){Rn||(Rn=Pi.then(Ii))}function Vl(e){W(e)?At.push(...e):Qe&&e.id===-1?Qe.splice(wt+1,0,e):e.flags&1||(At.push(e),e.flags|=1),Li()}function dr(e,t,n=Ve+1){for(;nGt(n)-Gt(s));if(At.length=0,Qe){Qe.push(...t);return}for(Qe=t,wt=0;wte.id==null?e.flags&2?-1:1/0:e.id;function Ii(e){try{for(Ve=0;Ve{s._d&&Ar(-1);const i=Mn(t);let o;try{o=e(...r)}finally{Mn(i),s._d&&Ar(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function _f(e,t){if(de===null)return e;const n=Gn(de),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Vt=e=>e&&(e.disabled||e.disabled===""),hr=e=>e&&(e.defer||e.defer===""),pr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xs=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},Hi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:h,pbc:y,o:{insert:v,querySelector:S,createText:_,createComment:K}}=f,N=Vt(t.props);let{shapeFlag:j,children:p,dynamicChildren:g}=t;if(e==null){const O=t.el=_(""),F=t.anchor=_("");v(O,n,s),v(F,n,s);const H=(R,b)=>{j&16&&(r&&r.isCE&&(r.ce._teleportTarget=R),a(p,R,b,r,i,o,l,c))},V=()=>{const R=t.target=xs(t.props,S),b=$i(R,t,_,v);R&&(o!=="svg"&&pr(R)?o="svg":o!=="mathml"&&gr(R)&&(o="mathml"),N||(H(R,b),Sn(t,!1)))};N&&(H(n,F),Sn(t,!0)),hr(t.props)?be(()=>{V(),t.el.__isMounted=!0},i):V()}else{if(hr(t.props)&&!e.el.__isMounted){be(()=>{Hi.process(e,t,n,s,r,i,o,l,c,f),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,F=t.target=e.target,H=t.targetAnchor=e.targetAnchor,V=Vt(e.props),R=V?n:F,b=V?O:H;if(o==="svg"||pr(F)?o="svg":(o==="mathml"||gr(F))&&(o="mathml"),g?(y(e.dynamicChildren,g,R,r,i,o,l),Qs(e,t,!0)):c||h(e,t,R,b,r,i,o,l,!1),N)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):un(t,n,O,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=xs(t.props,S);I&&un(t,I,null,f,0)}else V&&un(t,F,H,f,1);Sn(t,N)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:f,targetAnchor:a,target:h,props:y}=e;if(h&&(r(f),r(a)),i&&r(c),o&16){const v=i||!Vt(y);for(let S=0;S{e.isMounted=!0}),Ki(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],ji={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},Vi=e=>{const t=e.subTree;return t.component?Vi(t.component):t},Wl={name:"BaseTransition",props:ji,setup(e,{slots:t}){const n=qn(),s=Bl();return()=>{const r=t.default&&Bi(t.default(),!0);if(!r||!r.length)return;const i=Ui(r),o=J(e),{mode:l}=o;if(s.isLeaving)return ts(i);const c=mr(i);if(!c)return ts(i);let f=Es(c,o,s,n,h=>f=h);c.type!==ve&&Yt(c,f);let a=n.subTree&&mr(n.subTree);if(a&&a.type!==ve&&!ut(c,a)&&Vi(n).type!==ve){let h=Es(a,o,s,n);if(Yt(a,h),l==="out-in"&&c.type!==ve)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,a=void 0},ts(i);l==="in-out"&&c.type!==ve?h.delayLeave=(y,v,S)=>{const _=ki(s,a);_[String(a.key)]=a,y[Ze]=()=>{v(),y[Ze]=void 0,delete f.delayedLeave,a=void 0},f.delayedLeave=()=>{S(),delete f.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return i}}};function Ui(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ve){t=n;break}}return t}const Kl=Wl;function ki(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Es(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:a,onEnterCancelled:h,onBeforeLeave:y,onLeave:v,onAfterLeave:S,onLeaveCancelled:_,onBeforeAppear:K,onAppear:N,onAfterAppear:j,onAppearCancelled:p}=t,g=String(e.key),O=ki(n,e),F=(R,b)=>{R&&De(R,s,9,b)},H=(R,b)=>{const I=b[1];F(R,b),W(R)?R.every(x=>x.length<=1)&&I():R.length<=1&&I()},V={mode:o,persisted:l,beforeEnter(R){let b=c;if(!n.isMounted)if(i)b=K||c;else return;R[Ze]&&R[Ze](!0);const I=O[g];I&&ut(e,I)&&I.el[Ze]&&I.el[Ze](),F(b,[R])},enter(R){let b=f,I=a,x=h;if(!n.isMounted)if(i)b=N||f,I=j||a,x=p||h;else return;let B=!1;const se=R[dn]=le=>{B||(B=!0,le?F(x,[R]):F(I,[R]),V.delayedLeave&&V.delayedLeave(),R[dn]=void 0)};b?H(b,[R,se]):se()},leave(R,b){const I=String(e.key);if(R[dn]&&R[dn](!0),n.isUnmounting)return b();F(y,[R]);let x=!1;const B=R[Ze]=se=>{x||(x=!0,b(),se?F(_,[R]):F(S,[R]),R[Ze]=void 0,O[I]===e&&delete O[I])};O[I]=e,v?H(v,[R,B]):B()},clone(R){const b=Es(R,t,n,s,r);return r&&r(b),b}};return V}function ts(e){if(sn(e))return e=nt(e),e.children=null,e}function mr(e){if(!sn(e))return Di(e.type)&&e.children?Ui(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function Yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bi(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;iXt(S,t&&(W(t)?t[_]:t),n,s,r));return}if(pt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Xt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Gn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===Z?l.refs={}:l.refs,h=l.setupState,y=J(h),v=h===Z?()=>!1:S=>z(y,S);if(f!=null&&f!==c&&(re(f)?(a[f]=null,v(f)&&(h[f]=null)):fe(f)&&(f.value=null)),q(c))tn(c,l,12,[o,a]);else{const S=re(c),_=fe(c);if(S||_){const K=()=>{if(e.f){const N=S?v(c)?h[c]:a[c]:c.value;r?W(N)&&Ds(N,i):W(N)?N.includes(i)||N.push(i):S?(a[c]=[i],v(c)&&(h[c]=a[c])):(c.value=[i],e.k&&(a[e.k]=c.value))}else S?(a[c]=o,v(c)&&(h[c]=o)):_&&(c.value=o,e.k&&(a[e.k]=o))};o?(K.id=-1,be(K,n)):K()}}}let yr=!1;const bt=()=>{yr||(console.error("Hydration completed but contains mismatches."),yr=!0)},ql=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Gl=e=>e.namespaceURI.includes("MathML"),hn=e=>{if(e.nodeType===1){if(ql(e))return"svg";if(Gl(e))return"mathml"}},xt=e=>e.nodeType===8;function Yl(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(p,g)=>{if(!g.hasChildNodes()){n(null,p,g),On(),g._vnode=p;return}h(g.firstChild,p,null,null,null),On(),g._vnode=p},h=(p,g,O,F,H,V=!1)=>{V=V||!!g.dynamicChildren;const R=xt(p)&&p.data==="[",b=()=>_(p,g,O,F,H,R),{type:I,ref:x,shapeFlag:B,patchFlag:se}=g;let le=p.nodeType;g.el=p,se===-2&&(V=!1,g.dynamicChildren=null);let U=null;switch(I){case gt:le!==3?g.children===""?(c(g.el=r(""),o(p),p),U=p):U=b():(p.data!==g.children&&(bt(),p.data=g.children),U=i(p));break;case ve:j(p)?(U=i(p),N(g.el=p.content.firstChild,p,O)):le!==8||R?U=b():U=i(p);break;case kt:if(R&&(p=i(p),le=p.nodeType),le===1||le===3){U=p;const Y=!g.children.length;for(let $=0;${V=V||!!g.dynamicChildren;const{type:R,props:b,patchFlag:I,shapeFlag:x,dirs:B,transition:se}=g,le=R==="input"||R==="option";if(le||I!==-1){B&&Ue(g,null,O,"created");let U=!1;if(j(p)){U=co(null,se)&&O&&O.vnode.props&&O.vnode.props.appear;const $=p.content.firstChild;U&&se.beforeEnter($),N($,p,O),g.el=p=$}if(x&16&&!(b&&(b.innerHTML||b.textContent))){let $=v(p.firstChild,g,p,O,F,H,V);for(;$;){pn(p,1)||bt();const he=$;$=$.nextSibling,l(he)}}else if(x&8){let $=g.children;$[0]===` +`&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&($=$.slice(1)),p.textContent!==$&&(pn(p,0)||bt(),p.textContent=g.children)}if(b){if(le||!V||I&48){const $=p.tagName.includes("-");for(const he in b)(le&&(he.endsWith("value")||he==="indeterminate")||en(he)&&!Ct(he)||he[0]==="."||$)&&s(p,he,null,b[he],void 0,O)}else if(b.onClick)s(p,"onClick",null,b.onClick,void 0,O);else if(I&4&&ht(b.style))for(const $ in b.style)b.style[$]}let Y;(Y=b&&b.onVnodeBeforeMount)&&Oe(Y,O,g),B&&Ue(g,null,O,"beforeMount"),((Y=b&&b.onVnodeMounted)||B||U)&&go(()=>{Y&&Oe(Y,O,g),U&&se.enter(p),B&&Ue(g,null,O,"mounted")},F)}return p.nextSibling},v=(p,g,O,F,H,V,R)=>{R=R||!!g.dynamicChildren;const b=g.children,I=b.length;for(let x=0;x{const{slotScopeIds:R}=g;R&&(H=H?H.concat(R):R);const b=o(p),I=v(i(p),g,b,O,F,H,V);return I&&xt(I)&&I.data==="]"?i(g.anchor=I):(bt(),c(g.anchor=f("]"),b,I),I)},_=(p,g,O,F,H,V)=>{if(pn(p.parentElement,1)||bt(),g.el=null,V){const I=K(p);for(;;){const x=i(p);if(x&&x!==I)l(x);else break}}const R=i(p),b=o(p);return l(p),n(null,g,b,R,O,F,hn(b),H),O&&(O.vnode.el=g.el,ho(O,g.el)),R},K=(p,g="[",O="]")=>{let F=0;for(;p;)if(p=i(p),p&&xt(p)&&(p.data===g&&F++,p.data===O)){if(F===0)return i(p);F--}return p},N=(p,g,O)=>{const F=g.parentNode;F&&F.replaceChild(p,g);let H=O;for(;H;)H.vnode.el===g&&(H.vnode.el=H.subTree.el=p),H=H.parent},j=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,h]}const vr="data-allow-mismatch",Xl={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function pn(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(vr);)e=e.parentElement;const n=e&&e.getAttribute(vr);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:n.split(",").includes(Xl[t])}}Dn().requestIdleCallback;Dn().cancelIdleCallback;function Jl(e,t){if(xt(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(xt(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const pt=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function wf(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:c}=e;let f=null,a,h=0;const y=()=>(h++,f=null,v()),v=()=>{let S;return f||(S=f=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((K,N)=>{c(_,()=>K(y()),()=>N(_),h+1)});throw _}).then(_=>S!==f&&f?f:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),a=_,_)))};return Ys({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(S,_,K){const N=i?()=>{const j=i(K,p=>Jl(S,p));j&&(_.bum||(_.bum=[])).push(j)}:K;a?N():v().then(()=>!_.isUnmounted&&N())},get __asyncResolved(){return a},setup(){const S=ue;if(Xs(S),a)return()=>ns(a,S);const _=p=>{f=null,nn(p,S,13,!s)};if(l&&S.suspense||Mt)return v().then(p=>()=>ns(p,S)).catch(p=>(_(p),()=>s?ce(s,{error:p}):null));const K=oe(!1),N=oe(),j=oe(!!r);return r&&setTimeout(()=>{j.value=!1},r),o!=null&&setTimeout(()=>{if(!K.value&&!N.value){const p=new Error(`Async component timed out after ${o}ms.`);_(p),N.value=p}},o),v().then(()=>{K.value=!0,S.parent&&sn(S.parent.vnode)&&S.parent.update()}).catch(p=>{_(p),N.value=p}),()=>{if(K.value&&a)return ns(a,S);if(N.value&&s)return ce(s,{error:N.value});if(n&&!j.value)return ce(n)}}})}function ns(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=ce(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const sn=e=>e.type.__isKeepAlive;function zl(e,t){Wi(e,"a",t)}function Ql(e,t){Wi(e,"da",t)}function Wi(e,t,n=ue){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(kn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)sn(r.parent.vnode)&&Zl(s,t,n,r),r=r.parent}}function Zl(e,t,n,s){const r=kn(t,e,s,!0);Bn(()=>{Ds(s[t],r)},n)}function kn(e,t,n=ue,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{rt();const l=rn(n),c=De(t,n,e,o);return l(),it(),c});return s?r.unshift(i):r.push(i),i}}const Je=e=>(t,n=ue)=>{(!Mt||e==="sp")&&kn(e,(...s)=>t(...s),n)},ec=Je("bm"),Lt=Je("m"),tc=Je("bu"),nc=Je("u"),Ki=Je("bum"),Bn=Je("um"),sc=Je("sp"),rc=Je("rtg"),ic=Je("rtc");function oc(e,t=ue){kn("ec",e,t)}const qi="components";function Sf(e,t){return Yi(qi,e,!0,t)||e}const Gi=Symbol.for("v-ndc");function xf(e){return re(e)?Yi(qi,e,!1)||e:e||Gi}function Yi(e,t,n=!0,s=!1){const r=de||ue;if(r){const i=r.type;{const l=Wc(i,!1);if(l&&(l===t||l===Le(t)||l===Fn(Le(t))))return i}const o=_r(r[e]||i[e],t)||_r(r.appContext[e],t);return!o&&s?i:o}}function _r(e,t){return e&&(e[t]||e[Le(t)]||e[Fn(Le(t))])}function Ef(e,t,n,s){let r;const i=n,o=W(e);if(o||re(e)){const l=o&&ht(e);let c=!1;l&&(c=!Pe(e),e=$n(e)),r=new Array(e.length);for(let f=0,a=e.length;ft(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;czt(t)?!(t.type===ve||t.type===xe&&!Xi(t.children)):!0)?e:null}function Cf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:_n(s)]=e[s];return n}const Ts=e=>e?bo(e)?Gn(e):Ts(e.parent):null,Ut=ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ts(e.parent),$root:e=>Ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Js(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>Rc.bind(e)}),ss=(e,t)=>e!==Z&&!e.__isScriptSetup&&z(e,t),lc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ss(s,t))return o[t]=1,s[t];if(r!==Z&&z(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&z(f,t))return o[t]=3,i[t];if(n!==Z&&z(n,t))return o[t]=4,n[t];Cs&&(o[t]=0)}}const a=Ut[t];let h,y;if(a)return t==="$attrs"&&me(e.attrs,"get",""),a(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==Z&&z(n,t))return o[t]=4,n[t];if(y=c.config.globalProperties,z(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return ss(r,t)?(r[t]=n,!0):s!==Z&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==Z&&z(e,o)||ss(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(Ut,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Af(){return cc().slots}function cc(){const e=qn();return e.setupContext||(e.setupContext=So(e))}function br(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function ac(e){const t=Js(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:h,mounted:y,beforeUpdate:v,updated:S,activated:_,deactivated:K,beforeDestroy:N,beforeUnmount:j,destroyed:p,unmounted:g,render:O,renderTracked:F,renderTriggered:H,errorCaptured:V,serverPrefetch:R,expose:b,inheritAttrs:I,components:x,directives:B,filters:se}=t;if(f&&fc(f,s,null),o)for(const Y in o){const $=o[Y];q($)&&(s[Y]=$.bind(n))}if(r){const Y=r.call(n,n);ne(Y)&&(e.data=jn(Y))}if(Cs=!0,i)for(const Y in i){const $=i[Y],he=q($)?$.bind(n,n):q($.get)?$.get.bind(n,n):ke,on=!q($)&&q($.set)?$.set.bind(n):ke,ot=ie({get:he,set:on});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>ot.value,set:$e=>ot.value=$e})}if(l)for(const Y in l)Ji(l[Y],s,n,Y);if(c){const Y=q(c)?c.call(n):c;Reflect.ownKeys(Y).forEach($=>{mc($,Y[$])})}a&&wr(a,e,"c");function U(Y,$){W($)?$.forEach(he=>Y(he.bind(n))):$&&Y($.bind(n))}if(U(ec,h),U(Lt,y),U(tc,v),U(nc,S),U(zl,_),U(Ql,K),U(oc,V),U(ic,F),U(rc,H),U(Ki,j),U(Bn,g),U(sc,R),W(b))if(b.length){const Y=e.exposed||(e.exposed={});b.forEach($=>{Object.defineProperty(Y,$,{get:()=>n[$],set:he=>n[$]=he})})}else e.exposed||(e.exposed={});O&&e.render===ke&&(e.render=O),I!=null&&(e.inheritAttrs=I),x&&(e.components=x),B&&(e.directives=B),R&&Xs(e)}function fc(e,t,n=ke){W(e)&&(e=As(e));for(const s in e){const r=e[s];let i;ne(r)?"default"in r?i=Ot(r.from||s,r.default,!0):i=Ot(r.from||s):i=Ot(r),fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function wr(e,t,n){De(W(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ji(e,t,n,s){let r=s.includes(".")?fo(n,s):()=>n[s];if(re(e)){const i=t[e];q(i)&&Fe(r,i)}else if(q(e))Fe(r,e.bind(n));else if(ne(e))if(W(e))e.forEach(i=>Ji(i,t,n,s));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&Fe(r,i,e)}}function Js(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>Pn(c,f,o,!0)),Pn(c,t,o)),ne(t)&&i.set(t,c),c}function Pn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Pn(e,i,n,!0),r&&r.forEach(o=>Pn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=uc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const uc={data:Sr,props:xr,emits:xr,methods:Ht,computed:Ht,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Ht,directives:Ht,watch:hc,provide:Sr,inject:dc};function Sr(e,t){return t?e?function(){return ae(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function dc(e,t){return Ht(As(e),As(t))}function As(e){if(W(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(s&&s.proxy):t}}const Qi={},Zi=()=>Object.create(Qi),eo=e=>Object.getPrototypeOf(e)===Qi;function yc(e,t,n,s=!1){const r={},i=Zi();e.propsDefaults=Object.create(null),to(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Tl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function vc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[y,v]=no(h,t,!0);ae(o,y),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return ne(e)&&s.set(e,Et),Et;if(W(i))for(let a=0;ae[0]==="_"||e==="$stable",zs=e=>W(e)?e.map(Me):[Me(e)],bc=(e,t,n)=>{if(t._n)return t;const s=Ul((...r)=>zs(t(...r)),n);return s._c=!1,s},ro=(e,t,n)=>{const s=e._ctx;for(const r in e){if(so(r))continue;const i=e[r];if(q(i))t[r]=bc(r,i,s);else if(i!=null){const o=zs(i);t[r]=()=>o}}},io=(e,t)=>{const n=zs(t);e.slots.default=()=>n},oo=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},wc=(e,t,n)=>{const s=e.slots=Zi();if(e.vnode.shapeFlag&32){const r=t._;r?(oo(s,t,n),n&&ai(s,"_",r,!0)):ro(t,s)}else t&&io(e,t)},Sc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:oo(r,t,n):(i=!t.$stable,ro(t,r)),o=t}else t&&(io(e,t),o={default:1});if(i)for(const l in r)!so(l)&&o[l]==null&&delete r[l]},be=go;function xc(e){return lo(e)}function Ec(e){return lo(e,Yl)}function lo(e,t){const n=Dn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:h,nextSibling:y,setScopeId:v=ke,insertStaticContent:S}=e,_=(u,d,m,T=null,w=null,E=null,P=void 0,M=null,A=!!d.dynamicChildren)=>{if(u===d)return;u&&!ut(u,d)&&(T=ln(u),$e(u,w,E,!0),u=null),d.patchFlag===-2&&(A=!1,d.dynamicChildren=null);const{type:C,ref:k,shapeFlag:L}=d;switch(C){case gt:K(u,d,m,T);break;case ve:N(u,d,m,T);break;case kt:u==null&&j(d,m,T,P);break;case xe:x(u,d,m,T,w,E,P,M,A);break;default:L&1?O(u,d,m,T,w,E,P,M,A):L&6?B(u,d,m,T,w,E,P,M,A):(L&64||L&128)&&C.process(u,d,m,T,w,E,P,M,A,vt)}k!=null&&w&&Xt(k,u&&u.ref,E,d||u,!d)},K=(u,d,m,T)=>{if(u==null)s(d.el=l(d.children),m,T);else{const w=d.el=u.el;d.children!==u.children&&f(w,d.children)}},N=(u,d,m,T)=>{u==null?s(d.el=c(d.children||""),m,T):d.el=u.el},j=(u,d,m,T)=>{[u.el,u.anchor]=S(u.children,d,m,T,u.el,u.anchor)},p=({el:u,anchor:d},m,T)=>{let w;for(;u&&u!==d;)w=y(u),s(u,m,T),u=w;s(d,m,T)},g=({el:u,anchor:d})=>{let m;for(;u&&u!==d;)m=y(u),r(u),u=m;r(d)},O=(u,d,m,T,w,E,P,M,A)=>{d.type==="svg"?P="svg":d.type==="math"&&(P="mathml"),u==null?F(d,m,T,w,E,P,M,A):R(u,d,w,E,P,M,A)},F=(u,d,m,T,w,E,P,M)=>{let A,C;const{props:k,shapeFlag:L,transition:D,dirs:G}=u;if(A=u.el=o(u.type,E,k&&k.is,k),L&8?a(A,u.children):L&16&&V(u.children,A,null,T,w,rs(u,E),P,M),G&&Ue(u,null,T,"created"),H(A,u,u.scopeId,P,T),k){for(const ee in k)ee!=="value"&&!Ct(ee)&&i(A,ee,null,k[ee],E,T);"value"in k&&i(A,"value",null,k.value,E),(C=k.onVnodeBeforeMount)&&Oe(C,T,u)}G&&Ue(u,null,T,"beforeMount");const X=co(w,D);X&&D.beforeEnter(A),s(A,d,m),((C=k&&k.onVnodeMounted)||X||G)&&be(()=>{C&&Oe(C,T,u),X&&D.enter(A),G&&Ue(u,null,T,"mounted")},w)},H=(u,d,m,T,w)=>{if(m&&v(u,m),T)for(let E=0;E{for(let C=A;C{const M=d.el=u.el;let{patchFlag:A,dynamicChildren:C,dirs:k}=d;A|=u.patchFlag&16;const L=u.props||Z,D=d.props||Z;let G;if(m&<(m,!1),(G=D.onVnodeBeforeUpdate)&&Oe(G,m,d,u),k&&Ue(d,u,m,"beforeUpdate"),m&<(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&a(M,""),C?b(u.dynamicChildren,C,M,m,T,rs(d,w),E):P||$(u,d,M,null,m,T,rs(d,w),E,!1),A>0){if(A&16)I(M,L,D,m,w);else if(A&2&&L.class!==D.class&&i(M,"class",null,D.class,w),A&4&&i(M,"style",L.style,D.style,w),A&8){const X=d.dynamicProps;for(let ee=0;ee{G&&Oe(G,m,d,u),k&&Ue(d,u,m,"updated")},T)},b=(u,d,m,T,w,E,P)=>{for(let M=0;M{if(d!==m){if(d!==Z)for(const E in d)!Ct(E)&&!(E in m)&&i(u,E,d[E],null,w,T);for(const E in m){if(Ct(E))continue;const P=m[E],M=d[E];P!==M&&E!=="value"&&i(u,E,M,P,w,T)}"value"in m&&i(u,"value",d.value,m.value,w)}},x=(u,d,m,T,w,E,P,M,A)=>{const C=d.el=u?u.el:l(""),k=d.anchor=u?u.anchor:l("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:G}=d;G&&(M=M?M.concat(G):G),u==null?(s(C,m,T),s(k,m,T),V(d.children||[],m,k,w,E,P,M,A)):L>0&&L&64&&D&&u.dynamicChildren?(b(u.dynamicChildren,D,m,w,E,P,M),(d.key!=null||w&&d===w.subTree)&&Qs(u,d,!0)):$(u,d,m,k,w,E,P,M,A)},B=(u,d,m,T,w,E,P,M,A)=>{d.slotScopeIds=M,u==null?d.shapeFlag&512?w.ctx.activate(d,m,T,P,A):se(d,m,T,w,E,P,A):le(u,d,A)},se=(u,d,m,T,w,E,P)=>{const M=u.component=Vc(u,T,w);if(sn(u)&&(M.ctx.renderer=vt),Uc(M,!1,P),M.asyncDep){if(w&&w.registerDep(M,U,P),!u.el){const A=M.subTree=ce(ve);N(null,A,d,m)}}else U(M,u,d,m,w,E,P)},le=(u,d,m)=>{const T=d.component=u.component;if(Ic(u,d,m))if(T.asyncDep&&!T.asyncResolved){Y(T,d,m);return}else T.next=d,T.update();else d.el=u.el,T.vnode=d},U=(u,d,m,T,w,E,P)=>{const M=()=>{if(u.isMounted){let{next:L,bu:D,u:G,parent:X,vnode:ee}=u;{const Te=ao(u);if(Te){L&&(L.el=ee.el,Y(u,L,P)),Te.asyncDep.then(()=>{u.isUnmounted||M()});return}}let Q=L,Ee;lt(u,!1),L?(L.el=ee.el,Y(u,L,P)):L=ee,D&&bn(D),(Ee=L.props&&L.props.onVnodeBeforeUpdate)&&Oe(Ee,X,L,ee),lt(u,!0);const pe=is(u),Ie=u.subTree;u.subTree=pe,_(Ie,pe,h(Ie.el),ln(Ie),u,w,E),L.el=pe.el,Q===null&&ho(u,pe.el),G&&be(G,w),(Ee=L.props&&L.props.onVnodeUpdated)&&be(()=>Oe(Ee,X,L,ee),w)}else{let L;const{el:D,props:G}=d,{bm:X,m:ee,parent:Q,root:Ee,type:pe}=u,Ie=pt(d);if(lt(u,!1),X&&bn(X),!Ie&&(L=G&&G.onVnodeBeforeMount)&&Oe(L,Q,d),lt(u,!0),D&&Jn){const Te=()=>{u.subTree=is(u),Jn(D,u.subTree,u,w,null)};Ie&&pe.__asyncHydrate?pe.__asyncHydrate(D,u,Te):Te()}else{Ee.ce&&Ee.ce._injectChildStyle(pe);const Te=u.subTree=is(u);_(null,Te,m,T,u,w,E),d.el=Te.el}if(ee&&be(ee,w),!Ie&&(L=G&&G.onVnodeMounted)){const Te=d;be(()=>Oe(L,Q,Te),w)}(d.shapeFlag&256||Q&&pt(Q.vnode)&&Q.vnode.shapeFlag&256)&&u.a&&be(u.a,w),u.isMounted=!0,d=m=T=null}};u.scope.on();const A=u.effect=new pi(M);u.scope.off();const C=u.update=A.run.bind(A),k=u.job=A.runIfDirty.bind(A);k.i=u,k.id=u.uid,A.scheduler=()=>Gs(k),lt(u,!0),C()},Y=(u,d,m)=>{d.component=u;const T=u.vnode.props;u.vnode=d,u.next=null,vc(u,d.props,T,m),Sc(u,d.children,m),rt(),dr(u),it()},$=(u,d,m,T,w,E,P,M,A=!1)=>{const C=u&&u.children,k=u?u.shapeFlag:0,L=d.children,{patchFlag:D,shapeFlag:G}=d;if(D>0){if(D&128){on(C,L,m,T,w,E,P,M,A);return}else if(D&256){he(C,L,m,T,w,E,P,M,A);return}}G&8?(k&16&&It(C,w,E),L!==C&&a(m,L)):k&16?G&16?on(C,L,m,T,w,E,P,M,A):It(C,w,E,!0):(k&8&&a(m,""),G&16&&V(L,m,T,w,E,P,M,A))},he=(u,d,m,T,w,E,P,M,A)=>{u=u||Et,d=d||Et;const C=u.length,k=d.length,L=Math.min(C,k);let D;for(D=0;Dk?It(u,w,E,!0,!1,L):V(d,m,T,w,E,P,M,A,L)},on=(u,d,m,T,w,E,P,M,A)=>{let C=0;const k=d.length;let L=u.length-1,D=k-1;for(;C<=L&&C<=D;){const G=u[C],X=d[C]=A?et(d[C]):Me(d[C]);if(ut(G,X))_(G,X,m,null,w,E,P,M,A);else break;C++}for(;C<=L&&C<=D;){const G=u[L],X=d[D]=A?et(d[D]):Me(d[D]);if(ut(G,X))_(G,X,m,null,w,E,P,M,A);else break;L--,D--}if(C>L){if(C<=D){const G=D+1,X=GD)for(;C<=L;)$e(u[C],w,E,!0),C++;else{const G=C,X=C,ee=new Map;for(C=X;C<=D;C++){const Ce=d[C]=A?et(d[C]):Me(d[C]);Ce.key!=null&&ee.set(Ce.key,C)}let Q,Ee=0;const pe=D-X+1;let Ie=!1,Te=0;const Nt=new Array(pe);for(C=0;C=pe){$e(Ce,w,E,!0);continue}let je;if(Ce.key!=null)je=ee.get(Ce.key);else for(Q=X;Q<=D;Q++)if(Nt[Q-X]===0&&ut(Ce,d[Q])){je=Q;break}je===void 0?$e(Ce,w,E,!0):(Nt[je-X]=C+1,je>=Te?Te=je:Ie=!0,_(Ce,d[je],m,null,w,E,P,M,A),Ee++)}const lr=Ie?Tc(Nt):Et;for(Q=lr.length-1,C=pe-1;C>=0;C--){const Ce=X+C,je=d[Ce],cr=Ce+1{const{el:E,type:P,transition:M,children:A,shapeFlag:C}=u;if(C&6){ot(u.component.subTree,d,m,T);return}if(C&128){u.suspense.move(d,m,T);return}if(C&64){P.move(u,d,m,vt);return}if(P===xe){s(E,d,m);for(let L=0;LM.enter(E),w);else{const{leave:L,delayLeave:D,afterLeave:G}=M,X=()=>s(E,d,m),ee=()=>{L(E,()=>{X(),G&&G()})};D?D(E,X,ee):ee()}else s(E,d,m)},$e=(u,d,m,T=!1,w=!1)=>{const{type:E,props:P,ref:M,children:A,dynamicChildren:C,shapeFlag:k,patchFlag:L,dirs:D,cacheIndex:G}=u;if(L===-2&&(w=!1),M!=null&&Xt(M,null,m,u,!0),G!=null&&(d.renderCache[G]=void 0),k&256){d.ctx.deactivate(u);return}const X=k&1&&D,ee=!pt(u);let Q;if(ee&&(Q=P&&P.onVnodeBeforeUnmount)&&Oe(Q,d,u),k&6)Wo(u.component,m,T);else{if(k&128){u.suspense.unmount(m,T);return}X&&Ue(u,null,d,"beforeUnmount"),k&64?u.type.remove(u,d,m,vt,T):C&&!C.hasOnce&&(E!==xe||L>0&&L&64)?It(C,d,m,!1,!0):(E===xe&&L&384||!w&&k&16)&&It(A,d,m),T&&ir(u)}(ee&&(Q=P&&P.onVnodeUnmounted)||X)&&be(()=>{Q&&Oe(Q,d,u),X&&Ue(u,null,d,"unmounted")},m)},ir=u=>{const{type:d,el:m,anchor:T,transition:w}=u;if(d===xe){Bo(m,T);return}if(d===kt){g(u);return}const E=()=>{r(m),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(u.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:M}=w,A=()=>P(m,E);M?M(u.el,E,A):A()}else E()},Bo=(u,d)=>{let m;for(;u!==d;)m=y(u),r(u),u=m;r(d)},Wo=(u,d,m)=>{const{bum:T,scope:w,job:E,subTree:P,um:M,m:A,a:C}=u;Tr(A),Tr(C),T&&bn(T),w.stop(),E&&(E.flags|=8,$e(P,u,d,m)),M&&be(M,d),be(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},It=(u,d,m,T=!1,w=!1,E=0)=>{for(let P=E;P{if(u.shapeFlag&6)return ln(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=y(u.anchor||u.el),m=d&&d[Fi];return m?y(m):d};let Yn=!1;const or=(u,d,m)=>{u==null?d._vnode&&$e(d._vnode,null,null,!0):_(d._vnode||null,u,d,null,null,null,m),d._vnode=u,Yn||(Yn=!0,dr(),On(),Yn=!1)},vt={p:_,um:$e,m:ot,r:ir,mt:se,mc:V,pc:$,pbc:b,n:ln,o:e};let Xn,Jn;return t&&([Xn,Jn]=t(vt)),{render:or,hydrate:Xn,createApp:gc(or,Xn)}}function rs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function co(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qs(e,t,n=!1){const s=e.children,r=t.children;if(W(s)&&W(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ao(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ao(t)}function Tr(e){if(e)for(let t=0;tOt(Cc);function Zs(e,t){return Wn(e,null,t)}function Rf(e,t){return Wn(e,null,{flush:"post"})}function Fe(e,t,n){return Wn(e,t,n)}function Wn(e,t,n=Z){const{immediate:s,deep:r,flush:i,once:o}=n,l=ae({},n),c=t&&s||!t&&i!=="post";let f;if(Mt){if(i==="sync"){const v=Ac();f=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=ke,v.resume=ke,v.pause=ke,v}}const a=ue;l.call=(v,S,_)=>De(v,a,S,_);let h=!1;i==="post"?l.scheduler=v=>{be(v,a&&a.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(v,S)=>{S?v():Gs(v)}),l.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,a&&(v.id=a.uid,v.i=a))};const y=Hl(e,t,l);return Mt&&(f?f.push(y):c&&y()),y}function Rc(e,t,n){const s=this.proxy,r=re(e)?e.includes(".")?fo(s,e):()=>s[e]:e.bind(s,s);let i;q(t)?i=t:(i=t.handler,n=t);const o=rn(this),l=Wn(r,i.bind(s),n);return o(),l}function fo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${st(t)}Modifiers`];function Mc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Z;let r=n;const i=t.startsWith("update:"),o=i&&Oc(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>re(a)?a.trim():a)),o.number&&(r=n.map(vs)));let l,c=s[l=_n(t)]||s[l=_n(Le(t))];!c&&i&&(c=s[l=_n(st(t))]),c&&De(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,De(f,e,6,r)}}function uo(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!q(e)){const c=f=>{const a=uo(f,t,!0);a&&(l=!0,ae(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ne(e)&&s.set(e,null),null):(W(i)?i.forEach(c=>o[c]=null):ae(o,i),ne(e)&&s.set(e,o),o)}function Kn(e,t){return!e||!en(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,st(t))||z(e,t))}function is(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:a,props:h,data:y,setupState:v,ctx:S,inheritAttrs:_}=e,K=Mn(e);let N,j;try{if(n.shapeFlag&4){const g=r||s,O=g;N=Me(f.call(O,g,a,h,v,y,S)),j=l}else{const g=t;N=Me(g.length>1?g(h,{attrs:l,slots:o,emit:c}):g(h,null)),j=t.props?l:Pc(l)}}catch(g){Bt.length=0,nn(g,e,1),N=ce(ve)}let p=N;if(j&&_!==!1){const g=Object.keys(j),{shapeFlag:O}=p;g.length&&O&7&&(i&&g.some(Fs)&&(j=Lc(j,i)),p=nt(p,j,!1,!0))}return n.dirs&&(p=nt(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&Yt(p,n.transition),N=p,Mn(K),N}const Pc=e=>{let t;for(const n in e)(n==="class"||n==="style"||en(n))&&((t||(t={}))[n]=e[n]);return t},Lc=(e,t)=>{const n={};for(const s in e)(!Fs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ic(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Cr(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let h=0;he.__isSuspense;function go(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Vl(e)}const xe=Symbol.for("v-fgt"),gt=Symbol.for("v-txt"),ve=Symbol.for("v-cmt"),kt=Symbol.for("v-stc"),Bt=[];let Ae=null;function Os(e=!1){Bt.push(Ae=e?null:[])}function Nc(){Bt.pop(),Ae=Bt[Bt.length-1]||null}let Jt=1;function Ar(e,t=!1){Jt+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function mo(e){return e.dynamicChildren=Jt>0?Ae||Et:null,Nc(),Jt>0&&Ae&&Ae.push(e),e}function Of(e,t,n,s,r,i){return mo(vo(e,t,n,s,r,i,!0))}function Ms(e,t,n,s,r){return mo(ce(e,t,n,s,r,!0))}function zt(e){return e?e.__v_isVNode===!0:!1}function ut(e,t){return e.type===t.type&&e.key===t.key}const yo=({key:e})=>e??null,xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||fe(e)||q(e)?{i:de,r:e,k:t,f:!!n}:e:null);function vo(e,t=null,n=null,s=0,r=null,i=e===xe?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yo(t),ref:t&&xn(t),scopeId:Ni,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:de};return l?(er(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),Jt>0&&!o&&Ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ae.push(c),c}const ce=Fc;function Fc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Gi)&&(e=ve),zt(e)){const l=nt(e,t,!0);return n&&er(l,n),Jt>0&&!i&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(Kc(e)&&(e=e.__vccOpts),t){t=Dc(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=js(l)),ne(c)&&(Ks(c)&&!W(c)&&(c=ae({},c)),t.style=$s(c))}const o=re(e)?1:po(e)?128:Di(e)?64:ne(e)?4:q(e)?2:0;return vo(e,t,n,s,r,o,i,!0)}function Dc(e){return e?Ks(e)||eo(e)?ae({},e):e:null}function nt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?Hc(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&yo(f),ref:t&&t.ref?n&&i?W(i)?i.concat(xn(t)):[i,xn(t)]:xn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nt(e.ssContent),ssFallback:e.ssFallback&&nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Yt(a,c.clone(a)),a}function _o(e=" ",t=0){return ce(gt,null,e,t)}function Mf(e,t){const n=ce(kt,null,e);return n.staticCount=t,n}function Pf(e="",t=!1){return t?(Os(),Ms(ve,null,e)):ce(ve,null,e)}function Me(e){return e==null||typeof e=="boolean"?ce(ve):W(e)?ce(xe,null,e.slice()):zt(e)?et(e):ce(gt,null,String(e))}function et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nt(e)}function er(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),er(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!eo(t)?t._ctx=de:r===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:de},n=32):(t=String(t),s&64?(n=16,t=[_o(t)]):n=8);e.children=t,e.shapeFlag|=n}function Hc(...e){const t={};for(let n=0;nue||de;let Ln,Ps;{const e=Dn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Ps=t("__VUE_SSR_SETTERS__",n=>Mt=n)}const rn=e=>{const t=ue;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},Rr=()=>{ue&&ue.scope.off(),Ln(null)};function bo(e){return e.vnode.shapeFlag&4}let Mt=!1;function Uc(e,t=!1,n=!1){t&&Ps(t);const{props:s,children:r}=e.vnode,i=bo(e);yc(e,s,i,t),wc(e,r,n);const o=i?kc(e,t):void 0;return t&&Ps(!1),o}function kc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lc);const{setup:s}=n;if(s){rt();const r=e.setupContext=s.length>1?So(e):null,i=rn(e),o=tn(s,e,0,[e.props,r]),l=oi(o);if(it(),i(),(l||e.sp)&&!pt(e)&&Xs(e),l){if(o.then(Rr,Rr),t)return o.then(c=>{Or(e,c,t)}).catch(c=>{nn(c,e,0)});e.asyncDep=o}else Or(e,o,t)}else wo(e,t)}function Or(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=Mi(t)),wo(e,n)}let Mr;function wo(e,t,n){const s=e.type;if(!e.render){if(!t&&Mr&&!s.render){const r=s.template||Js(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,f=ae(ae({isCustomElement:i,delimiters:l},o),c);s.render=Mr(r,f)}}e.render=s.render||ke}{const r=rn(e);rt();try{ac(e)}finally{it(),r()}}}const Bc={get(e,t){return me(e,"get",""),e[t]}};function So(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bc),slots:e.slots,emit:e.emit,expose:t}}function Gn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mi(wn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ut)return Ut[n](e)},has(t,n){return n in t||n in Ut}})):e.proxy}function Wc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Kc(e){return q(e)&&"__vccOpts"in e}const ie=(e,t)=>Fl(e,t,Mt);function Ls(e,t,n){const s=arguments.length;return s===2?ne(t)&&!W(t)?zt(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&zt(n)&&(n=[n]),ce(e,t,n))}const qc="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Is;const Pr=typeof window<"u"&&window.trustedTypes;if(Pr)try{Is=Pr.createPolicy("vue",{createHTML:e=>e})}catch{}const xo=Is?e=>Is.createHTML(e):e=>e,Gc="http://www.w3.org/2000/svg",Yc="http://www.w3.org/1998/Math/MathML",qe=typeof document<"u"?document:null,Lr=qe&&qe.createElement("template"),Xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?qe.createElementNS(Gc,e):t==="mathml"?qe.createElementNS(Yc,e):n?qe.createElement(e,{is:n}):qe.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>qe.createTextNode(e),createComment:e=>qe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Lr.innerHTML=xo(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Lr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ze="transition",Dt="animation",Qt=Symbol("_vtc"),Eo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Jc=ae({},ji,Eo),zc=e=>(e.displayName="Transition",e.props=Jc,e),Lf=zc((e,{slots:t})=>Ls(Kl,Qc(e),t)),ct=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ir=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function Qc(e){const t={};for(const x in e)x in Eo||(t[x]=e[x]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,S=Zc(r),_=S&&S[0],K=S&&S[1],{onBeforeEnter:N,onEnter:j,onEnterCancelled:p,onLeave:g,onLeaveCancelled:O,onBeforeAppear:F=N,onAppear:H=j,onAppearCancelled:V=p}=t,R=(x,B,se,le)=>{x._enterCancelled=le,at(x,B?a:l),at(x,B?f:o),se&&se()},b=(x,B)=>{x._isLeaving=!1,at(x,h),at(x,v),at(x,y),B&&B()},I=x=>(B,se)=>{const le=x?H:j,U=()=>R(B,x,se);ct(le,[B,U]),Nr(()=>{at(B,x?c:i),Ke(B,x?a:l),Ir(le)||Fr(B,s,_,U)})};return ae(t,{onBeforeEnter(x){ct(N,[x]),Ke(x,i),Ke(x,o)},onBeforeAppear(x){ct(F,[x]),Ke(x,c),Ke(x,f)},onEnter:I(!1),onAppear:I(!0),onLeave(x,B){x._isLeaving=!0;const se=()=>b(x,B);Ke(x,h),x._enterCancelled?(Ke(x,y),$r()):($r(),Ke(x,y)),Nr(()=>{x._isLeaving&&(at(x,h),Ke(x,v),Ir(g)||Fr(x,s,K,se))}),ct(g,[x,se])},onEnterCancelled(x){R(x,!1,void 0,!0),ct(p,[x])},onAppearCancelled(x){R(x,!0,void 0,!0),ct(V,[x])},onLeaveCancelled(x){b(x),ct(O,[x])}})}function Zc(e){if(e==null)return null;if(ne(e))return[os(e.enter),os(e.leave)];{const t=os(e);return[t,t]}}function os(e){return Jo(e)}function Ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Qt]||(e[Qt]=new Set)).add(t)}function at(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Qt];n&&(n.delete(t),n.size||(e[Qt]=void 0))}function Nr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ea=0;function Fr(e,t,n,s){const r=e._endId=++ea,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ta(e,t);if(!o)return s();const f=o+"end";let a=0;const h=()=>{e.removeEventListener(f,y),i()},y=v=>{v.target===e&&++a>=c&&h()};setTimeout(()=>{a(n[S]||"").split(", "),r=s(`${ze}Delay`),i=s(`${ze}Duration`),o=Dr(r,i),l=s(`${Dt}Delay`),c=s(`${Dt}Duration`),f=Dr(l,c);let a=null,h=0,y=0;t===ze?o>0&&(a=ze,h=o,y=i.length):t===Dt?f>0&&(a=Dt,h=f,y=c.length):(h=Math.max(o,f),a=h>0?o>f?ze:Dt:null,y=a?a===ze?i.length:c.length:0);const v=a===ze&&/\b(transform|all)(,|$)/.test(s(`${ze}Property`).toString());return{type:a,timeout:h,propCount:y,hasTransform:v}}function Dr(e,t){for(;e.lengthHr(n)+Hr(e[s])))}function Hr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $r(){return document.body.offsetHeight}function na(e,t,n){const s=e[Qt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jr=Symbol("_vod"),sa=Symbol("_vsh"),ra=Symbol(""),ia=/(^|;)\s*display\s*:/;function oa(e,t,n){const s=e.style,r=re(n);let i=!1;if(n&&!r){if(t)if(re(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&En(s,l,"")}else for(const o in t)n[o]==null&&En(s,o,"");for(const o in n)o==="display"&&(i=!0),En(s,o,n[o])}else if(r){if(t!==n){const o=s[ra];o&&(n+=";"+o),s.cssText=n,i=ia.test(n)}}else t&&e.removeAttribute("style");jr in e&&(e[jr]=i?s.display:"",e[sa]&&(s.display="none"))}const Vr=/\s*!important$/;function En(e,t,n){if(W(n))n.forEach(s=>En(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=la(e,t);Vr.test(n)?e.setProperty(st(s),n.replace(Vr,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],ls={};function la(e,t){const n=ls[t];if(n)return n;let s=Le(t);if(s!=="filter"&&s in e)return ls[t]=s;s=Fn(s);for(let r=0;rcs||(ua.then(()=>cs=0),cs=Date.now());function ha(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;De(pa(s,n.value),t,5,[s])};return n.value=e,n.attached=da(),n}function pa(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Gr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ga=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?na(e,s,o):t==="style"?oa(e,n,s):en(t)?Fs(t)||aa(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ma(e,t,s,o))?(Wr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Br(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!re(s))?Wr(e,Le(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Br(e,t,s,o))};function ma(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gr(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Gr(t)&&re(n)?!1:t in e}const Yr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>bn(t,n):t};function ya(e){e.target.composing=!0}function Xr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const as=Symbol("_assign"),If={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[as]=Yr(r);const i=s||r.props&&r.props.type==="number";St(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=vs(l)),e[as](l)}),n&&St(e,"change",()=>{e.value=e.value.trim()}),t||(St(e,"compositionstart",ya),St(e,"compositionend",Xr),St(e,"change",Xr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[as]=Yr(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?vs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},va=["ctrl","shift","alt","meta"],_a={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>va.some(n=>e[`${n}Key`]&&!t.includes(n))},Nf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=st(r.key);if(t.some(o=>o===i||ba[o]===i))return e(r)})},To=ae({patchProp:ga},Xc);let Wt,Jr=!1;function wa(){return Wt||(Wt=xc(To))}function Sa(){return Wt=Jr?Wt:Ec(To),Jr=!0,Wt}const Df=(...e)=>{const t=wa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ao(s);if(!r)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Co(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Hf=(...e)=>{const t=Sa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ao(s);if(r)return n(r,!0,Co(r))},t};function Co(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ao(e){return re(e)?document.querySelector(e):e}const $f=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xa=window.__VP_SITE_DATA__;function tr(e){return hi()?(il(e),!0):!1}function Be(e){return typeof e=="function"?e():Oi(e)}const Ro=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jf=e=>e!=null,Ea=Object.prototype.toString,Ta=e=>Ea.call(e)==="[object Object]",Zt=()=>{},zr=Ca();function Ca(){var e,t;return Ro&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Aa(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const Oo=e=>e();function Ra(e,t={}){let n,s,r=Zt;const i=l=>{clearTimeout(l),r(),r=Zt};return l=>{const c=Be(e),f=Be(t.maxWait);return n&&i(n),c<=0||f!==void 0&&f<=0?(s&&(i(s),s=null),Promise.resolve(l())):new Promise((a,h)=>{r=t.rejectOnCancel?h:a,f&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,a(l())},f)),n=setTimeout(()=>{s&&i(s),s=null,a(l())},c)})}}function Oa(e=Oo){const t=oe(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Vn(t),pause:n,resume:s,eventFilter:r}}function Ma(e){return qn()}function Mo(...e){if(e.length!==1)return Ll(...e);const t=e[0];return typeof t=="function"?Vn(Ol(()=>({get:t,set:Zt}))):oe(t)}function Po(e,t,n={}){const{eventFilter:s=Oo,...r}=n;return Fe(e,Aa(s,t),r)}function Pa(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=Oa(s);return{stop:Po(e,t,{...r,eventFilter:i}),pause:o,resume:l,isActive:c}}function nr(e,t=!0,n){Ma()?Lt(e,n):t?e():Un(e)}function Vf(e,t,n={}){const{debounce:s=0,maxWait:r=void 0,...i}=n;return Po(e,t,{...i,eventFilter:Ra(s,{maxWait:r})})}function Uf(e,t,n){let s;fe(n)?s={evaluating:n}:s={};const{lazy:r=!1,evaluating:i=void 0,shallow:o=!0,onError:l=Zt}=s,c=oe(!r),f=o?qs(t):oe(t);let a=0;return Zs(async h=>{if(!c.value)return;a++;const y=a;let v=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const S=await e(_=>{h(()=>{i&&(i.value=!1),v||_()})});y===a&&(f.value=S)}catch(S){l(S)}finally{i&&y===a&&(i.value=!1),v=!0}}),r?ie(()=>(c.value=!0,f.value)):f}const He=Ro?window:void 0;function Lo(e){var t;const n=Be(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Pt(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=He):[t,n,s,r]=e,!t)return Zt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(a=>a()),i.length=0},l=(a,h,y,v)=>(a.addEventListener(h,y,v),()=>a.removeEventListener(h,y,v)),c=Fe(()=>[Lo(t),Be(r)],([a,h])=>{if(o(),!a)return;const y=Ta(h)?{...h}:h;i.push(...n.flatMap(v=>s.map(S=>l(a,v,S,y))))},{immediate:!0,flush:"post"}),f=()=>{c(),o()};return tr(f),f}function La(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function kf(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=He,eventName:i="keydown",passive:o=!1,dedupe:l=!1}=s,c=La(t);return Pt(r,i,a=>{a.repeat&&Be(l)||c(a)&&n(a)},o)}function Ia(){const e=oe(!1),t=qn();return t&&Lt(()=>{e.value=!0},t),e}function Na(e){const t=Ia();return ie(()=>(t.value,!!e()))}function Io(e,t={}){const{window:n=He}=t,s=Na(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=oe(!1),o=f=>{i.value=f.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},c=Zs(()=>{s.value&&(l(),r=n.matchMedia(Be(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),i.value=r.matches)});return tr(()=>{c(),l(),r=void 0}),i}const gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mn="__vueuse_ssr_handlers__",Fa=Da();function Da(){return mn in gn||(gn[mn]=gn[mn]||{}),gn[mn]}function No(e,t){return Fa[e]||t}function sr(e){return Io("(prefers-color-scheme: dark)",e)}function Ha(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const $a={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Qr="vueuse-storage";function rr(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:a,window:h=He,eventFilter:y,onError:v=b=>{console.error(b)},initOnMounted:S}=s,_=(a?qs:oe)(typeof t=="function"?t():t);if(!n)try{n=No("getDefaultStorage",()=>{var b;return(b=He)==null?void 0:b.localStorage})()}catch(b){v(b)}if(!n)return _;const K=Be(t),N=Ha(K),j=(r=s.serializer)!=null?r:$a[N],{pause:p,resume:g}=Pa(_,()=>F(_.value),{flush:i,deep:o,eventFilter:y});h&&l&&nr(()=>{n instanceof Storage?Pt(h,"storage",V):Pt(h,Qr,R),S&&V()}),S||V();function O(b,I){if(h){const x={key:e,oldValue:b,newValue:I,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(Qr,{detail:x}))}}function F(b){try{const I=n.getItem(e);if(b==null)O(I,null),n.removeItem(e);else{const x=j.write(b);I!==x&&(n.setItem(e,x),O(I,x))}}catch(I){v(I)}}function H(b){const I=b?b.newValue:n.getItem(e);if(I==null)return c&&K!=null&&n.setItem(e,j.write(K)),K;if(!b&&f){const x=j.read(I);return typeof f=="function"?f(x,K):N==="object"&&!Array.isArray(x)?{...K,...x}:x}else return typeof I!="string"?I:j.read(I)}function V(b){if(!(b&&b.storageArea!==n)){if(b&&b.key==null){_.value=K;return}if(!(b&&b.key!==e)){p();try{(b==null?void 0:b.newValue)!==j.write(_.value)&&(_.value=H(b))}catch(I){v(I)}finally{b?Un(g):g()}}}}function R(b){V(b.detail)}return _}const ja="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Va(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=He,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:f,disableTransition:a=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},y=sr({window:r}),v=ie(()=>y.value?"dark":"light"),S=c||(o==null?Mo(s):rr(o,s,i,{window:r,listenToStorageChanges:l})),_=ie(()=>S.value==="auto"?v.value:S.value),K=No("updateHTMLAttrs",(g,O,F)=>{const H=typeof g=="string"?r==null?void 0:r.document.querySelector(g):Lo(g);if(!H)return;const V=new Set,R=new Set;let b=null;if(O==="class"){const x=F.split(/\s/g);Object.values(h).flatMap(B=>(B||"").split(/\s/g)).filter(Boolean).forEach(B=>{x.includes(B)?V.add(B):R.add(B)})}else b={key:O,value:F};if(V.size===0&&R.size===0&&b===null)return;let I;a&&(I=r.document.createElement("style"),I.appendChild(document.createTextNode(ja)),r.document.head.appendChild(I));for(const x of V)H.classList.add(x);for(const x of R)H.classList.remove(x);b&&H.setAttribute(b.key,b.value),a&&(r.getComputedStyle(I).opacity,document.head.removeChild(I))});function N(g){var O;K(t,n,(O=h[g])!=null?O:g)}function j(g){e.onChanged?e.onChanged(g,N):N(g)}Fe(_,j,{flush:"post",immediate:!0}),nr(()=>j(_.value));const p=ie({get(){return f?S.value:_.value},set(g){S.value=g}});try{return Object.assign(p,{store:S,system:v,state:_})}catch{return p}}function Ua(e={}){const{valueDark:t="dark",valueLight:n="",window:s=He}=e,r=Va({...e,onChanged:(l,c)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),i=ie(()=>r.system?r.system.value:sr({window:s}).value?"dark":"light");return ie({get(){return r.value==="dark"},set(l){const c=l?"dark":"light";i.value===c?r.value="auto":r.value=c}})}function fs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Bf(e,t,n={}){const{window:s=He}=n;return rr(e,t,s==null?void 0:s.localStorage,n)}function Fo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const us=new WeakMap;function Wf(e,t=!1){const n=oe(t);let s=null,r="";Fe(Mo(e),l=>{const c=fs(Be(l));if(c){const f=c;if(us.get(f)||us.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(r=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=fs(Be(e));!l||n.value||(zr&&(s=Pt(l,"touchmove",c=>{ka(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=fs(Be(e));!l||!n.value||(zr&&(s==null||s()),l.style.overflow=r,us.delete(l),n.value=!1)};return tr(o),ie({get(){return n.value},set(l){l?i():o()}})}function Kf(e,t,n={}){const{window:s=He}=n;return rr(e,t,s==null?void 0:s.sessionStorage,n)}function qf(e={}){const{window:t=He,behavior:n="auto"}=e;if(!t)return{x:oe(0),y:oe(0)};const s=oe(t.scrollX),r=oe(t.scrollY),i=ie({get(){return s.value},set(l){scrollTo({left:l,behavior:n})}}),o=ie({get(){return r.value},set(l){scrollTo({top:l,behavior:n})}});return Pt(t,"scroll",()=>{s.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:o}}function Gf(e={}){const{window:t=He,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:i=!0,type:o="inner"}=e,l=oe(n),c=oe(s),f=()=>{t&&(o==="outer"?(l.value=t.outerWidth,c.value=t.outerHeight):i?(l.value=t.innerWidth,c.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight))};if(f(),nr(f),Pt("resize",f,{passive:!0}),r){const a=Io("(orientation: portrait)");Fe(a,()=>f())}return{width:l,height:c}}const ds={BASE_URL:"/DimensionalData.jl/previews/PR872/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var hs={};const Do=/^(?:[a-z]+:|\/\/)/i,Ba="vitepress-theme-appearance",Wa=/#.*$/,Ka=/[?#].*$/,qa=/(?:(^|\/)index)?\.(?:md|html)$/,ge=typeof document<"u",Ho={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function Ga(e,t,n=!1){if(t===void 0)return!1;if(e=Zr(`/${e}`),n)return new RegExp(t).test(e);if(Zr(t)!==e)return!1;const s=t.match(Wa);return s?(ge?location.hash:"")===s[0]:!0}function Zr(e){return decodeURI(e).replace(Ka,"").replace(qa,"$1")}function Ya(e){return Do.test(e)}function Xa(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!Ya(n)&&Ga(t,`/${n}/`,!0))||"root"}function Ja(e,t){var s,r,i,o,l,c,f;const n=Xa(e,t);return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:jo(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(f=e.locales[n])==null?void 0:f.themeConfig}})}function $o(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=za(e.title,s);return n===r.slice(3)?n:`${n}${r}`}function za(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Qa(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function jo(e,t){return[...e.filter(n=>!Qa(t,n)),...t]}const Za=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,ef=/^[a-z]:/i;function ei(e){const t=ef.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Za,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const ps=new Set;function tf(e){if(ps.size===0){const n=typeof process=="object"&&(hs==null?void 0:hs.VITE_EXTRA_EXTENSIONS)||(ds==null?void 0:ds.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(s=>ps.add(s))}const t=e.split(".").pop();return t==null||!ps.has(t.toLowerCase())}function Yf(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const nf=Symbol(),mt=qs(xa);function Xf(e){const t=ie(()=>Ja(mt.value,e.data.relativePath)),n=t.value.appearance,s=n==="force-dark"?oe(!0):n==="force-auto"?sr():n?Ua({storageKey:Ba,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):oe(!1),r=oe(ge?location.hash:"");return ge&&window.addEventListener("hashchange",()=>{r.value=location.hash}),Fe(()=>e.data,()=>{r.value=ge?location.hash:""}),{site:t,theme:ie(()=>t.value.themeConfig),page:ie(()=>e.data),frontmatter:ie(()=>e.data.frontmatter),params:ie(()=>e.data.params),lang:ie(()=>t.value.lang),dir:ie(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:ie(()=>t.value.localeIndex||"root"),title:ie(()=>$o(t.value,e.data)),description:ie(()=>e.data.description||t.value.description),isDark:s,hash:ie(()=>r.value)}}function sf(){const e=Ot(nf);if(!e)throw new Error("vitepress data not properly injected in app");return e}function rf(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function ti(e){return Do.test(e)||!e.startsWith("/")?e:rf(mt.value.base,e)}function of(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),ge){const n="/DimensionalData.jl/previews/PR872/";t=ei(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];if(s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),!s)return null;t=`${n}assets/${t}.${s}.js`}else t=`./${ei(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let Tn=[];function Jf(e){Tn.push(e),Bn(()=>{Tn=Tn.filter(t=>t!==e)})}function lf(){let e=mt.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=ni(e,n);else if(Array.isArray(e))for(const s of e){const r=ni(s,n);if(r){t=r;break}}return t}function ni(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().bottom;return s<0?0:s+t}const cf=Symbol(),Vo="http://a.com",af=()=>({path:"/",component:null,data:Ho});function zf(e,t){const n=jn(af()),s={route:n,go:r};async function r(l=ge?location.href:"/"){var c,f;l=gs(l),await((c=s.onBeforeRouteChange)==null?void 0:c.call(s,l))!==!1&&(ge&&l!==gs(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await o(l),await((f=s.onAfterRouteChanged)==null?void 0:f.call(s,l)))}let i=null;async function o(l,c=0,f=!1){var y,v;if(await((y=s.onBeforePageLoad)==null?void 0:y.call(s,l))===!1)return;const a=new URL(l,Vo),h=i=a.pathname;try{let S=await e(h);if(!S)throw new Error(`Page not found: ${h}`);if(i===h){i=null;const{default:_,__pageData:K}=S;if(!_)throw new Error(`Invalid route component: ${_}`);await((v=s.onAfterPageLoad)==null?void 0:v.call(s,l)),n.path=ge?h:ti(h),n.component=wn(_),n.data=wn(K),ge&&Un(()=>{let N=mt.value.base+K.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!mt.value.cleanUrls&&!N.endsWith("/")&&(N+=".html"),N!==a.pathname&&(a.pathname=N,l=N+a.search+a.hash,history.replaceState({},"",l)),a.hash&&!c){let j=null;try{j=document.getElementById(decodeURIComponent(a.hash).slice(1))}catch(p){console.warn(p)}if(j){si(j,a.hash);return}}window.scrollTo(0,c)})}}catch(S){if(!/fetch|Page not found/.test(S.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(S),!f)try{const _=await fetch(mt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await _.json(),await o(l,c,!0);return}catch{}if(i===h){i=null,n.path=ge?h:ti(h),n.component=t?wn(t):null;const _=ge?h.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...Ho,relativePath:_}}}}return ge&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const f=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(f==null)return;const{href:a,origin:h,pathname:y,hash:v,search:S}=new URL(f,c.baseURI),_=new URL(location.href);h===_.origin&&tf(y)&&(l.preventDefault(),y===_.pathname&&S===_.search?(v!==_.hash&&(history.pushState({},"",a),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:_.href,newURL:a}))),v?si(c,v,c.classList.contains("header-anchor")):window.scrollTo(0,0)):r(a))},{capture:!0}),window.addEventListener("popstate",async l=>{var c;l.state!==null&&(await o(gs(location.href),l.state&&l.state.scrollPosition||0),(c=s.onAfterRouteChanged)==null||c.call(s,location.href))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function ff(){const e=Ot(cf);if(!e)throw new Error("useRouter() is called without provider.");return e}function Uo(){return ff().route}function si(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(r){console.warn(r)}if(s){let r=function(){!n||Math.abs(o-window.scrollY)>window.innerHeight?window.scrollTo(0,o):window.scrollTo({left:0,top:o,behavior:"smooth"})};const i=parseInt(window.getComputedStyle(s).paddingTop,10),o=window.scrollY+s.getBoundingClientRect().top-lf()+i;requestAnimationFrame(r)}}function gs(e){const t=new URL(e,Vo);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),mt.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const yn=()=>Tn.forEach(e=>e()),Qf=Ys({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=Uo(),{frontmatter:n,site:s}=sf();return Fe(n,yn,{deep:!0,flush:"post"}),()=>Ls(e.as,s.value.contentProps??{style:{position:"relative"}},[t.component?Ls(t.component,{onVnodeMounted:yn,onVnodeUpdated:yn,onVnodeUnmounted:yn}):"404 Page Not Found"])}}),uf="modulepreload",df=function(e){return"/DimensionalData.jl/previews/PR872/"+e},ri={},Zf=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=df(c),c in ri)return;ri[c]=!0;const f=c.endsWith(".css"),a=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":uf,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((y,v)=>{h.addEventListener("load",y),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},eu=Ys({setup(e,{slots:t}){const n=oe(!1);return Lt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function tu(){ge&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const s=(n=t.parentElement)==null?void 0:n.parentElement;if(!s)return;const r=Array.from(s.querySelectorAll("input")).indexOf(t);if(r<0)return;const i=s.querySelector(".blocks");if(!i)return;const o=Array.from(i.children).find(f=>f.classList.contains("active"));if(!o)return;const l=i.children[r];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const c=s==null?void 0:s.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function nu(){if(ge){const e=new WeakMap;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className),l=[".vp-copy-ignore",".diff.remove"],c=i.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(a=>a.remove());let f=c.textContent||"";o&&(f=f.replace(/^ *(\$|>) /gm,"").trim()),hf(f).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,a)})}})}}async function hf(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function su(e,t){let n=!0,s=[];const r=i=>{if(n){n=!1,i.forEach(l=>{const c=ms(l);for(const f of document.head.children)if(f.isEqualNode(c)){s.push(f);return}});return}const o=i.map(ms);s.forEach((l,c)=>{const f=o.findIndex(a=>a==null?void 0:a.isEqualNode(l??null));f!==-1?delete o[f]:(l==null||l.remove(),delete s[c])}),o.forEach(l=>l&&document.head.appendChild(l)),s=[...s,...o].filter(Boolean)};Zs(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],f=$o(o,i);f!==document.title&&(document.title=f);const a=l||o.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==a&&h.setAttribute("content",a):ms(["meta",{name:"description",content:a}]),r(jo(o.head,gf(c)))})}function ms([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&t.async==null&&(s.async=!1),s}function pf(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function gf(e){return e.filter(t=>!pf(t))}const ys=new Set,ko=()=>document.createElement("link"),mf=e=>{const t=ko();t.rel="prefetch",t.href=e,document.head.appendChild(t)},yf=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let vn;const vf=ge&&(vn=ko())&&vn.relList&&vn.relList.supports&&vn.relList.supports("prefetch")?mf:yf;function ru(){if(!ge||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!ys.has(c)){ys.add(c);const f=of(c);f&&vf(f)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):ys.add(l))})})};Lt(s);const r=Uo();Fe(()=>r.path,s),Bn(()=>{n&&n.disconnect()})}export{Ki as $,lf as A,Sf as B,Ef as C,qs as D,Jf as E,xe as F,ce as G,xf as H,Do as I,Uo as J,Hc as K,Ot as L,Gf as M,$s as N,kf as O,Un as P,qf as Q,ge as R,Vn as S,Lf as T,wf as U,Zf as V,Wf as W,mc as X,Cf as Y,Ff as Z,$f as _,_o as a,Nf as a0,Af as a1,jn as a2,Ll as a3,Mf as a4,su as a5,cf as a6,Xf as a7,nf as a8,Qf as a9,eu as aa,mt as ab,Hf as ac,zf as ad,of as ae,ru as af,nu as ag,tu as ah,Ls as ai,Be as aj,Lo as ak,jf as al,tr as am,Uf as an,Kf as ao,Bf as ap,Vf as aq,ff as ar,Pt as as,_f as at,If as au,fe as av,bf as aw,wn as ax,Df as ay,Yf as az,Ms as b,Of as c,Ys as d,Pf as e,tf as f,ti as g,ie as h,Ya as i,vo as j,Oi as k,Ga as l,Io as m,js as n,Os as o,oe as p,Fe as q,Tf as r,Zs as s,sl as t,sf as u,Lt as v,Ul as w,Bn as x,Rf as y,nc as z}; diff --git a/previews/PR872/assets/chunks/theme.DYW__FGo.js b/previews/PR872/assets/chunks/theme.DYW__FGo.js new file mode 100644 index 000000000..2a6be6a01 --- /dev/null +++ b/previews/PR872/assets/chunks/theme.DYW__FGo.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.805L3Tdu.js","assets/chunks/framework.ByNLHi2E.js"])))=>i.map(i=>d[i]); +import{d as b,o as a,c as d,r as u,n as I,a as j,t as N,b as k,w as f,e as _,T as de,_ as $,u as Se,i as je,f as ze,g as ve,h as P,j as p,k as i,l as z,m as re,p as T,q as D,s as Z,v as F,x as pe,y as fe,z as Ke,A as We,B as K,F as M,C as E,D as Le,E as x,G as g,H,I as Te,J as ee,K as G,L as q,M as qe,N as we,O as ie,P as he,Q as Ne,R as te,S as Je,U as Ye,V as Xe,W as Ie,X as me,Y as Qe,Z as Ze,$ as xe,a0 as et,a1 as Me,a2 as tt,a3 as nt}from"./framework.ByNLHi2E.js";const st=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),d("span",{class:I(["VPBadge",e.type])},[u(e.$slots,"default",{},()=>[j(N(e.text),1)])],2))}}),ot={key:0,class:"VPBackdrop"},at=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),k(de,{name:"fade"},{default:f(()=>[e.show?(a(),d("div",ot)):_("",!0)]),_:1}))}}),rt=$(at,[["__scopeId","data-v-b06cdb19"]]),L=Se;function it(o,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(o,e):(o(),(s=!0)&&setTimeout(()=>s=!1,e))}}function le(o){return/^\//.test(o)?o:`/${o}`}function _e(o){const{pathname:e,search:t,hash:s,protocol:n}=new URL(o,"http://a.com");if(je(o)||o.startsWith("#")||!n.startsWith("http")||!ze(e))return o;const{site:r}=L(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${s}`);return ve(l)}function Y({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:s,theme:n,hash:r}=L(),l=P(()=>{var c,h;return{label:(c=e.value.locales[t.value])==null?void 0:c.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:P(()=>Object.entries(e.value.locales).flatMap(([c,h])=>l.value.label===h.label?[]:{text:h.label,link:lt(h.link||(c==="root"?"/":`/${c}/`),n.value.i18nRouting!==!1&&o,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:l}}function lt(o,e,t,s){return e?o.replace(/\/$/,"")+le(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):o}const ct={class:"NotFound"},ut={class:"code"},dt={class:"title"},vt={class:"quote"},pt={class:"action"},ft=["href","aria-label"],ht=b({__name:"NotFound",setup(o){const{theme:e}=L(),{currentLang:t}=Y();return(s,n)=>{var r,l,v,c,h;return a(),d("div",ct,[p("p",ut,N(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),p("h1",dt,N(((l=i(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),n[0]||(n[0]=p("div",{class:"divider"},null,-1)),p("blockquote",vt,N(((v=i(e).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),p("div",pt,[p("a",{class:"link",href:i(ve)(i(t).link),"aria-label":((c=i(e).notFound)==null?void 0:c.linkLabel)??"go to home"},N(((h=i(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,ft)])])}}}),mt=$(ht,[["__scopeId","data-v-951cab6c"]]);function Ce(o,e){if(Array.isArray(o))return X(o);if(o==null)return[];e=le(e);const t=Object.keys(o).sort((n,r)=>r.split("/").length-n.split("/").length).find(n=>e.startsWith(le(n))),s=t?o[t]:[];return Array.isArray(s)?X(s):X(s.items,s.base)}function _t(o){const e=[];let t=0;for(const s in o){const n=o[s];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function bt(o){const e=[];function t(s){for(const n of s)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(o),e}function ce(o,e){return Array.isArray(e)?e.some(t=>ce(o,t)):z(o,e.link)?!0:e.items?ce(o,e.items):!1}function X(o,e){return[...o].map(t=>{const s={...t},n=s.base||e;return n&&s.link&&(s.link=n+s.link),s.items&&(s.items=X(s.items,n)),s})}function R(){const{frontmatter:o,page:e,theme:t}=L(),s=re("(min-width: 960px)"),n=T(!1),r=P(()=>{const A=t.value.sidebar,w=e.value.relativePath;return A?Ce(A,w):[]}),l=T(r.value);D(r,(A,w)=>{JSON.stringify(A)!==JSON.stringify(w)&&(l.value=r.value)});const v=P(()=>o.value.sidebar!==!1&&l.value.length>0&&o.value.layout!=="home"),c=P(()=>h?o.value.aside==null?t.value.aside==="left":o.value.aside==="left":!1),h=P(()=>o.value.layout==="home"?!1:o.value.aside!=null?!!o.value.aside:t.value.aside!==!1),y=P(()=>v.value&&s.value),m=P(()=>v.value?_t(l.value):[]);function V(){n.value=!0}function S(){n.value=!1}function C(){n.value?S():V()}return{isOpen:n,sidebar:l,sidebarGroups:m,hasSidebar:v,hasAside:h,leftAside:c,isSidebarEnabled:y,open:V,close:S,toggle:C}}function kt(o,e){let t;Z(()=>{t=o.value?document.activeElement:void 0}),F(()=>{window.addEventListener("keyup",s)}),pe(()=>{window.removeEventListener("keyup",s)});function s(n){n.key==="Escape"&&o.value&&(e(),t==null||t.focus())}}function gt(o){const{page:e,hash:t}=L(),s=T(!1),n=P(()=>o.value.collapsed!=null),r=P(()=>!!o.value.link),l=T(!1),v=()=>{l.value=z(e.value.relativePath,o.value.link)};D([e,o,t],v),F(v);const c=P(()=>l.value?!0:o.value.items?ce(e.value.relativePath,o.value.items):!1),h=P(()=>!!(o.value.items&&o.value.items.length));Z(()=>{s.value=!!(n.value&&o.value.collapsed)}),fe(()=>{(l.value||c.value)&&(s.value=!1)});function y(){n.value&&(s.value=!s.value)}return{collapsed:s,collapsible:n,isLink:r,isActiveLink:l,hasActiveLink:c,hasChildren:h,toggle:y}}function $t(){const{hasSidebar:o}=R(),e=re("(min-width: 960px)"),t=re("(min-width: 1280px)");return{isAsideEnabled:P(()=>!t.value&&!e.value?!1:o.value?t.value:e.value)}}const ue=[];function Ae(o){return typeof o.outline=="object"&&!Array.isArray(o.outline)&&o.outline.label||o.outlineTitle||"On this page"}function be(o){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:yt(t),link:"#"+t.id,level:s}});return Pt(e,o)}function yt(o){let e="";for(const t of o.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Pt(o,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,n]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;return Lt(o,s,n)}function Vt(o,e){const{isAsideEnabled:t}=$t(),s=it(r,100);let n=null;F(()=>{requestAnimationFrame(r),window.addEventListener("scroll",s)}),Ke(()=>{l(location.hash)}),pe(()=>{window.removeEventListener("scroll",s)});function r(){if(!t.value)return;const v=window.scrollY,c=window.innerHeight,h=document.body.offsetHeight,y=Math.abs(v+c-h)<1,m=ue.map(({element:S,link:C})=>({link:C,top:St(S)})).filter(({top:S})=>!Number.isNaN(S)).sort((S,C)=>S.top-C.top);if(!m.length){l(null);return}if(v<1){l(null);return}if(y){l(m[m.length-1].link);return}let V=null;for(const{link:S,top:C}of m){if(C>v+We()+4)break;V=S}l(V)}function l(v){n&&n.classList.remove("active"),v==null?n=null:n=o.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const c=n;c?(c.classList.add("active"),e.value.style.top=c.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function St(o){let e=0;for(;o!==document.body;){if(o===null)return NaN;e+=o.offsetTop,o=o.offsetParent}return e}function Lt(o,e,t){ue.length=0;const s=[],n=[];return o.forEach(r=>{const l={...r,children:[]};let v=n[n.length-1];for(;v&&v.level>=l.level;)n.pop(),v=n[n.length-1];if(l.element.classList.contains("ignore-header")||v&&"shouldIgnore"in v){n.push({level:l.level,shouldIgnore:!0});return}l.level>t||l.level{const n=K("VPDocOutlineItem",!0);return a(),d("ul",{class:I(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),d(M,null,E(t.headers,({children:r,link:l,title:v})=>(a(),d("li",null,[p("a",{class:"outline-link",href:l,onClick:e,title:v},N(v),9,Tt),r!=null&&r.length?(a(),k(n,{key:0,headers:r},null,8,["headers"])):_("",!0)]))),256))],2)}}}),Ee=$(wt,[["__scopeId","data-v-3f927ebe"]]),Nt={class:"content"},It={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Mt=b({__name:"VPDocAsideOutline",setup(o){const{frontmatter:e,theme:t}=L(),s=Le([]);x(()=>{s.value=be(e.value.outline??t.value.outline)});const n=T(),r=T();return Vt(n,r),(l,v)=>(a(),d("nav",{"aria-labelledby":"doc-outline-aria-label",class:I(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:n},[p("div",Nt,[p("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),p("div",It,N(i(Ae)(i(t))),1),g(Ee,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),Ct=$(Mt,[["__scopeId","data-v-b38bf2ff"]]),At={class:"VPDocAsideCarbonAds"},Et=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(o){const e=()=>null;return(t,s)=>(a(),d("div",At,[g(i(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Bt={class:"VPDocAside"},Ht=b({__name:"VPDocAside",setup(o){const{theme:e}=L();return(t,s)=>(a(),d("div",Bt,[u(t.$slots,"aside-top",{},void 0,!0),u(t.$slots,"aside-outline-before",{},void 0,!0),g(Ct),u(t.$slots,"aside-outline-after",{},void 0,!0),s[0]||(s[0]=p("div",{class:"spacer"},null,-1)),u(t.$slots,"aside-ads-before",{},void 0,!0),i(e).carbonAds?(a(),k(Et,{key:0,"carbon-ads":i(e).carbonAds},null,8,["carbon-ads"])):_("",!0),u(t.$slots,"aside-ads-after",{},void 0,!0),u(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Ot=$(Ht,[["__scopeId","data-v-6d7b3c46"]]);function Dt(){const{theme:o,page:e}=L();return P(()=>{const{text:t="Edit this page",pattern:s=""}=o.value.editLink||{};let n;return typeof s=="function"?n=s(e.value):n=s.replace(/:path/g,e.value.filePath),{url:n,text:t}})}function Ft(){const{page:o,theme:e,frontmatter:t}=L();return P(()=>{var h,y,m,V,S,C,A,w;const s=Ce(e.value.sidebar,o.value.relativePath),n=bt(s),r=Rt(n,B=>B.link.replace(/[?#].*$/,"")),l=r.findIndex(B=>z(o.value.relativePath,B.link)),v=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!t.value.prev||t.value.prev===!1,c=((y=e.value.docFooter)==null?void 0:y.next)===!1&&!t.value.next||t.value.next===!1;return{prev:v?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((m=r[l-1])==null?void 0:m.docFooterText)??((V=r[l-1])==null?void 0:V.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((S=r[l-1])==null?void 0:S.link)},next:c?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((C=r[l+1])==null?void 0:C.docFooterText)??((A=r[l+1])==null?void 0:A.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((w=r[l+1])==null?void 0:w.link)}}})}function Rt(o,e){const t=new Set;return o.filter(s=>{const n=e(s);return t.has(n)?!1:t.add(n)})}const O=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(o){const e=o,t=P(()=>e.tag??(e.href?"a":"span")),s=P(()=>e.href&&Te.test(e.href)||e.target==="_blank");return(n,r)=>(a(),k(H(t.value),{class:I(["VPLink",{link:n.href,"vp-external-link-icon":s.value,"no-icon":n.noIcon}]),href:n.href?i(_e)(n.href):void 0,target:n.target??(s.value?"_blank":void 0),rel:n.rel??(s.value?"noreferrer":void 0)},{default:f(()=>[u(n.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Ut={class:"VPLastUpdated"},Gt=["datetime"],jt=b({__name:"VPDocFooterLastUpdated",setup(o){const{theme:e,page:t,lang:s}=L(),n=P(()=>new Date(t.value.lastUpdated)),r=P(()=>n.value.toISOString()),l=T("");return F(()=>{Z(()=>{var v,c,h;l.value=new Intl.DateTimeFormat((c=(v=e.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&c.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(n.value)})}),(v,c)=>{var h;return a(),d("p",Ut,[j(N(((h=i(e).lastUpdated)==null?void 0:h.text)||i(e).lastUpdatedText||"Last updated")+": ",1),p("time",{datetime:r.value},N(l.value),9,Gt)])}}}),zt=$(jt,[["__scopeId","data-v-475f71b8"]]),Kt={key:0,class:"VPDocFooter"},Wt={key:0,class:"edit-info"},qt={key:0,class:"edit-link"},Jt={key:1,class:"last-updated"},Yt={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Xt={class:"pager"},Qt=["innerHTML"],Zt=["innerHTML"],xt={class:"pager"},en=["innerHTML"],tn=["innerHTML"],nn=b({__name:"VPDocFooter",setup(o){const{theme:e,page:t,frontmatter:s}=L(),n=Dt(),r=Ft(),l=P(()=>e.value.editLink&&s.value.editLink!==!1),v=P(()=>t.value.lastUpdated),c=P(()=>l.value||v.value||r.value.prev||r.value.next);return(h,y)=>{var m,V,S,C;return c.value?(a(),d("footer",Kt,[u(h.$slots,"doc-footer-before",{},void 0,!0),l.value||v.value?(a(),d("div",Wt,[l.value?(a(),d("div",qt,[g(O,{class:"edit-link-button",href:i(n).url,"no-icon":!0},{default:f(()=>[y[0]||(y[0]=p("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),j(" "+N(i(n).text),1)]),_:1},8,["href"])])):_("",!0),v.value?(a(),d("div",Jt,[g(zt)])):_("",!0)])):_("",!0),(m=i(r).prev)!=null&&m.link||(V=i(r).next)!=null&&V.link?(a(),d("nav",Yt,[y[1]||(y[1]=p("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),p("div",Xt,[(S=i(r).prev)!=null&&S.link?(a(),k(O,{key:0,class:"pager-link prev",href:i(r).prev.link},{default:f(()=>{var A;return[p("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.prev)||"Previous page"},null,8,Qt),p("span",{class:"title",innerHTML:i(r).prev.text},null,8,Zt)]}),_:1},8,["href"])):_("",!0)]),p("div",xt,[(C=i(r).next)!=null&&C.link?(a(),k(O,{key:0,class:"pager-link next",href:i(r).next.link},{default:f(()=>{var A;return[p("span",{class:"desc",innerHTML:((A=i(e).docFooter)==null?void 0:A.next)||"Next page"},null,8,en),p("span",{class:"title",innerHTML:i(r).next.text},null,8,tn)]}),_:1},8,["href"])):_("",!0)])])):_("",!0)])):_("",!0)}}}),sn=$(nn,[["__scopeId","data-v-4f9813fa"]]),on={class:"container"},an={class:"aside-container"},rn={class:"aside-content"},ln={class:"content"},cn={class:"content-container"},un={class:"main"},dn=b({__name:"VPDoc",setup(o){const{theme:e}=L(),t=ee(),{hasSidebar:s,hasAside:n,leftAside:r}=R(),l=P(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,c)=>{const h=K("Content");return a(),d("div",{class:I(["VPDoc",{"has-sidebar":i(s),"has-aside":i(n)}])},[u(v.$slots,"doc-top",{},void 0,!0),p("div",on,[i(n)?(a(),d("div",{key:0,class:I(["aside",{"left-aside":i(r)}])},[c[0]||(c[0]=p("div",{class:"aside-curtain"},null,-1)),p("div",an,[p("div",rn,[g(Ot,null,{"aside-top":f(()=>[u(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[u(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[u(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):_("",!0),p("div",ln,[p("div",cn,[u(v.$slots,"doc-before",{},void 0,!0),p("main",un,[g(h,{class:I(["vp-doc",[l.value,i(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),g(sn,null,{"doc-footer-before":f(()=>[u(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(v.$slots,"doc-after",{},void 0,!0)])])]),u(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),vn=$(dn,[["__scopeId","data-v-83890dd9"]]),pn=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(o){const e=o,t=P(()=>e.href&&Te.test(e.href)),s=P(()=>e.tag||(e.href?"a":"button"));return(n,r)=>(a(),k(H(s.value),{class:I(["VPButton",[n.size,n.theme]]),href:n.href?i(_e)(n.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:f(()=>[j(N(n.text),1)]),_:1},8,["class","href","target","rel"]))}}),fn=$(pn,[["__scopeId","data-v-906d7fb4"]]),hn=["src","alt"],mn=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(o){return(e,t)=>{const s=K("VPImage",!0);return e.image?(a(),d(M,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),d("img",G({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:i(ve)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,hn)):(a(),d(M,{key:1},[g(s,G({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),g(s,G({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):_("",!0)}}}),Q=$(mn,[["__scopeId","data-v-35a7d0b8"]]),_n={class:"container"},bn={class:"main"},kn={key:0,class:"name"},gn=["innerHTML"],$n=["innerHTML"],yn=["innerHTML"],Pn={key:0,class:"actions"},Vn={key:0,class:"image"},Sn={class:"image-container"},Ln=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(o){const e=q("hero-image-slot-exists");return(t,s)=>(a(),d("div",{class:I(["VPHero",{"has-image":t.image||i(e)}])},[p("div",_n,[p("div",bn,[u(t.$slots,"home-hero-info-before",{},void 0,!0),u(t.$slots,"home-hero-info",{},()=>[t.name?(a(),d("h1",kn,[p("span",{innerHTML:t.name,class:"clip"},null,8,gn)])):_("",!0),t.text?(a(),d("p",{key:1,innerHTML:t.text,class:"text"},null,8,$n)):_("",!0),t.tagline?(a(),d("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,yn)):_("",!0)],!0),u(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),d("div",Pn,[(a(!0),d(M,null,E(t.actions,n=>(a(),d("div",{key:n.link,class:"action"},[g(fn,{tag:"a",size:"medium",theme:n.theme,text:n.text,href:n.link,target:n.target,rel:n.rel},null,8,["theme","text","href","target","rel"])]))),128))])):_("",!0),u(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||i(e)?(a(),d("div",Vn,[p("div",Sn,[s[0]||(s[0]=p("div",{class:"image-bg"},null,-1)),u(t.$slots,"home-hero-image",{},()=>[t.image?(a(),k(Q,{key:0,class:"image-src",image:t.image},null,8,["image"])):_("",!0)],!0)])])):_("",!0)])],2))}}),Tn=$(Ln,[["__scopeId","data-v-955009fc"]]),wn=b({__name:"VPHomeHero",setup(o){const{frontmatter:e}=L();return(t,s)=>i(e).hero?(a(),k(Tn,{key:0,class:"VPHomeHero",name:i(e).hero.name,text:i(e).hero.text,tagline:i(e).hero.tagline,image:i(e).hero.image,actions:i(e).hero.actions},{"home-hero-info-before":f(()=>[u(t.$slots,"home-hero-info-before")]),"home-hero-info":f(()=>[u(t.$slots,"home-hero-info")]),"home-hero-info-after":f(()=>[u(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":f(()=>[u(t.$slots,"home-hero-actions-after")]),"home-hero-image":f(()=>[u(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):_("",!0)}}),Nn={class:"box"},In={key:0,class:"icon"},Mn=["innerHTML"],Cn=["innerHTML"],An=["innerHTML"],En={key:4,class:"link-text"},Bn={class:"link-text-value"},Hn=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(o){return(e,t)=>(a(),k(O,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:f(()=>[p("article",Nn,[typeof e.icon=="object"&&e.icon.wrap?(a(),d("div",In,[g(Q,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),k(Q,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),d("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Mn)):_("",!0),p("h2",{class:"title",innerHTML:e.title},null,8,Cn),e.details?(a(),d("p",{key:3,class:"details",innerHTML:e.details},null,8,An)):_("",!0),e.linkText?(a(),d("div",En,[p("p",Bn,[j(N(e.linkText)+" ",1),t[0]||(t[0]=p("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):_("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),On=$(Hn,[["__scopeId","data-v-f5e9645b"]]),Dn={key:0,class:"VPFeatures"},Fn={class:"container"},Rn={class:"items"},Un=b({__name:"VPFeatures",props:{features:{}},setup(o){const e=o,t=P(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,n)=>s.features?(a(),d("div",Dn,[p("div",Fn,[p("div",Rn,[(a(!0),d(M,null,E(s.features,r=>(a(),d("div",{key:r.title,class:I(["item",[t.value]])},[g(On,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):_("",!0)}}),Gn=$(Un,[["__scopeId","data-v-d0a190d7"]]),jn=b({__name:"VPHomeFeatures",setup(o){const{frontmatter:e}=L();return(t,s)=>i(e).features?(a(),k(Gn,{key:0,class:"VPHomeFeatures",features:i(e).features},null,8,["features"])):_("",!0)}}),zn=b({__name:"VPHomeContent",setup(o){const{width:e}=qe({initialWidth:0,includeScrollbar:!1});return(t,s)=>(a(),d("div",{class:"vp-doc container",style:we(i(e)?{"--vp-offset":`calc(50% - ${i(e)/2}px)`}:{})},[u(t.$slots,"default",{},void 0,!0)],4))}}),Kn=$(zn,[["__scopeId","data-v-7a48a447"]]),Wn={class:"VPHome"},qn=b({__name:"VPHome",setup(o){const{frontmatter:e}=L();return(t,s)=>{const n=K("Content");return a(),d("div",Wn,[u(t.$slots,"home-hero-before",{},void 0,!0),g(wn,null,{"home-hero-info-before":f(()=>[u(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(t.$slots,"home-hero-after",{},void 0,!0),u(t.$slots,"home-features-before",{},void 0,!0),g(jn),u(t.$slots,"home-features-after",{},void 0,!0),i(e).markdownStyles!==!1?(a(),k(Kn,{key:0},{default:f(()=>[g(n)]),_:1})):(a(),k(n,{key:1}))])}}}),Jn=$(qn,[["__scopeId","data-v-cbb6ec48"]]),Yn={},Xn={class:"VPPage"};function Qn(o,e){const t=K("Content");return a(),d("div",Xn,[u(o.$slots,"page-top"),g(t),u(o.$slots,"page-bottom")])}const Zn=$(Yn,[["render",Qn]]),xn=b({__name:"VPContent",setup(o){const{page:e,frontmatter:t}=L(),{hasSidebar:s}=R();return(n,r)=>(a(),d("div",{class:I(["VPContent",{"has-sidebar":i(s),"is-home":i(t).layout==="home"}]),id:"VPContent"},[i(e).isNotFound?u(n.$slots,"not-found",{key:0},()=>[g(mt)],!0):i(t).layout==="page"?(a(),k(Zn,{key:1},{"page-top":f(()=>[u(n.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[u(n.$slots,"page-bottom",{},void 0,!0)]),_:3})):i(t).layout==="home"?(a(),k(Jn,{key:2},{"home-hero-before":f(()=>[u(n.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[u(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(n.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[u(n.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[u(n.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[u(n.$slots,"home-features-after",{},void 0,!0)]),_:3})):i(t).layout&&i(t).layout!=="doc"?(a(),k(H(i(t).layout),{key:3})):(a(),k(vn,{key:4},{"doc-top":f(()=>[u(n.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[u(n.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":f(()=>[u(n.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[u(n.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[u(n.$slots,"doc-after",{},void 0,!0)]),"aside-top":f(()=>[u(n.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":f(()=>[u(n.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(n.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(n.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(n.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":f(()=>[u(n.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),es=$(xn,[["__scopeId","data-v-91765379"]]),ts={class:"container"},ns=["innerHTML"],ss=["innerHTML"],os=b({__name:"VPFooter",setup(o){const{theme:e,frontmatter:t}=L(),{hasSidebar:s}=R();return(n,r)=>i(e).footer&&i(t).footer!==!1?(a(),d("footer",{key:0,class:I(["VPFooter",{"has-sidebar":i(s)}])},[p("div",ts,[i(e).footer.message?(a(),d("p",{key:0,class:"message",innerHTML:i(e).footer.message},null,8,ns)):_("",!0),i(e).footer.copyright?(a(),d("p",{key:1,class:"copyright",innerHTML:i(e).footer.copyright},null,8,ss)):_("",!0)])],2)):_("",!0)}}),as=$(os,[["__scopeId","data-v-c970a860"]]);function rs(){const{theme:o,frontmatter:e}=L(),t=Le([]),s=P(()=>t.value.length>0);return x(()=>{t.value=be(e.value.outline??o.value.outline)}),{headers:t,hasLocalNav:s}}const is={class:"menu-text"},ls={class:"header"},cs={class:"outline"},us=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(o){const e=o,{theme:t}=L(),s=T(!1),n=T(0),r=T(),l=T();function v(m){var V;(V=r.value)!=null&&V.contains(m.target)||(s.value=!1)}D(s,m=>{if(m){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),ie("Escape",()=>{s.value=!1}),x(()=>{s.value=!1});function c(){s.value=!s.value,n.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(m){m.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),he(()=>{s.value=!1}))}function y(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(m,V)=>(a(),d("div",{class:"VPLocalNavOutlineDropdown",style:we({"--vp-vh":n.value+"px"}),ref_key:"main",ref:r},[m.headers.length>0?(a(),d("button",{key:0,onClick:c,class:I({open:s.value})},[p("span",is,N(i(Ae)(i(t))),1),V[0]||(V[0]=p("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(a(),d("button",{key:1,onClick:y},N(i(t).returnToTopLabel||"Return to top"),1)),g(de,{name:"flyout"},{default:f(()=>[s.value?(a(),d("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[p("div",ls,[p("a",{class:"top-link",href:"#",onClick:y},N(i(t).returnToTopLabel||"Return to top"),1)]),p("div",cs,[g(Ee,{headers:m.headers},null,8,["headers"])])],512)):_("",!0)]),_:1})],4))}}),ds=$(us,[["__scopeId","data-v-bc9dc845"]]),vs={class:"container"},ps=["aria-expanded"],fs={class:"menu-text"},hs=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(o){const{theme:e,frontmatter:t}=L(),{hasSidebar:s}=R(),{headers:n}=rs(),{y:r}=Ne(),l=T(0);F(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),x(()=>{n.value=be(t.value.outline??e.value.outline)});const v=P(()=>n.value.length===0),c=P(()=>v.value&&!s.value),h=P(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:v.value,fixed:c.value}));return(y,m)=>i(t).layout!=="home"&&(!c.value||i(r)>=l.value)?(a(),d("div",{key:0,class:I(h.value)},[p("div",vs,[i(s)?(a(),d("button",{key:0,class:"menu","aria-expanded":y.open,"aria-controls":"VPSidebarNav",onClick:m[0]||(m[0]=V=>y.$emit("open-menu"))},[m[1]||(m[1]=p("span",{class:"vpi-align-left menu-icon"},null,-1)),p("span",fs,N(i(e).sidebarMenuLabel||"Menu"),1)],8,ps)):_("",!0),g(ds,{headers:i(n),navHeight:l.value},null,8,["headers","navHeight"])])],2)):_("",!0)}}),ms=$(hs,[["__scopeId","data-v-070ab83d"]]);function _s(){const o=T(!1);function e(){o.value=!0,window.addEventListener("resize",n)}function t(){o.value=!1,window.removeEventListener("resize",n)}function s(){o.value?t():e()}function n(){window.outerWidth>=768&&t()}const r=ee();return D(()=>r.path,t),{isScreenOpen:o,openScreen:e,closeScreen:t,toggleScreen:s}}const bs={},ks={class:"VPSwitch",type:"button",role:"switch"},gs={class:"check"},$s={key:0,class:"icon"};function ys(o,e){return a(),d("button",ks,[p("span",gs,[o.$slots.default?(a(),d("span",$s,[u(o.$slots,"default",{},void 0,!0)])):_("",!0)])])}const Ps=$(bs,[["render",ys],["__scopeId","data-v-4a1c76db"]]),Vs=b({__name:"VPSwitchAppearance",setup(o){const{isDark:e,theme:t}=L(),s=q("toggle-appearance",()=>{e.value=!e.value}),n=T("");return fe(()=>{n.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(r,l)=>(a(),k(Ps,{title:n.value,class:"VPSwitchAppearance","aria-checked":i(e),onClick:i(s)},{default:f(()=>l[0]||(l[0]=[p("span",{class:"vpi-sun sun"},null,-1),p("span",{class:"vpi-moon moon"},null,-1)])),_:1},8,["title","aria-checked","onClick"]))}}),ke=$(Vs,[["__scopeId","data-v-e40a8bb6"]]),Ss={key:0,class:"VPNavBarAppearance"},Ls=b({__name:"VPNavBarAppearance",setup(o){const{site:e}=L();return(t,s)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),d("div",Ss,[g(ke)])):_("",!0)}}),Ts=$(Ls,[["__scopeId","data-v-af096f4a"]]),ge=T();let Be=!1,ae=0;function ws(o){const e=T(!1);if(te){!Be&&Ns(),ae++;const t=D(ge,s=>{var n,r,l;s===o.el.value||(n=o.el.value)!=null&&n.contains(s)?(e.value=!0,(r=o.onFocus)==null||r.call(o)):(e.value=!1,(l=o.onBlur)==null||l.call(o))});pe(()=>{t(),ae--,ae||Is()})}return Je(e)}function Ns(){document.addEventListener("focusin",He),Be=!0,ge.value=document.activeElement}function Is(){document.removeEventListener("focusin",He)}function He(){ge.value=document.activeElement}const Ms={class:"VPMenuLink"},Cs=["innerHTML"],As=b({__name:"VPMenuLink",props:{item:{}},setup(o){const{page:e}=L();return(t,s)=>(a(),d("div",Ms,[g(O,{class:I({active:i(z)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon},{default:f(()=>[p("span",{innerHTML:t.item.text},null,8,Cs)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),ne=$(As,[["__scopeId","data-v-acbfed09"]]),Es={class:"VPMenuGroup"},Bs={key:0,class:"title"},Hs=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),d("div",Es,[e.text?(a(),d("p",Bs,N(e.text),1)):_("",!0),(a(!0),d(M,null,E(e.items,s=>(a(),d(M,null,["link"in s?(a(),k(ne,{key:0,item:s},null,8,["item"])):_("",!0)],64))),256))]))}}),Os=$(Hs,[["__scopeId","data-v-48c802d0"]]),Ds={class:"VPMenu"},Fs={key:0,class:"items"},Rs=b({__name:"VPMenu",props:{items:{}},setup(o){return(e,t)=>(a(),d("div",Ds,[e.items?(a(),d("div",Fs,[(a(!0),d(M,null,E(e.items,s=>(a(),d(M,{key:JSON.stringify(s)},["link"in s?(a(),k(ne,{key:0,item:s},null,8,["item"])):"component"in s?(a(),k(H(s.component),G({key:1,ref_for:!0},s.props),null,16)):(a(),k(Os,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):_("",!0),u(e.$slots,"default",{},void 0,!0)]))}}),Us=$(Rs,[["__scopeId","data-v-7dd3104a"]]),Gs=["aria-expanded","aria-label"],js={key:0,class:"text"},zs=["innerHTML"],Ks={key:1,class:"vpi-more-horizontal icon"},Ws={class:"menu"},qs=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(o){const e=T(!1),t=T();ws({el:t,onBlur:s});function s(){e.value=!1}return(n,r)=>(a(),d("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=l=>e.value=!0),onMouseleave:r[2]||(r[2]=l=>e.value=!1)},[p("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":n.label,onClick:r[0]||(r[0]=l=>e.value=!e.value)},[n.button||n.icon?(a(),d("span",js,[n.icon?(a(),d("span",{key:0,class:I([n.icon,"option-icon"])},null,2)):_("",!0),n.button?(a(),d("span",{key:1,innerHTML:n.button},null,8,zs)):_("",!0),r[3]||(r[3]=p("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(a(),d("span",Ks))],8,Gs),p("div",Ws,[g(Us,{items:n.items},{default:f(()=>[u(n.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),$e=$(qs,[["__scopeId","data-v-04f5c5e9"]]),Js=["href","aria-label","innerHTML"],Ys=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(o){const e=o,t=T();F(async()=>{var r;await he();const n=(r=t.value)==null?void 0:r.children[0];n instanceof HTMLElement&&n.className.startsWith("vpi-social-")&&(getComputedStyle(n).maskImage||getComputedStyle(n).webkitMaskImage)==="none"&&n.style.setProperty("--icon",`url('https://api.iconify.design/simple-icons/${e.icon}.svg')`)});const s=P(()=>typeof e.icon=="object"?e.icon.svg:``);return(n,r)=>(a(),d("a",{ref_key:"el",ref:t,class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:s.value},null,8,Js))}}),Xs=$(Ys,[["__scopeId","data-v-d26d30cb"]]),Qs={class:"VPSocialLinks"},Zs=b({__name:"VPSocialLinks",props:{links:{}},setup(o){return(e,t)=>(a(),d("div",Qs,[(a(!0),d(M,null,E(e.links,({link:s,icon:n,ariaLabel:r})=>(a(),k(Xs,{key:s,icon:n,link:s,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),ye=$(Zs,[["__scopeId","data-v-ee7a9424"]]),xs={key:0,class:"group translations"},eo={class:"trans-title"},to={key:1,class:"group"},no={class:"item appearance"},so={class:"label"},oo={class:"appearance-action"},ao={key:2,class:"group"},ro={class:"item social-links"},io=b({__name:"VPNavBarExtra",setup(o){const{site:e,theme:t}=L(),{localeLinks:s,currentLang:n}=Y({correspondingLink:!0}),r=P(()=>s.value.length&&n.value.label||e.value.appearance||t.value.socialLinks);return(l,v)=>r.value?(a(),k($e,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:f(()=>[i(s).length&&i(n).label?(a(),d("div",xs,[p("p",eo,N(i(n).label),1),(a(!0),d(M,null,E(i(s),c=>(a(),k(ne,{key:c.link,item:c},null,8,["item"]))),128))])):_("",!0),i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),d("div",to,[p("div",no,[p("p",so,N(i(t).darkModeSwitchLabel||"Appearance"),1),p("div",oo,[g(ke)])])])):_("",!0),i(t).socialLinks?(a(),d("div",ao,[p("div",ro,[g(ye,{class:"social-links-list",links:i(t).socialLinks},null,8,["links"])])])):_("",!0)]),_:1})):_("",!0)}}),lo=$(io,[["__scopeId","data-v-925effce"]]),co=["aria-expanded"],uo=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(o){return(e,t)=>(a(),d("button",{type:"button",class:I(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},t[1]||(t[1]=[p("span",{class:"container"},[p("span",{class:"top"}),p("span",{class:"middle"}),p("span",{class:"bottom"})],-1)]),10,co))}}),vo=$(uo,[["__scopeId","data-v-5dea55bf"]]),po=["innerHTML"],fo=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(o){const{page:e}=L();return(t,s)=>(a(),k(O,{class:I({VPNavBarMenuLink:!0,active:i(z)(i(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,tabindex:"0"},{default:f(()=>[p("span",{innerHTML:t.item.text},null,8,po)]),_:1},8,["class","href","target","rel","no-icon"]))}}),ho=$(fo,[["__scopeId","data-v-956ec74c"]]),Oe=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(o){const e=o,{page:t}=L(),s=r=>"component"in r?!1:"link"in r?z(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(s),n=P(()=>s(e.item));return(r,l)=>(a(),k($e,{class:I({VPNavBarMenuGroup:!0,active:i(z)(i(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||n.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),mo={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},_o=b({__name:"VPNavBarMenu",setup(o){const{theme:e}=L();return(t,s)=>i(e).nav?(a(),d("nav",mo,[s[0]||(s[0]=p("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(a(!0),d(M,null,E(i(e).nav,n=>(a(),d(M,{key:JSON.stringify(n)},["link"in n?(a(),k(ho,{key:0,item:n},null,8,["item"])):"component"in n?(a(),k(H(n.component),G({key:1,ref_for:!0},n.props),null,16)):(a(),k(Oe,{key:2,item:n},null,8,["item"]))],64))),128))])):_("",!0)}}),bo=$(_o,[["__scopeId","data-v-e6d46098"]]);function ko(o){const{localeIndex:e,theme:t}=L();function s(n){var C,A,w;const r=n.split("."),l=(C=t.value.search)==null?void 0:C.options,v=l&&typeof l=="object",c=v&&((w=(A=l.locales)==null?void 0:A[e.value])==null?void 0:w.translations)||null,h=v&&l.translations||null;let y=c,m=h,V=o;const S=r.pop();for(const B of r){let U=null;const W=V==null?void 0:V[B];W&&(U=V=W);const se=m==null?void 0:m[B];se&&(U=m=se);const oe=y==null?void 0:y[B];oe&&(U=y=oe),W||(V=U),se||(m=U),oe||(y=U)}return(y==null?void 0:y[S])??(m==null?void 0:m[S])??(V==null?void 0:V[S])??""}return s}const go=["aria-label"],$o={class:"DocSearch-Button-Container"},yo={class:"DocSearch-Button-Placeholder"},Pe=b({__name:"VPNavBarSearchButton",setup(o){const t=ko({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,n)=>(a(),d("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":i(t)("button.buttonAriaLabel")},[p("span",$o,[n[0]||(n[0]=p("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),p("span",yo,N(i(t)("button.buttonText")),1)]),n[1]||(n[1]=p("span",{class:"DocSearch-Button-Keys"},[p("kbd",{class:"DocSearch-Button-Key"}),p("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,go))}}),Po={class:"VPNavBarSearch"},Vo={id:"local-search"},So={key:1,id:"docsearch"},Lo=b({__name:"VPNavBarSearch",setup(o){const e=Ye(()=>Xe(()=>import("./VPLocalSearchBox.805L3Tdu.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:s}=L(),n=T(!1),r=T(!1);F(()=>{});function l(){n.value||(n.value=!0,setTimeout(v,16))}function v(){const m=new Event("keydown");m.key="k",m.metaKey=!0,window.dispatchEvent(m),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function c(m){const V=m.target,S=V.tagName;return V.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const h=T(!1);ie("k",m=>{(m.ctrlKey||m.metaKey)&&(m.preventDefault(),h.value=!0)}),ie("/",m=>{c(m)||(m.preventDefault(),h.value=!0)});const y="local";return(m,V)=>{var S;return a(),d("div",Po,[i(y)==="local"?(a(),d(M,{key:0},[h.value?(a(),k(i(e),{key:0,onClose:V[0]||(V[0]=C=>h.value=!1)})):_("",!0),p("div",Vo,[g(Pe,{onClick:V[1]||(V[1]=C=>h.value=!0)})])],64)):i(y)==="algolia"?(a(),d(M,{key:1},[n.value?(a(),k(i(t),{key:0,algolia:((S=i(s).search)==null?void 0:S.options)??i(s).algolia,onVnodeBeforeMount:V[2]||(V[2]=C=>r.value=!0)},null,8,["algolia"])):_("",!0),r.value?_("",!0):(a(),d("div",So,[g(Pe,{onClick:l})]))],64)):_("",!0)])}}}),To=b({__name:"VPNavBarSocialLinks",setup(o){const{theme:e}=L();return(t,s)=>i(e).socialLinks?(a(),k(ye,{key:0,class:"VPNavBarSocialLinks",links:i(e).socialLinks},null,8,["links"])):_("",!0)}}),wo=$(To,[["__scopeId","data-v-164c457f"]]),No=["href","rel","target"],Io=["innerHTML"],Mo={key:2},Co=b({__name:"VPNavBarTitle",setup(o){const{site:e,theme:t}=L(),{hasSidebar:s}=R(),{currentLang:n}=Y(),r=P(()=>{var c;return typeof t.value.logoLink=="string"?t.value.logoLink:(c=t.value.logoLink)==null?void 0:c.link}),l=P(()=>{var c;return typeof t.value.logoLink=="string"||(c=t.value.logoLink)==null?void 0:c.rel}),v=P(()=>{var c;return typeof t.value.logoLink=="string"||(c=t.value.logoLink)==null?void 0:c.target});return(c,h)=>(a(),d("div",{class:I(["VPNavBarTitle",{"has-sidebar":i(s)}])},[p("a",{class:"title",href:r.value??i(_e)(i(n).link),rel:l.value,target:v.value},[u(c.$slots,"nav-bar-title-before",{},void 0,!0),i(t).logo?(a(),k(Q,{key:0,class:"logo",image:i(t).logo},null,8,["image"])):_("",!0),i(t).siteTitle?(a(),d("span",{key:1,innerHTML:i(t).siteTitle},null,8,Io)):i(t).siteTitle===void 0?(a(),d("span",Mo,N(i(e).title),1)):_("",!0),u(c.$slots,"nav-bar-title-after",{},void 0,!0)],8,No)],2))}}),Ao=$(Co,[["__scopeId","data-v-0f4f798b"]]),Eo={class:"items"},Bo={class:"title"},Ho=b({__name:"VPNavBarTranslations",setup(o){const{theme:e}=L(),{localeLinks:t,currentLang:s}=Y({correspondingLink:!0});return(n,r)=>i(t).length&&i(s).label?(a(),k($e,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:i(e).langMenuLabel||"Change language"},{default:f(()=>[p("div",Eo,[p("p",Bo,N(i(s).label),1),(a(!0),d(M,null,E(i(t),l=>(a(),k(ne,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):_("",!0)}}),Oo=$(Ho,[["__scopeId","data-v-c80d9ad0"]]),Do={class:"wrapper"},Fo={class:"container"},Ro={class:"title"},Uo={class:"content"},Go={class:"content-body"},jo=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(o){const e=o,{y:t}=Ne(),{hasSidebar:s}=R(),{frontmatter:n}=L(),r=T({});return fe(()=>{r.value={"has-sidebar":s.value,home:n.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(l,v)=>(a(),d("div",{class:I(["VPNavBar",r.value])},[p("div",Do,[p("div",Fo,[p("div",Ro,[g(Ao,null,{"nav-bar-title-before":f(()=>[u(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),p("div",Uo,[p("div",Go,[u(l.$slots,"nav-bar-content-before",{},void 0,!0),g(Lo,{class:"search"}),g(bo,{class:"menu"}),g(Oo,{class:"translations"}),g(Ts,{class:"appearance"}),g(wo,{class:"social-links"}),g(lo,{class:"extra"}),u(l.$slots,"nav-bar-content-after",{},void 0,!0),g(vo,{class:"hamburger",active:l.isScreenOpen,onClick:v[0]||(v[0]=c=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),v[1]||(v[1]=p("div",{class:"divider"},[p("div",{class:"divider-line"})],-1))],2))}}),zo=$(jo,[["__scopeId","data-v-822684d1"]]),Ko={key:0,class:"VPNavScreenAppearance"},Wo={class:"text"},qo=b({__name:"VPNavScreenAppearance",setup(o){const{site:e,theme:t}=L();return(s,n)=>i(e).appearance&&i(e).appearance!=="force-dark"&&i(e).appearance!=="force-auto"?(a(),d("div",Ko,[p("p",Wo,N(i(t).darkModeSwitchLabel||"Appearance"),1),g(ke)])):_("",!0)}}),Jo=$(qo,[["__scopeId","data-v-ffb44008"]]),Yo=["innerHTML"],Xo=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(o){const e=q("close-screen");return(t,s)=>(a(),k(O,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:f(()=>[p("span",{innerHTML:t.item.text},null,8,Yo)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),Qo=$(Xo,[["__scopeId","data-v-735512b8"]]),Zo=["innerHTML"],xo=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(o){const e=q("close-screen");return(t,s)=>(a(),k(O,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,"no-icon":t.item.noIcon,onClick:i(e)},{default:f(()=>[p("span",{innerHTML:t.item.text},null,8,Zo)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),De=$(xo,[["__scopeId","data-v-372ae7c0"]]),ea={class:"VPNavScreenMenuGroupSection"},ta={key:0,class:"title"},na=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(o){return(e,t)=>(a(),d("div",ea,[e.text?(a(),d("p",ta,N(e.text),1)):_("",!0),(a(!0),d(M,null,E(e.items,s=>(a(),k(De,{key:s.text,item:s},null,8,["item"]))),128))]))}}),sa=$(na,[["__scopeId","data-v-4b8941ac"]]),oa=["aria-controls","aria-expanded"],aa=["innerHTML"],ra=["id"],ia={key:0,class:"item"},la={key:1,class:"item"},ca={key:2,class:"group"},ua=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(o){const e=o,t=T(!1),s=P(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function n(){t.value=!t.value}return(r,l)=>(a(),d("div",{class:I(["VPNavScreenMenuGroup",{open:t.value}])},[p("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:n},[p("span",{class:"button-text",innerHTML:r.text},null,8,aa),l[0]||(l[0]=p("span",{class:"vpi-plus button-icon"},null,-1))],8,oa),p("div",{id:s.value,class:"items"},[(a(!0),d(M,null,E(r.items,v=>(a(),d(M,{key:JSON.stringify(v)},["link"in v?(a(),d("div",ia,[g(De,{item:v},null,8,["item"])])):"component"in v?(a(),d("div",la,[(a(),k(H(v.component),G({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(a(),d("div",ca,[g(sa,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,ra)],2))}}),Fe=$(ua,[["__scopeId","data-v-875057a5"]]),da={key:0,class:"VPNavScreenMenu"},va=b({__name:"VPNavScreenMenu",setup(o){const{theme:e}=L();return(t,s)=>i(e).nav?(a(),d("nav",da,[(a(!0),d(M,null,E(i(e).nav,n=>(a(),d(M,{key:JSON.stringify(n)},["link"in n?(a(),k(Qo,{key:0,item:n},null,8,["item"])):"component"in n?(a(),k(H(n.component),G({key:1,ref_for:!0},n.props,{"screen-menu":""}),null,16)):(a(),k(Fe,{key:2,text:n.text||"",items:n.items},null,8,["text","items"]))],64))),128))])):_("",!0)}}),pa=b({__name:"VPNavScreenSocialLinks",setup(o){const{theme:e}=L();return(t,s)=>i(e).socialLinks?(a(),k(ye,{key:0,class:"VPNavScreenSocialLinks",links:i(e).socialLinks},null,8,["links"])):_("",!0)}}),fa={class:"list"},ha=b({__name:"VPNavScreenTranslations",setup(o){const{localeLinks:e,currentLang:t}=Y({correspondingLink:!0}),s=T(!1);function n(){s.value=!s.value}return(r,l)=>i(e).length&&i(t).label?(a(),d("div",{key:0,class:I(["VPNavScreenTranslations",{open:s.value}])},[p("button",{class:"title",onClick:n},[l[0]||(l[0]=p("span",{class:"vpi-languages icon lang"},null,-1)),j(" "+N(i(t).label)+" ",1),l[1]||(l[1]=p("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),p("ul",fa,[(a(!0),d(M,null,E(i(e),v=>(a(),d("li",{key:v.link,class:"item"},[g(O,{class:"link",href:v.link},{default:f(()=>[j(N(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):_("",!0)}}),ma=$(ha,[["__scopeId","data-v-362991c2"]]),_a={class:"container"},ba=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(o){const e=T(null),t=Ie(te?document.body:null);return(s,n)=>(a(),k(de,{name:"fade",onEnter:n[0]||(n[0]=r=>t.value=!0),onAfterLeave:n[1]||(n[1]=r=>t.value=!1)},{default:f(()=>[s.open?(a(),d("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[p("div",_a,[u(s.$slots,"nav-screen-content-before",{},void 0,!0),g(va,{class:"menu"}),g(ma,{class:"translations"}),g(Jo,{class:"appearance"}),g(pa,{class:"social-links"}),u(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):_("",!0)]),_:3}))}}),ka=$(ba,[["__scopeId","data-v-833aabba"]]),ga={key:0,class:"VPNav"},$a=b({__name:"VPNav",setup(o){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=_s(),{frontmatter:n}=L(),r=P(()=>n.value.navbar!==!1);return me("close-screen",t),Z(()=>{te&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(l,v)=>r.value?(a(),d("header",ga,[g(zo,{"is-screen-open":i(e),onToggleScreen:i(s)},{"nav-bar-title-before":f(()=>[u(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[u(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[u(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),g(ka,{open:i(e)},{"nav-screen-content-before":f(()=>[u(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[u(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):_("",!0)}}),ya=$($a,[["__scopeId","data-v-f1e365da"]]),Pa=["role","tabindex"],Va={key:1,class:"items"},Sa=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(o){const e=o,{collapsed:t,collapsible:s,isLink:n,isActiveLink:r,hasActiveLink:l,hasChildren:v,toggle:c}=gt(P(()=>e.item)),h=P(()=>v.value?"section":"div"),y=P(()=>n.value?"a":"div"),m=P(()=>v.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),V=P(()=>n.value?void 0:"button"),S=P(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":n.value},{"is-active":r.value},{"has-active":l.value}]);function C(w){"key"in w&&w.key!=="Enter"||!e.item.link&&c()}function A(){e.item.link&&c()}return(w,B)=>{const U=K("VPSidebarItem",!0);return a(),k(H(h.value),{class:I(["VPSidebarItem",S.value])},{default:f(()=>[w.item.text?(a(),d("div",G({key:0,class:"item",role:V.value},Qe(w.item.items?{click:C,keydown:C}:{},!0),{tabindex:w.item.items&&0}),[B[1]||(B[1]=p("div",{class:"indicator"},null,-1)),w.item.link?(a(),k(O,{key:0,tag:y.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:f(()=>[(a(),k(H(m.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),k(H(m.value),{key:1,class:"text",innerHTML:w.item.text},null,8,["innerHTML"])),w.item.collapsed!=null&&w.item.items&&w.item.items.length?(a(),d("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:A,onKeydown:Ze(A,["enter"]),tabindex:"0"},B[0]||(B[0]=[p("span",{class:"vpi-chevron-right caret-icon"},null,-1)]),32)):_("",!0)],16,Pa)):_("",!0),w.item.items&&w.item.items.length?(a(),d("div",Va,[w.depth<5?(a(!0),d(M,{key:0},E(w.item.items,W=>(a(),k(U,{key:W.text,item:W,depth:w.depth+1},null,8,["item","depth"]))),128)):_("",!0)])):_("",!0)]),_:1},8,["class"])}}}),La=$(Sa,[["__scopeId","data-v-196b2e5f"]]),Ta=b({__name:"VPSidebarGroup",props:{items:{}},setup(o){const e=T(!0);let t=null;return F(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),xe(()=>{t!=null&&(clearTimeout(t),t=null)}),(s,n)=>(a(!0),d(M,null,E(s.items,r=>(a(),d("div",{key:r.text,class:I(["group",{"no-transition":e.value}])},[g(La,{item:r,depth:0},null,8,["item"])],2))),128))}}),wa=$(Ta,[["__scopeId","data-v-9e426adc"]]),Na={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Ia=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(o){const{sidebarGroups:e,hasSidebar:t}=R(),s=o,n=T(null),r=Ie(te?document.body:null);D([s,n],()=>{var v;s.open?(r.value=!0,(v=n.value)==null||v.focus()):r.value=!1},{immediate:!0,flush:"post"});const l=T(0);return D(e,()=>{l.value+=1},{deep:!0}),(v,c)=>i(t)?(a(),d("aside",{key:0,class:I(["VPSidebar",{open:v.open}]),ref_key:"navEl",ref:n,onClick:c[0]||(c[0]=et(()=>{},["stop"]))},[c[2]||(c[2]=p("div",{class:"curtain"},null,-1)),p("nav",Na,[c[1]||(c[1]=p("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),u(v.$slots,"sidebar-nav-before",{},void 0,!0),(a(),k(wa,{items:i(e),key:l.value},null,8,["items"])),u(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):_("",!0)}}),Ma=$(Ia,[["__scopeId","data-v-18756405"]]),Ca=b({__name:"VPSkipLink",setup(o){const e=ee(),t=T();D(()=>e.path,()=>t.value.focus());function s({target:n}){const r=document.getElementById(decodeURIComponent(n.hash).slice(1));if(r){const l=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",l)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",l),r.focus(),window.scrollTo(0,0)}}return(n,r)=>(a(),d(M,null,[p("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),p("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),Aa=$(Ca,[["__scopeId","data-v-c3508ec8"]]),Ea=b({__name:"Layout",setup(o){const{isOpen:e,open:t,close:s}=R(),n=ee();D(()=>n.path,s),kt(e,s);const{frontmatter:r}=L(),l=Me(),v=P(()=>!!l["home-hero-image"]);return me("hero-image-slot-exists",v),(c,h)=>{const y=K("Content");return i(r).layout!==!1?(a(),d("div",{key:0,class:I(["Layout",i(r).pageClass])},[u(c.$slots,"layout-top",{},void 0,!0),g(Aa),g(rt,{class:"backdrop",show:i(e),onClick:i(s)},null,8,["show","onClick"]),g(ya,null,{"nav-bar-title-before":f(()=>[u(c.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":f(()=>[u(c.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":f(()=>[u(c.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":f(()=>[u(c.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":f(()=>[u(c.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":f(()=>[u(c.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),g(ms,{open:i(e),onOpenMenu:i(t)},null,8,["open","onOpenMenu"]),g(Ma,{open:i(e)},{"sidebar-nav-before":f(()=>[u(c.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":f(()=>[u(c.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),g(es,null,{"page-top":f(()=>[u(c.$slots,"page-top",{},void 0,!0)]),"page-bottom":f(()=>[u(c.$slots,"page-bottom",{},void 0,!0)]),"not-found":f(()=>[u(c.$slots,"not-found",{},void 0,!0)]),"home-hero-before":f(()=>[u(c.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":f(()=>[u(c.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":f(()=>[u(c.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":f(()=>[u(c.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":f(()=>[u(c.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":f(()=>[u(c.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":f(()=>[u(c.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":f(()=>[u(c.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":f(()=>[u(c.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":f(()=>[u(c.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":f(()=>[u(c.$slots,"doc-before",{},void 0,!0)]),"doc-after":f(()=>[u(c.$slots,"doc-after",{},void 0,!0)]),"doc-top":f(()=>[u(c.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":f(()=>[u(c.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":f(()=>[u(c.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":f(()=>[u(c.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":f(()=>[u(c.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":f(()=>[u(c.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":f(()=>[u(c.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":f(()=>[u(c.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),g(as),u(c.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),k(y,{key:1}))}}}),Ba=$(Ea,[["__scopeId","data-v-a9a9e638"]]),Ha={Layout:Ba,enhanceApp:({app:o})=>{o.component("Badge",st)}},Oa=o=>{if(typeof document>"u")return{stabilizeScrollPosition:n=>async(...r)=>n(...r)};const e=document.documentElement;return{stabilizeScrollPosition:s=>async(...n)=>{const r=s(...n),l=o.value;if(!l)return r;const v=l.offsetTop-e.scrollTop;return await he(),e.scrollTop=l.offsetTop-v,r}}},Re="vitepress:tabSharedState",J=typeof localStorage<"u"?localStorage:null,Ue="vitepress:tabsSharedState",Da=()=>{const o=J==null?void 0:J.getItem(Ue);if(o)try{return JSON.parse(o)}catch{}return{}},Fa=o=>{J&&J.setItem(Ue,JSON.stringify(o))},Ra=o=>{const e=tt({});D(()=>e.content,(t,s)=>{t&&s&&Fa(t)},{deep:!0}),o.provide(Re,e)},Ua=(o,e)=>{const t=q(Re);if(!t)throw new Error("[vitepress-plugin-tabs] TabsSharedState should be injected");F(()=>{t.content||(t.content=Da())});const s=T(),n=P({get(){var c;const l=e.value,v=o.value;if(l){const h=(c=t.content)==null?void 0:c[l];if(h&&v.includes(h))return h}else{const h=s.value;if(h)return h}return v[0]},set(l){const v=e.value;v?t.content&&(t.content[v]=l):s.value=l}});return{selected:n,select:l=>{n.value=l}}};let Ve=0;const Ga=()=>(Ve++,""+Ve);function ja(){const o=Me();return P(()=>{var s;const t=(s=o.default)==null?void 0:s.call(o);return t?t.filter(n=>typeof n.type=="object"&&"__name"in n.type&&n.type.__name==="PluginTabsTab"&&n.props).map(n=>{var r;return(r=n.props)==null?void 0:r.label}):[]})}const Ge="vitepress:tabSingleState",za=o=>{me(Ge,o)},Ka=()=>{const o=q(Ge);if(!o)throw new Error("[vitepress-plugin-tabs] TabsSingleState should be injected");return o},Wa={class:"plugin-tabs"},qa=["id","aria-selected","aria-controls","tabindex","onClick"],Ja=b({__name:"PluginTabs",props:{sharedStateKey:{}},setup(o){const e=o,t=ja(),{selected:s,select:n}=Ua(t,nt(e,"sharedStateKey")),r=T(),{stabilizeScrollPosition:l}=Oa(r),v=l(n),c=T([]),h=m=>{var C;const V=t.value.indexOf(s.value);let S;m.key==="ArrowLeft"?S=V>=1?V-1:t.value.length-1:m.key==="ArrowRight"&&(S=V(a(),d("div",Wa,[p("div",{ref_key:"tablist",ref:r,class:"plugin-tabs--tab-list",role:"tablist",onKeydown:h},[(a(!0),d(M,null,E(i(t),S=>(a(),d("button",{id:`tab-${S}-${i(y)}`,ref_for:!0,ref_key:"buttonRefs",ref:c,key:S,role:"tab",class:"plugin-tabs--tab","aria-selected":S===i(s),"aria-controls":`panel-${S}-${i(y)}`,tabindex:S===i(s)?0:-1,onClick:()=>i(v)(S)},N(S),9,qa))),128))],544),u(m.$slots,"default")]))}}),Ya=["id","aria-labelledby"],Xa=b({__name:"PluginTabsTab",props:{label:{}},setup(o){const{uid:e,selected:t}=Ka();return(s,n)=>i(t)===s.label?(a(),d("div",{key:0,id:`panel-${s.label}-${i(e)}`,class:"plugin-tabs--content",role:"tabpanel",tabindex:"0","aria-labelledby":`tab-${s.label}-${i(e)}`},[u(s.$slots,"default",{},void 0,!0)],8,Ya)):_("",!0)}}),Qa=$(Xa,[["__scopeId","data-v-9b0d03d2"]]),Za=o=>{Ra(o),o.component("PluginTabs",Ja),o.component("PluginTabsTab",Qa)},xa=b({__name:"VersionPicker",props:{screenMenu:{type:Boolean}},setup(o){const e=T([]),t=T("Versions"),s=T(!1);Se();const n=()=>typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"),r=()=>{if(typeof window>"u")return"";const{origin:c,pathname:h}=window.location;if(c.includes("github.io")){const y=h.split("/").filter(Boolean),m=y.length>0?`/${y[0]}/`:"/";return`${c}${m}`}else return c},l=()=>new Promise(c=>{if(n()){c(!1);return}const h=setInterval(()=>{window.DOC_VERSIONS&&window.DOCUMENTER_CURRENT_VERSION&&(clearInterval(h),c(!0))},100);setTimeout(()=>{clearInterval(h),c(!1)},5e3)});return F(async()=>{if(!(typeof window>"u")){try{if(n()){const c=["dev"];e.value=c.map(h=>({text:h,link:"/"})),t.value="dev"}else{const c=await l(),h=P(()=>r());if(c&&window.DOC_VERSIONS&&window.DOCUMENTER_CURRENT_VERSION)e.value=window.DOC_VERSIONS.map(y=>({text:y,link:`${h.value}/${y}/`})),t.value=window.DOCUMENTER_CURRENT_VERSION;else{const y=["dev"];e.value=y.map(m=>({text:m,link:`${h.value}/${m}/`})),t.value="dev"}}}catch(c){console.warn("Error loading versions:",c);const h=["dev"],y=P(()=>r());e.value=h.map(m=>({text:m,link:`${y.value}/${m}/`})),t.value="dev"}s.value=!0}}),(c,h)=>s.value?(a(),d(M,{key:0},[!c.screenMenu&&e.value.length>0?(a(),k(Oe,{key:0,item:{text:t.value,items:e.value},class:"VPVersionPicker"},null,8,["item"])):c.screenMenu&&e.value.length>0?(a(),k(Fe,{key:1,text:t.value,items:e.value,class:"VPVersionPicker"},null,8,["text","items"])):_("",!0)],64)):_("",!0)}}),er=$(xa,[["__scopeId","data-v-f465cb49"]]),nr={extends:Ha,enhanceApp({app:o,router:e,siteData:t}){Za(o),o.component("VersionPicker",er)}};export{nr as R,ko as c,L as u}; diff --git a/previews/PR872/assets/cljjmmh.wy-ul34S.svg b/previews/PR872/assets/cljjmmh.wy-ul34S.svg new file mode 100644 index 000000000..4e7ed3e6f --- /dev/null +++ b/previews/PR872/assets/cljjmmh.wy-ul34S.svg @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/cuda.md.CWnnNa6Y.js b/previews/PR872/assets/cuda.md.CWnnNa6Y.js new file mode 100644 index 000000000..4ba50e7d7 --- /dev/null +++ b/previews/PR872/assets/cuda.md.CWnnNa6Y.js @@ -0,0 +1,28 @@ +import{_ as i,c as a,a4 as n,o as h}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"CUDA & GPUs","description":"","frontmatter":{},"headers":[],"relativePath":"cuda.md","filePath":"cuda.md","lastUpdated":null}'),t={name:"cuda.md"};function l(k,s,p,e,r,d){return h(),a("div",null,s[0]||(s[0]=[n(`

CUDA & GPUs

Running regular julia code on GPUs is one of the most amazing things about the language. DimensionalData.jl leans into this as much as possible.

julia
using DimensionalData, CUDA
+
+# Create a Float32 array to use on the GPU
+A = rand(Float32, X(1.0:1000.0), Y(1.0:2000.0))
+
+# Move the parent data to the GPU with \`modify\` and the \`CuArray\` constructor:
+cuA = modify(CuArray, A)

The result of a GPU broadcast is still a DimArray:

julia
julia> cuA2 = cuA .* 2
+╭───────────────────────────────╮
+1000×2000 DimArray{Float32,2} │
+├───────────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Float64} 1.0:1.0:1000.0 ForwardOrdered Regular Points,
+ Y Sampled{Float64} 1.0:1.0:2000.0 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────────────┘
+  1.0       2.0        3.0        4.0  1998.0        1999.0        2000.0
+    1.0  1.69506   1.28405    0.989952   0.900394        1.73623       1.30427       1.98193
+    2.0  1.73591   0.929995   0.665742   0.345501        0.162919      1.81708       0.702944
+    3.0  1.24575   1.80455    1.78028    1.49097         0.45804       0.224375      0.0197492
+    4.0  0.374026  1.91495    1.17645    0.995683        0.835288      1.54822       0.487601
+    5.0  1.17673   0.0557598  0.183637   1.90645     0.88058       1.23788       1.59705
+    6.0  1.57019   0.215049   1.9155     0.982762        0.906838      0.1076        0.390081
+                              
+  995.0  1.48275   0.40409    1.37963    1.66622         0.462981      1.4492        1.26917
+  996.0  1.88869   1.86174    0.298383   0.854739     0.778222      1.42151       1.75568
+  997.0  1.88092   1.87436    0.285965   0.304688        1.32669       0.0599431     0.134186
+  998.0  1.18035   1.61025    0.352614   1.75847         0.464554      1.90309       1.30923
+  999.0  1.40584   1.83056    0.0804518  0.177423        1.20779       1.95217       0.881149
+ 1000.0  1.41334   0.719974   0.479126   1.92721         0.0649391     0.642908      1.07277

But the data is on the GPU:

julia
julia> typeof(parent(cuA2))
+CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}

GPU Integration goals

DimensionalData.jl has two GPU-related goals:

  1. Work seamlessly with Base Julia broadcasts and other operations that already work on GPU.

  2. Work as arguments to custom GPU kernel functions.

This means any AbstractDimArray must be automatically moved to the GPU and its fields converted to GPU-friendly forms whenever required, using Adapt.jl.

  • The array data must convert to the correct GPU array backend when Adapt.adapt(dimarray) is called.

  • All DimensionalData.jl objects, except the actual parent array, need to be immutable isbits or convertible to them. This is one reason DimensionalData.jl uses rebuild and a functional style, rather than in-place modification of fields.

  • Symbols need to be moved to the type system, so Name{:layer_name}() replaces :layer_name.

  • Metadata dictionaries need to be stripped, as they are often too difficult to convert and not needed on GPU.

As an example, DynamicGrids.jl uses AbstractDimArray for auxiliary model data that are passed into KernelAbstractions.jl/ CUDA.jl kernels.

`,13)]))}const g=i(t,[["render",l]]);export{C as __pageData,g as default}; diff --git a/previews/PR872/assets/cuda.md.CWnnNa6Y.lean.js b/previews/PR872/assets/cuda.md.CWnnNa6Y.lean.js new file mode 100644 index 000000000..4ba50e7d7 --- /dev/null +++ b/previews/PR872/assets/cuda.md.CWnnNa6Y.lean.js @@ -0,0 +1,28 @@ +import{_ as i,c as a,a4 as n,o as h}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"CUDA & GPUs","description":"","frontmatter":{},"headers":[],"relativePath":"cuda.md","filePath":"cuda.md","lastUpdated":null}'),t={name:"cuda.md"};function l(k,s,p,e,r,d){return h(),a("div",null,s[0]||(s[0]=[n(`

CUDA & GPUs

Running regular julia code on GPUs is one of the most amazing things about the language. DimensionalData.jl leans into this as much as possible.

julia
using DimensionalData, CUDA
+
+# Create a Float32 array to use on the GPU
+A = rand(Float32, X(1.0:1000.0), Y(1.0:2000.0))
+
+# Move the parent data to the GPU with \`modify\` and the \`CuArray\` constructor:
+cuA = modify(CuArray, A)

The result of a GPU broadcast is still a DimArray:

julia
julia> cuA2 = cuA .* 2
+╭───────────────────────────────╮
+1000×2000 DimArray{Float32,2} │
+├───────────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Float64} 1.0:1.0:1000.0 ForwardOrdered Regular Points,
+ Y Sampled{Float64} 1.0:1.0:2000.0 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────────────┘
+  1.0       2.0        3.0        4.0  1998.0        1999.0        2000.0
+    1.0  1.69506   1.28405    0.989952   0.900394        1.73623       1.30427       1.98193
+    2.0  1.73591   0.929995   0.665742   0.345501        0.162919      1.81708       0.702944
+    3.0  1.24575   1.80455    1.78028    1.49097         0.45804       0.224375      0.0197492
+    4.0  0.374026  1.91495    1.17645    0.995683        0.835288      1.54822       0.487601
+    5.0  1.17673   0.0557598  0.183637   1.90645     0.88058       1.23788       1.59705
+    6.0  1.57019   0.215049   1.9155     0.982762        0.906838      0.1076        0.390081
+                              
+  995.0  1.48275   0.40409    1.37963    1.66622         0.462981      1.4492        1.26917
+  996.0  1.88869   1.86174    0.298383   0.854739     0.778222      1.42151       1.75568
+  997.0  1.88092   1.87436    0.285965   0.304688        1.32669       0.0599431     0.134186
+  998.0  1.18035   1.61025    0.352614   1.75847         0.464554      1.90309       1.30923
+  999.0  1.40584   1.83056    0.0804518  0.177423        1.20779       1.95217       0.881149
+ 1000.0  1.41334   0.719974   0.479126   1.92721         0.0649391     0.642908      1.07277

But the data is on the GPU:

julia
julia> typeof(parent(cuA2))
+CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}

GPU Integration goals

DimensionalData.jl has two GPU-related goals:

  1. Work seamlessly with Base Julia broadcasts and other operations that already work on GPU.

  2. Work as arguments to custom GPU kernel functions.

This means any AbstractDimArray must be automatically moved to the GPU and its fields converted to GPU-friendly forms whenever required, using Adapt.jl.

  • The array data must convert to the correct GPU array backend when Adapt.adapt(dimarray) is called.

  • All DimensionalData.jl objects, except the actual parent array, need to be immutable isbits or convertible to them. This is one reason DimensionalData.jl uses rebuild and a functional style, rather than in-place modification of fields.

  • Symbols need to be moved to the type system, so Name{:layer_name}() replaces :layer_name.

  • Metadata dictionaries need to be stripped, as they are often too difficult to convert and not needed on GPU.

As an example, DynamicGrids.jl uses AbstractDimArray for auxiliary model data that are passed into KernelAbstractions.jl/ CUDA.jl kernels.

`,13)]))}const g=i(t,[["render",l]]);export{C as __pageData,g as default}; diff --git a/previews/PR872/assets/dimarrays.md.ls_dvDnS.js b/previews/PR872/assets/dimarrays.md.ls_dvDnS.js new file mode 100644 index 000000000..3ac7d78ea --- /dev/null +++ b/previews/PR872/assets/dimarrays.md.ls_dvDnS.js @@ -0,0 +1,294 @@ +import{_ as d,c as p,a4 as l,G as h,w as e,B as k,o as g,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const u=JSON.parse('{"title":"DimArrays","description":"","frontmatter":{},"headers":[],"relativePath":"dimarrays.md","filePath":"dimarrays.md","lastUpdated":null}'),r={name:"dimarrays.md"};function o(y,a,f,c,b,E){const t=k("PluginTabsTab"),n=k("PluginTabs");return g(),p("div",null,[a[6]||(a[6]=l(`

DimArrays

DimArrays are wrappers for other kinds of AbstractArray that add named dimension lookups.

Here we define a Matrix of Float64, and give it X and Y dimensions

julia
julia> using DimensionalData
+
+julia> A = rand(5, 10)
5×10 Matrix{Float64}:
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077
julia
julia> da = DimArray(A, (X, Y))
╭───────────────────────────╮
+5×10 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077

We can access a value with the same dimension wrappers:

julia
julia> da[Y(1), X(2)]
0.2236016853688918

There are shortcuts for creating DimArray:

`,11)),h(n,null,{default:e(()=>[h(t,{label:"DimArray"},{default:e(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"5×10 Matrix{Float64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X, Y); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," DimArray"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1)])),_:1}),h(t,{label:"zeros"},{default:e(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," zeros"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴──────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")])])])],-1)])),_:1}),h(t,{label:"ones"},{default:e(()=>a[2]||(a[2]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," ones"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴───────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")])])])],-1)])),_:1}),h(t,{label:"rand"},{default:e(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.227455 0.764613 0.7826 0.625257 … 0.374451 0.629882 0.0140644")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.67178 0.760205 0.796812 0.0707995 0.661715 0.321923 0.0697249")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.677207 0.553558 0.280686 0.054613 0.557524 0.342437 0.392848")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768325 0.667976 0.917543 0.8234 0.874037 0.847981 0.126976")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.514177 0.413756 0.0621546 0.700218 0.15388 0.912676 0.222681")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," rand"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴───────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.934419 0.176197 0.675467 0.208384 … 0.273986 0.509231 0.299799")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.677974 0.468066 0.347379 0.541438 0.385262 0.52496 0.468184")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0599255 0.247198 0.813229 0.391395 0.208542 0.750146 0.106224")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.557369 0.261741 0.44104 0.178902 0.561365 0.475747 0.264242")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.104867 0.497181 0.570254 0.906883 0.986207 0.0287126 0.108968")])])])],-1)])),_:1}),h(t,{label:"fill"},{default:e(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴──────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," fill"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────┴─────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")])])])],-1)])),_:1}),h(t,{label:"generator construction"},{default:e(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," [x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," sum"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1)])),_:1})]),_:1}),a[7]||(a[7]=l(`

Constructing DimArray with arbitrary dimension names

For arbitrary names, we can use the Dim{:name} dims by using Symbols, and indexing with keywords:

julia
julia> da1 = DimArray(rand(5, 5), (:a, :b))
╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

and get a value, here another smaller DimArray:

julia
julia> da1[a=3, b=1:3]
╭────────────────────────────────╮
+3-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+b
+└─────────────────────────────────┘
+ 0.910981
+ 0.503823
+ 0.488029

Dimensional Indexing

When used for indexing, dimension wrappers free us from knowing the order of our objects axes. These are the same:

julia
julia> da[X(2), Y(1)] == da[Y(1), X(2)]
true

We also can use Tuples of dimensions, like CartesianIndex, but they don't have to be in order of consecutive axes.

julia
julia> da2 = rand(X(10), Y(7), Z(5))
╭─────────────────────────────╮
+10×7×5 DimArray{Float64, 3}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X, Y, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.41173   0.0789906  0.655936    0.762722   0.56273    0.0160205  0.640693
+ 0.228294  0.687236   0.345046    0.749573   0.949769   0.783195   0.591606
+ 0.258576  0.89609    0.00337686  0.99118    0.169845   0.159817   0.784693
+ 0.295346  0.768639   0.754468    0.0738813  0.675126   0.968484   0.243035
+ 0.254627  0.411529   0.629352    0.285205   0.18989    0.891663   0.597808
+ 0.435719  0.0450386  0.0531003   0.385452   0.322612   0.667691   0.906601
+ 0.88841   0.571658   0.991676    0.677848   0.697976   0.971252   0.776593
+ 0.284399  0.196524   0.119937    0.493258   0.342919   0.866772   0.0990347
+ 0.192286  0.765808   0.502499    0.404773   0.0623616  0.627002   0.184813
+ 0.762199  0.159233   0.769884    0.74428    0.606279   0.351096   0.268379
julia
julia> da2[(X(3), Z(5))]
╭────────────────────────────────╮
+7-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+Y
+└─────────────────────────────────┘
+ 0.644748
+ 0.493072
+ 0.316833
+ 0.372311
+ 0.313185
+ 0.494267
+ 0.705582

We can index with Vector of Tuple{Vararg(Dimension}} like vectors of CartesianIndex. This will merge the dimensions in the tuples:

julia
julia> inds = [(X(3), Z(5)), (X(7), Z(4)), (X(8), Z(2))]
3-element Vector{Tuple{X{Int64}, Z{Int64}}}:
+ (X 3, Z 5)
+ (X 7, Z 4)
+ (X 8, Z 2)
julia
julia> da2[inds]
╭──────────────────────────╮
+7×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+Y ,
+XZ MergedLookup{Tuple{Int64, Int64}} [(3, 5), (7, 4), (8, 2)]X, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+  (3, 5)    (7, 4)     (8, 2)
+ 0.644748  0.510196   0.528138
+ 0.493072  0.925624   0.142957
+ 0.316833  0.485321   0.708081
+ 0.372311  0.676945   0.406221
+ 0.313185  0.0379776  0.6778
+ 0.494267  0.287739   0.155826
+ 0.705582  0.996358   0.638336

DimIndices can be used like CartesianIndices but again, without the constraint of consecutive dimensions or known order.

julia
julia> da2[DimIndices(dims(da2, (X, Z))), Y(3)]
╭───────────────────────────╮
+10×5 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Z
+└────────────────────────────────────────────────────────────────┘
+ 0.655936    0.853835  0.870583   0.0578313  0.971794
+ 0.345046    0.17597   0.638072   0.136127   0.962808
+ 0.00337686  0.378395  0.0314382  0.310753   0.316833
+ 0.754468    0.188864  0.614012   0.883048   0.191049
+ 0.629352    0.190726  0.338669   0.105539   0.925844
+ 0.0531003   0.876115  0.945147   0.873096   0.342887
+ 0.991676    0.702956  0.281077   0.485321   0.798621
+ 0.119937    0.708081  0.0363983  0.247755   0.527261
+ 0.502499    0.641023  0.0104608  0.10233    0.635425
+ 0.769884    0.37821   0.881533   0.535933   0.454033

The Dimension indexing layer sits on top of regular indexing and can not be combined with it! Regular indexing specifies order, so doesn't mix well with our dimensions.

Mixing them will throw an error:

julia
julia> da1[X(3), 4]
ERROR: ArgumentError: invalid index: X{Int64}(3) of type X{Int64}

Begin End indexing

julia
julia> da1[X=Begin+1, Y=End]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

It also works in ranges, even with basic math:

julia
julia> da1[X=Begin:Begin+1, Y=Begin+1:End-1]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

In base julia the keywords begin and end can be used to index the first or last element of an array. But this doesn't work when named indexing is used. Instead you can use the types Begin and End.

Indexing

Indexing AbstractDimArrays works with getindex, setindex! and view. The result is still an AbstracDimArray, unless using all single Int or Selectors that resolve to Int inside Dimension.

dims keywords

In many Julia functions like, size or sum, you can specify the dimension along which to perform the operation as an Int. It is also possible to do this using Dimension types with AbstractDimArray:

julia
julia> da5 = rand(X(3), Y(4), Ti(5))
╭────────────────────────────╮
+3×4×5 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.573147   0.206406  0.916702  0.481184
+ 0.0760848  0.94412   0.48817   0.758865
+ 0.0992684  0.917457  0.811947  0.0641884
julia
julia> sum(da5; dims=Ti)
╭────────────────────────────╮
+3×4×1 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 2.89248  1.86986  2.12435  1.86194
+ 1.29325  2.76668  2.64923  2.70488
+ 1.11475  3.10914  3.02098  2.35189

Dims keywords

Methods where dims, dim types, or Symbols can be used to indicate the array dimension:

  • size, axes, firstindex, lastindex

  • cat, reverse, dropdims

  • reduce, mapreduce

  • sum, prod, maximum, minimum

  • mean, median, extrema, std, var, cor, cov

  • permutedims, adjoint, transpose, Transpose

  • mapslices, eachslice

Performance

Indexing with Dimensions has no runtime cost. Let's benchmark it:

julia
julia> using BenchmarkTools
+
+julia> da4 = ones(X(3), Y(3))
╭──────────────────────────╮
+3×3 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
julia
julia> @benchmark $da4[X(1), Y(2)]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns25.527 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.115 ns ±  0.359 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.

the same as accessing the parent array directly:

julia
julia> @benchmark parent($da4)[1, 2]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns18.754 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.120 ns ±  0.356 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.
`,52))])}const C=d(r,[["render",o]]);export{u as __pageData,C as default}; diff --git a/previews/PR872/assets/dimarrays.md.ls_dvDnS.lean.js b/previews/PR872/assets/dimarrays.md.ls_dvDnS.lean.js new file mode 100644 index 000000000..3ac7d78ea --- /dev/null +++ b/previews/PR872/assets/dimarrays.md.ls_dvDnS.lean.js @@ -0,0 +1,294 @@ +import{_ as d,c as p,a4 as l,G as h,w as e,B as k,o as g,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const u=JSON.parse('{"title":"DimArrays","description":"","frontmatter":{},"headers":[],"relativePath":"dimarrays.md","filePath":"dimarrays.md","lastUpdated":null}'),r={name:"dimarrays.md"};function o(y,a,f,c,b,E){const t=k("PluginTabsTab"),n=k("PluginTabs");return g(),p("div",null,[a[6]||(a[6]=l(`

DimArrays

DimArrays are wrappers for other kinds of AbstractArray that add named dimension lookups.

Here we define a Matrix of Float64, and give it X and Y dimensions

julia
julia> using DimensionalData
+
+julia> A = rand(5, 10)
5×10 Matrix{Float64}:
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077
julia
julia> da = DimArray(A, (X, Y))
╭───────────────────────────╮
+5×10 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077

We can access a value with the same dimension wrappers:

julia
julia> da[Y(1), X(2)]
0.2236016853688918

There are shortcuts for creating DimArray:

`,11)),h(n,null,{default:e(()=>[h(t,{label:"DimArray"},{default:e(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"5×10 Matrix{Float64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X, Y); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," DimArray"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.670688 0.534915 0.111072 0.194465 … 0.121525 0.797168 0.0239356")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.741593 0.707692 0.879899 0.813705 0.601833 0.826098 0.493417")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.119505 0.0999314 0.403111 0.755958 0.289335 0.542251 0.0622255")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.775377 0.217733 0.865298 0.876395 0.108514 0.306932 0.627107")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.576903 0.950338 0.854076 0.511978 0.866334 0.905021 0.0238569")])])])],-1)])),_:1}),h(t,{label:"zeros"},{default:e(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," zeros"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴──────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0")])])])],-1)])),_:1}),h(t,{label:"ones"},{default:e(()=>a[2]||(a[2]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":ones"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," ones"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴───────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0")])])])],-1)])),_:1}),h(t,{label:"rand"},{default:e(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.227455 0.764613 0.7826 0.625257 … 0.374451 0.629882 0.0140644")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.67178 0.760205 0.796812 0.0707995 0.661715 0.321923 0.0697249")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.677207 0.553558 0.280686 0.054613 0.557524 0.342437 0.392848")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768325 0.667976 0.917543 0.8234 0.874037 0.847981 0.126976")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.514177 0.413756 0.0621546 0.700218 0.15388 0.912676 0.222681")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," rand"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴───────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.934419 0.176197 0.675467 0.208384 … 0.273986 0.509231 0.299799")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.677974 0.468066 0.347379 0.541438 0.385262 0.52496 0.468184")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0599255 0.247198 0.813229 0.391395 0.208542 0.750146 0.106224")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.557369 0.261741 0.44104 0.178902 0.561365 0.475747 0.264242")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.104867 0.497181 0.570254 0.906883 0.986207 0.0287126 0.108968")])])])],-1)])),_:1}),h(t,{label:"fill"},{default:e(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴──────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":fill"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," fill"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────┴─────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7 7 7 7 7 7 7 7 7 7")])])])],-1)])),_:1}),h(t,{label:"generator construction"},{default:e(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," [x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────┴────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"for"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Int64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," sum"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Any, Any}()")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 4"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2 3 4 5 6 7 8 9 10 11")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3 4 5 6 7 8 9 10 11 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4 5 6 7 8 9 10 11 12 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5 6 7 8 9 10 11 12 13 14")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6 7 8 9 10 11 12 13 14 15")])])])],-1)])),_:1})]),_:1}),a[7]||(a[7]=l(`

Constructing DimArray with arbitrary dimension names

For arbitrary names, we can use the Dim{:name} dims by using Symbols, and indexing with keywords:

julia
julia> da1 = DimArray(rand(5, 5), (:a, :b))
╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

and get a value, here another smaller DimArray:

julia
julia> da1[a=3, b=1:3]
╭────────────────────────────────╮
+3-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+b
+└─────────────────────────────────┘
+ 0.910981
+ 0.503823
+ 0.488029

Dimensional Indexing

When used for indexing, dimension wrappers free us from knowing the order of our objects axes. These are the same:

julia
julia> da[X(2), Y(1)] == da[Y(1), X(2)]
true

We also can use Tuples of dimensions, like CartesianIndex, but they don't have to be in order of consecutive axes.

julia
julia> da2 = rand(X(10), Y(7), Z(5))
╭─────────────────────────────╮
+10×7×5 DimArray{Float64, 3}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X, Y, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.41173   0.0789906  0.655936    0.762722   0.56273    0.0160205  0.640693
+ 0.228294  0.687236   0.345046    0.749573   0.949769   0.783195   0.591606
+ 0.258576  0.89609    0.00337686  0.99118    0.169845   0.159817   0.784693
+ 0.295346  0.768639   0.754468    0.0738813  0.675126   0.968484   0.243035
+ 0.254627  0.411529   0.629352    0.285205   0.18989    0.891663   0.597808
+ 0.435719  0.0450386  0.0531003   0.385452   0.322612   0.667691   0.906601
+ 0.88841   0.571658   0.991676    0.677848   0.697976   0.971252   0.776593
+ 0.284399  0.196524   0.119937    0.493258   0.342919   0.866772   0.0990347
+ 0.192286  0.765808   0.502499    0.404773   0.0623616  0.627002   0.184813
+ 0.762199  0.159233   0.769884    0.74428    0.606279   0.351096   0.268379
julia
julia> da2[(X(3), Z(5))]
╭────────────────────────────────╮
+7-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+Y
+└─────────────────────────────────┘
+ 0.644748
+ 0.493072
+ 0.316833
+ 0.372311
+ 0.313185
+ 0.494267
+ 0.705582

We can index with Vector of Tuple{Vararg(Dimension}} like vectors of CartesianIndex. This will merge the dimensions in the tuples:

julia
julia> inds = [(X(3), Z(5)), (X(7), Z(4)), (X(8), Z(2))]
3-element Vector{Tuple{X{Int64}, Z{Int64}}}:
+ (X 3, Z 5)
+ (X 7, Z 4)
+ (X 8, Z 2)
julia
julia> da2[inds]
╭──────────────────────────╮
+7×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+Y ,
+XZ MergedLookup{Tuple{Int64, Int64}} [(3, 5), (7, 4), (8, 2)]X, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+  (3, 5)    (7, 4)     (8, 2)
+ 0.644748  0.510196   0.528138
+ 0.493072  0.925624   0.142957
+ 0.316833  0.485321   0.708081
+ 0.372311  0.676945   0.406221
+ 0.313185  0.0379776  0.6778
+ 0.494267  0.287739   0.155826
+ 0.705582  0.996358   0.638336

DimIndices can be used like CartesianIndices but again, without the constraint of consecutive dimensions or known order.

julia
julia> da2[DimIndices(dims(da2, (X, Z))), Y(3)]
╭───────────────────────────╮
+10×5 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Z
+└────────────────────────────────────────────────────────────────┘
+ 0.655936    0.853835  0.870583   0.0578313  0.971794
+ 0.345046    0.17597   0.638072   0.136127   0.962808
+ 0.00337686  0.378395  0.0314382  0.310753   0.316833
+ 0.754468    0.188864  0.614012   0.883048   0.191049
+ 0.629352    0.190726  0.338669   0.105539   0.925844
+ 0.0531003   0.876115  0.945147   0.873096   0.342887
+ 0.991676    0.702956  0.281077   0.485321   0.798621
+ 0.119937    0.708081  0.0363983  0.247755   0.527261
+ 0.502499    0.641023  0.0104608  0.10233    0.635425
+ 0.769884    0.37821   0.881533   0.535933   0.454033

The Dimension indexing layer sits on top of regular indexing and can not be combined with it! Regular indexing specifies order, so doesn't mix well with our dimensions.

Mixing them will throw an error:

julia
julia> da1[X(3), 4]
ERROR: ArgumentError: invalid index: X{Int64}(3) of type X{Int64}

Begin End indexing

julia
julia> da1[X=Begin+1, Y=End]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

It also works in ranges, even with basic math:

julia
julia> da1[X=Begin:Begin+1, Y=Begin+1:End-1]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

In base julia the keywords begin and end can be used to index the first or last element of an array. But this doesn't work when named indexing is used. Instead you can use the types Begin and End.

Indexing

Indexing AbstractDimArrays works with getindex, setindex! and view. The result is still an AbstracDimArray, unless using all single Int or Selectors that resolve to Int inside Dimension.

dims keywords

In many Julia functions like, size or sum, you can specify the dimension along which to perform the operation as an Int. It is also possible to do this using Dimension types with AbstractDimArray:

julia
julia> da5 = rand(X(3), Y(4), Ti(5))
╭────────────────────────────╮
+3×4×5 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.573147   0.206406  0.916702  0.481184
+ 0.0760848  0.94412   0.48817   0.758865
+ 0.0992684  0.917457  0.811947  0.0641884
julia
julia> sum(da5; dims=Ti)
╭────────────────────────────╮
+3×4×1 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 2.89248  1.86986  2.12435  1.86194
+ 1.29325  2.76668  2.64923  2.70488
+ 1.11475  3.10914  3.02098  2.35189

Dims keywords

Methods where dims, dim types, or Symbols can be used to indicate the array dimension:

  • size, axes, firstindex, lastindex

  • cat, reverse, dropdims

  • reduce, mapreduce

  • sum, prod, maximum, minimum

  • mean, median, extrema, std, var, cor, cov

  • permutedims, adjoint, transpose, Transpose

  • mapslices, eachslice

Performance

Indexing with Dimensions has no runtime cost. Let's benchmark it:

julia
julia> using BenchmarkTools
+
+julia> da4 = ones(X(3), Y(3))
╭──────────────────────────╮
+3×3 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
julia
julia> @benchmark $da4[X(1), Y(2)]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns25.527 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.115 ns ±  0.359 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.

the same as accessing the parent array directly:

julia
julia> @benchmark parent($da4)[1, 2]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns18.754 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.120 ns ±  0.356 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.
`,52))])}const C=d(r,[["render",o]]);export{u as __pageData,C as default}; diff --git a/previews/PR872/assets/dimensions.md.BqC4rEzt.js b/previews/PR872/assets/dimensions.md.BqC4rEzt.js new file mode 100644 index 000000000..61dfebbbc --- /dev/null +++ b/previews/PR872/assets/dimensions.md.BqC4rEzt.js @@ -0,0 +1,3 @@ +import{_ as i,c as a,a4 as e,o as n}from"./chunks/framework.ByNLHi2E.js";const c=JSON.parse('{"title":"Dimensions","description":"","frontmatter":{},"headers":[],"relativePath":"dimensions.md","filePath":"dimensions.md","lastUpdated":null}'),t={name:"dimensions.md"};function h(l,s,p,k,d,o){return n(),a("div",null,s[0]||(s[0]=[e(`

Dimensions

Dimensions are "wrapper types" that can be used to wrap any object to associate it with a named dimension.

X, Y, Z, Ti are predefined as types:

julia
julia> using DimensionalData
+
+julia> X(1)
X 1
julia
julia> X(1), Y(2), Z(3)
(X 1, Y 2, Z 3)

You can also create Dim dimensions with any name:

julia
julia> Dim{:a}(1), Dim{:b}(1)
(a 1, b 1)

The wrapped value can be retrieved with val:

julia
julia> val(X(1))
1

DimensionalData.jl uses Dimensions everywhere:

  • Dimensions are returned from dims to specify the names of the dimensions of an object

  • They can wrap Lookups to associate the lookups with those names

  • To index into these objects, they can wrap indices like Int or a Selector

This symmetry means we can ignore how data is organized, and label and access it by name, letting DD work out the details for us.

Dimensions are defined in the Dimensions submodule, and some Dimension-specific methods can be brought into scope with:

julia
using DimensionalData.Dimensions
`,18)]))}const g=i(t,[["render",h]]);export{c as __pageData,g as default}; diff --git a/previews/PR872/assets/dimensions.md.BqC4rEzt.lean.js b/previews/PR872/assets/dimensions.md.BqC4rEzt.lean.js new file mode 100644 index 000000000..61dfebbbc --- /dev/null +++ b/previews/PR872/assets/dimensions.md.BqC4rEzt.lean.js @@ -0,0 +1,3 @@ +import{_ as i,c as a,a4 as e,o as n}from"./chunks/framework.ByNLHi2E.js";const c=JSON.parse('{"title":"Dimensions","description":"","frontmatter":{},"headers":[],"relativePath":"dimensions.md","filePath":"dimensions.md","lastUpdated":null}'),t={name:"dimensions.md"};function h(l,s,p,k,d,o){return n(),a("div",null,s[0]||(s[0]=[e(`

Dimensions

Dimensions are "wrapper types" that can be used to wrap any object to associate it with a named dimension.

X, Y, Z, Ti are predefined as types:

julia
julia> using DimensionalData
+
+julia> X(1)
X 1
julia
julia> X(1), Y(2), Z(3)
(X 1, Y 2, Z 3)

You can also create Dim dimensions with any name:

julia
julia> Dim{:a}(1), Dim{:b}(1)
(a 1, b 1)

The wrapped value can be retrieved with val:

julia
julia> val(X(1))
1

DimensionalData.jl uses Dimensions everywhere:

  • Dimensions are returned from dims to specify the names of the dimensions of an object

  • They can wrap Lookups to associate the lookups with those names

  • To index into these objects, they can wrap indices like Int or a Selector

This symmetry means we can ignore how data is organized, and label and access it by name, letting DD work out the details for us.

Dimensions are defined in the Dimensions submodule, and some Dimension-specific methods can be brought into scope with:

julia
using DimensionalData.Dimensions
`,18)]))}const g=i(t,[["render",h]]);export{c as __pageData,g as default}; diff --git a/previews/PR872/assets/diskarrays.md.DG_ltL5E.js b/previews/PR872/assets/diskarrays.md.DG_ltL5E.js new file mode 100644 index 000000000..18e70aef3 --- /dev/null +++ b/previews/PR872/assets/diskarrays.md.DG_ltL5E.js @@ -0,0 +1 @@ +import{_ as r,c as e,a4 as t,o as i}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"DiskArrays.jl compatibility","description":"","frontmatter":{},"headers":[],"relativePath":"diskarrays.md","filePath":"diskarrays.md","lastUpdated":null}'),l={name:"diskarrays.md"};function s(n,a,o,c,p,d){return i(),e("div",null,a[0]||(a[0]=[t('

DiskArrays.jl compatibility

DiskArrays.jl enables lazy, chunked application of:

  • broadcast

  • reductions

  • iteration

  • generators

  • zip

as well as caching chunks in RAM via DiskArrays.cache(dimarray).

It is rarely used directly, but is present in most disk and cloud based spatial data packages in julia, including: ArchGDAL.jl, NetCDF.jl, Zarr.jl, NCDatasets.jl, GRIBDatasets.jl and CommonDataModel.jl.

The combination of DiskArrays.jl and DimensionalData.jl is Julia's answer to python's xarray. Rasters.jl and YAXArrays.jl are user-facing tools building on this combination.

They have no meaningful direct dependency relationships, but are intentionally designed to integrate via both adherence to Julia's AbstractArray interface, and by coordination during development of both packages.

',7)]))}const u=r(l,[["render",s]]);export{b as __pageData,u as default}; diff --git a/previews/PR872/assets/diskarrays.md.DG_ltL5E.lean.js b/previews/PR872/assets/diskarrays.md.DG_ltL5E.lean.js new file mode 100644 index 000000000..18e70aef3 --- /dev/null +++ b/previews/PR872/assets/diskarrays.md.DG_ltL5E.lean.js @@ -0,0 +1 @@ +import{_ as r,c as e,a4 as t,o as i}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"DiskArrays.jl compatibility","description":"","frontmatter":{},"headers":[],"relativePath":"diskarrays.md","filePath":"diskarrays.md","lastUpdated":null}'),l={name:"diskarrays.md"};function s(n,a,o,c,p,d){return i(),e("div",null,a[0]||(a[0]=[t('

DiskArrays.jl compatibility

DiskArrays.jl enables lazy, chunked application of:

  • broadcast

  • reductions

  • iteration

  • generators

  • zip

as well as caching chunks in RAM via DiskArrays.cache(dimarray).

It is rarely used directly, but is present in most disk and cloud based spatial data packages in julia, including: ArchGDAL.jl, NetCDF.jl, Zarr.jl, NCDatasets.jl, GRIBDatasets.jl and CommonDataModel.jl.

The combination of DiskArrays.jl and DimensionalData.jl is Julia's answer to python's xarray. Rasters.jl and YAXArrays.jl are user-facing tools building on this combination.

They have no meaningful direct dependency relationships, but are intentionally designed to integrate via both adherence to Julia's AbstractArray interface, and by coordination during development of both packages.

',7)]))}const u=r(l,[["render",s]]);export{b as __pageData,u as default}; diff --git a/previews/PR872/assets/extending_dd.md.BgVswzro.js b/previews/PR872/assets/extending_dd.md.BgVswzro.js new file mode 100644 index 000000000..8684db38d --- /dev/null +++ b/previews/PR872/assets/extending_dd.md.BgVswzro.js @@ -0,0 +1,55 @@ +import{_ as n,c as d,a4 as r,G as a,w as t,B as l,o as p,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"Extending DimensionalData","description":"","frontmatter":{},"headers":[],"relativePath":"extending_dd.md","filePath":"extending_dd.md","lastUpdated":null}'),o={name:"extending_dd.md"};function g(y,e,c,u,m,E){const h=l("PluginTabsTab"),k=l("PluginTabs");return p(),d("div",null,[e[2]||(e[2]=r('

Extending DimensionalData

Nearly everything in DimensionalData.jl is designed to be extensible.

  • AbstractDimArray is easily extended to custom array types. Raster or YAXArray are examples from other packages.

  • AbstractDimStack is easily extended to custom mixed array datasets. RasterStack or ArViZ.Dataset are examples.

  • Lookup can have new types added, e.g. to AbstractSampled or AbstractCategorical. Rasters.Projected is a lookup that knows its coordinate reference system, but otherwise behaves as a regular Sampled lookup.

dims, rebuild and format are the key interface methods in most of these cases.

dims

Objects extending DimensionalData.jl that have dimensions must return a Tuple of constructed Dimensions from dims(obj).

Dimension axes

Dimensions returned from dims should hold a Lookup or in some cases just an AbstractArray (like with DimIndices). When attached to multi-dimensional objects, lookups must be the same length as the axis of the array it represents, and eachindex(A, i) and eachindex(dim) must return the same values.

This means that if the array has OffsetArrays.jl axes, the array the dimension wraps must also have OffsetArrays.jl axes.

dims keywords

To any dims keyword argument that usually requires the dimension I, objects should accept any Dimension, Type{<:Dimension}, Symbol, Val{:Symbol}, Val{<:Type{<:Dimension}} or also regular Integer.

This is easier than it sounds, calling DD.dims(objs, dims) will return the matching dimension and DD.dimnum(obj, dims) will return the matching Int for any of these inputs as long as dims(obj) is implemented.

rebuild

Rebuild methods are used to rebuild immutable objects with new field values, in a way that is more flexible and extensible than just using ConstructionBase.jl reconstruction. Developers can choose to ignore some of the fields passed by rebuild.

The function signature is always one of:

julia
rebuild(obj, args...)\nrebuild(obj; kw...)

rebuild has keyword versions automatically generated for all objects using ConstructionBase.jl.

These will work without further work as long as your object has the fields used by DimensionalData.jl objects. For example, AbstractDimArray will receive these keywords in rebuild: data, dims, refdims, name, metadata.

If your AbstractDimArray does not have all these fields, you must implement rebuild(x::YourDimArray; kw...) manually.

An argument method is also defined with the same arguments as the keyword version. For AbstractDimArray it should only be used for updating data and dims, any more that that is confusing.

For Dimension and Selector the single argument versions are easiest to use, as there is only one argument.

format

When constructing an AbstractDimArray or AbstractDimStack DimensionalData.format must be called on the dims tuple and the parent array:

julia
format(dims, array)

This lets DimensionalData detect the lookup properties, fill in missing fields of a Lookup, pass keywords from Dimension to detected Lookup constructors, and accept a wider range of dimension inputs like tuples of Symbol and Type.

Not calling format in the outer constructors of an AbstractDimArray has undefined behaviour.

Interfaces.jl interface testing

DimensionalData defines explicit, testable Interfaces.jl interfaces: DimArrayInterface and DimStackInterface.

',28)),a(k,null,{default:t(()=>[a(h,{label:"array"},{default:t(()=>e[0]||(e[0]=[i("p",null,[s("This is the implementation definition for "),i("code",null,"DimArray"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData, Interfaces")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @implements"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimArrayInterface{("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":refdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":name"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")} DimArray ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Z"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("p",null,[s("See the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimArrayInterface"},[i("code",null,"DimensionalData.DimArrayInterface")]),s(" docs for options. We can test it with:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Interfaces"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"test"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimArrayInterface)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Testing "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimArrayInterface"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," is implemented for "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimArray")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Mandatory components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (defines a `dims` method ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dims are updated on getindex ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims_base"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": `refdims` returns a tuple of Dimension or empty ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"ndims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": number of dims matches dimensions of array ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"size"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": length of dims matches dimensions of array ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": all rebuild arguments and keywords are accepted ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Optional components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (refdims are updated in args rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," refdims are updated in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dropped dimensions are added to refdims ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"name"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates name in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates name in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"metadata"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates metadata in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates metadata in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Implementation summary:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#dbab09","--shiki-dark":"#ffea7f"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," correctly implements "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimensionalData.DimArrayInterface: "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1)])),_:1}),a(h,{label:"stack"},{default:t(()=>e[1]||(e[1]=[i("p",null,[s("The implementation definition for "),i("code",null,"DimStack"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @implements"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimStackInterface{("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":refdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")} DimStack ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Z"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))]")])])])],-1),i("p",null,[s("See the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimStackInterface"},[i("code",null,"DimensionalData.DimStackInterface")]),s(" docs for options. We can test it with:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Interfaces"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"test"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimStackInterface)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Testing "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimStackInterface"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," is implemented for "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimStack")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Mandatory components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (defines a `dims` method ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dims are updated on getindex ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims_base"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": `refdims` returns a tuple of Dimension or empty ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"ndims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": number of dims matches ndims of stack ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"size"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": length of dims matches size of stack ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_layerdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_layerdims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": all rebuild arguments and keywords are accepted ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Optional components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (refdims are updated in args rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," refdims are updated in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dropped dimensions are added to refdims ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"metadata"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates metadata in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates metadata in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Implementation summary:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#dbab09","--shiki-dark":"#ffea7f"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," correctly implements "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimensionalData.DimStackInterface: "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1)])),_:1})]),_:1})])}const D=n(o,[["render",g]]);export{b as __pageData,D as default}; diff --git a/previews/PR872/assets/extending_dd.md.BgVswzro.lean.js b/previews/PR872/assets/extending_dd.md.BgVswzro.lean.js new file mode 100644 index 000000000..8684db38d --- /dev/null +++ b/previews/PR872/assets/extending_dd.md.BgVswzro.lean.js @@ -0,0 +1,55 @@ +import{_ as n,c as d,a4 as r,G as a,w as t,B as l,o as p,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"Extending DimensionalData","description":"","frontmatter":{},"headers":[],"relativePath":"extending_dd.md","filePath":"extending_dd.md","lastUpdated":null}'),o={name:"extending_dd.md"};function g(y,e,c,u,m,E){const h=l("PluginTabsTab"),k=l("PluginTabs");return p(),d("div",null,[e[2]||(e[2]=r('

Extending DimensionalData

Nearly everything in DimensionalData.jl is designed to be extensible.

  • AbstractDimArray is easily extended to custom array types. Raster or YAXArray are examples from other packages.

  • AbstractDimStack is easily extended to custom mixed array datasets. RasterStack or ArViZ.Dataset are examples.

  • Lookup can have new types added, e.g. to AbstractSampled or AbstractCategorical. Rasters.Projected is a lookup that knows its coordinate reference system, but otherwise behaves as a regular Sampled lookup.

dims, rebuild and format are the key interface methods in most of these cases.

dims

Objects extending DimensionalData.jl that have dimensions must return a Tuple of constructed Dimensions from dims(obj).

Dimension axes

Dimensions returned from dims should hold a Lookup or in some cases just an AbstractArray (like with DimIndices). When attached to multi-dimensional objects, lookups must be the same length as the axis of the array it represents, and eachindex(A, i) and eachindex(dim) must return the same values.

This means that if the array has OffsetArrays.jl axes, the array the dimension wraps must also have OffsetArrays.jl axes.

dims keywords

To any dims keyword argument that usually requires the dimension I, objects should accept any Dimension, Type{<:Dimension}, Symbol, Val{:Symbol}, Val{<:Type{<:Dimension}} or also regular Integer.

This is easier than it sounds, calling DD.dims(objs, dims) will return the matching dimension and DD.dimnum(obj, dims) will return the matching Int for any of these inputs as long as dims(obj) is implemented.

rebuild

Rebuild methods are used to rebuild immutable objects with new field values, in a way that is more flexible and extensible than just using ConstructionBase.jl reconstruction. Developers can choose to ignore some of the fields passed by rebuild.

The function signature is always one of:

julia
rebuild(obj, args...)\nrebuild(obj; kw...)

rebuild has keyword versions automatically generated for all objects using ConstructionBase.jl.

These will work without further work as long as your object has the fields used by DimensionalData.jl objects. For example, AbstractDimArray will receive these keywords in rebuild: data, dims, refdims, name, metadata.

If your AbstractDimArray does not have all these fields, you must implement rebuild(x::YourDimArray; kw...) manually.

An argument method is also defined with the same arguments as the keyword version. For AbstractDimArray it should only be used for updating data and dims, any more that that is confusing.

For Dimension and Selector the single argument versions are easiest to use, as there is only one argument.

format

When constructing an AbstractDimArray or AbstractDimStack DimensionalData.format must be called on the dims tuple and the parent array:

julia
format(dims, array)

This lets DimensionalData detect the lookup properties, fill in missing fields of a Lookup, pass keywords from Dimension to detected Lookup constructors, and accept a wider range of dimension inputs like tuples of Symbol and Type.

Not calling format in the outer constructors of an AbstractDimArray has undefined behaviour.

Interfaces.jl interface testing

DimensionalData defines explicit, testable Interfaces.jl interfaces: DimArrayInterface and DimStackInterface.

',28)),a(k,null,{default:t(()=>[a(h,{label:"array"},{default:t(()=>e[0]||(e[0]=[i("p",null,[s("This is the implementation definition for "),i("code",null,"DimArray"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData, Interfaces")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @implements"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimArrayInterface{("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":refdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":name"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")} DimArray ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Z"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("p",null,[s("See the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimArrayInterface"},[i("code",null,"DimensionalData.DimArrayInterface")]),s(" docs for options. We can test it with:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Interfaces"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"test"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimArrayInterface)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Testing "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimArrayInterface"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," is implemented for "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimArray")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Mandatory components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (defines a `dims` method ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dims are updated on getindex ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims_base"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": `refdims` returns a tuple of Dimension or empty ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"ndims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": number of dims matches dimensions of array ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"size"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": length of dims matches dimensions of array ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": all rebuild arguments and keywords are accepted ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Optional components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (refdims are updated in args rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," refdims are updated in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dropped dimensions are added to refdims ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"name"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates name in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates name in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"metadata"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates metadata in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates metadata in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Implementation summary:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#dbab09","--shiki-dark":"#ffea7f"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," correctly implements "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimensionalData.DimArrayInterface: "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1)])),_:1}),a(h,{label:"stack"},{default:t(()=>e[1]||(e[1]=[i("p",null,[s("The implementation definition for "),i("code",null,"DimStack"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @implements"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimStackInterface{("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":refdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},","),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")} DimStack ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"zeros"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Z"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))]")])])])],-1),i("p",null,[s("See the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimStackInterface"},[i("code",null,"DimensionalData.DimStackInterface")]),s(" docs for options. We can test it with:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Interfaces"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"test"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"DimStackInterface)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Testing "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimStackInterface"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," is implemented for "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimStack")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Mandatory components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (defines a `dims` method ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dims are updated on getindex ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims_base"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": `refdims` returns a tuple of Dimension or empty ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"ndims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": number of dims matches ndims of stack ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"size"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": length of dims matches size of stack ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_layerdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild paaarnet and dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_dims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild dims from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_parent_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild_layerdims_kw"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": rebuild parent from args ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"rebuild"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": all rebuild arguments and keywords are accepted ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"Optional components")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"refdims"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (refdims are updated in args rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," refdims are updated in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," dropped dimensions are added to refdims ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5a32a3","--shiki-dark":"#b392f0"}},"metadata"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},": (rebuild updates metadata in arg rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"],")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," rebuild updates metadata in kw rebuild ["),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"])")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Implementation summary:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#dbab09","--shiki-dark":"#ffea7f"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," correctly implements "),i("span",{style:{"--shiki-light":"#0366d6","--shiki-dark":"#2188ff"}},"DimensionalData.DimStackInterface: "),i("span",{style:{"--shiki-light":"#28a745","--shiki-dark":"#34d058"}},"true")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1)])),_:1})]),_:1})])}const D=n(o,[["render",g]]);export{b as __pageData,D as default}; diff --git a/previews/PR872/assets/fznpaoc.Cr0VT91V.svg b/previews/PR872/assets/fznpaoc.Cr0VT91V.svg new file mode 100644 index 000000000..1fba33504 --- /dev/null +++ b/previews/PR872/assets/fznpaoc.Cr0VT91V.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/get_info.md.CWxMjrPQ.js b/previews/PR872/assets/get_info.md.CWxMjrPQ.js new file mode 100644 index 000000000..0636d8ced --- /dev/null +++ b/previews/PR872/assets/get_info.md.CWxMjrPQ.js @@ -0,0 +1,66 @@ +import{_ as d,c as p,a4 as k,G as l,w as e,B as n,o as g,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"Getters","description":"","frontmatter":{},"headers":[],"relativePath":"get_info.md","filePath":"get_info.md","lastUpdated":null}'),r={name:"get_info.md"};function c(o,a,u,y,E,v){const t=n("PluginTabsTab"),h=n("PluginTabs");return g(),p("div",null,[a[24]||(a[24]=k(`

Getters

DimensionalData.jl defines consistent methods to retrieve information from objects like DimArray, DimStack, Tuples of Dimension, Dimension, and Lookup.

First, we will define an example DimArray.

julia
using DimensionalData
+using DimensionalData.Lookups
+x, y = X(10:-1:1), Y(100.0:10:200.0)
(↓ X 10:-1:1,
+→ Y 100.0:10.0:200.0)
julia
julia> A = rand(x, y)
╭────────────────────────────╮
+10×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  100.0       110.0        120.0190.0       200.0
+ 10      0.616666    0.561953     0.0157247        0.177857    0.856524
+  9      0.660024    0.395523     0.0109523        0.552838    0.0536623
+  8      0.112606    0.548479     0.0545071        0.755722    0.830655
+  7      0.839223    0.0400057    0.702845         0.384116    0.445628
+  6      0.734452    0.65906      0.506965    …    0.654591    0.44097
+  5      0.89757     0.748725     0.00633515       0.178022    0.106904
+  4      0.969026    0.0042232    0.63959          0.423538    0.556096
+  3      0.106472    0.274713     0.589536         0.805743    0.390342
+  2      0.861535    0.167465     0.507581         0.799964    0.292431
+  1      0.245499    0.742732     0.095824    …    0.90203     0.86858
`,7)),l(h,null,{default:e(()=>[l(t,{label:"dims"},{default:e(()=>a[0]||(a[0]=[i("p",null,[i("code",null,"dims"),s(" retrieves dimensions from any object that has them.")],-1),i("p",null,[s("What makes it so useful is that you can filter which dimensions you want, and specify in what order, using any "),i("code",null,"Dimension"),s(", "),i("code",null,"Type{Dimension}"),s(" or "),i("code",null,"Symbol"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X,))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"reverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"otherdims"},{default:e(()=>a[1]||(a[1]=[i("p",null,[i("code",null,"otherdims"),s(" is just like "),i("code",null,"dims"),s(" but returns whatever "),i("code",null,"dims"),s(" would "),i("em",null,"not"),s(" return from the same query.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X,))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"lookup"},{default:e(()=>a[2]||(a[2]=[i("p",null,[s("Get all the "),i("code",null,"Lookup"),s(" in an object")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10:-1:1")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1)])),_:1}),l(t,{label:"val"},{default:e(()=>a[3]||(a[3]=[i("p",null,[i("code",null,"val"),s(" is used where there is an unambiguous single value:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," val"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"7")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," val"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10.5")])])])],-1)])),_:1}),l(t,{label:"order"},{default:e(()=>a[4]||(a[4]=[i("p",null,[s("Get the order of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(ReverseOrdered(), ForwardOrdered())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(ReverseOrdered(), ForwardOrdered())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ReverseOrdered()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ForwardOrdered()")])])])],-1)])),_:1}),l(t,{label:"sampling"},{default:e(()=>a[5]||(a[5]=[i("p",null,[s("Get the sampling of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Points(), Points())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Points(), Points())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Points()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Points()")])])])],-1)])),_:1}),l(t,{label:"span"},{default:e(()=>a[6]||(a[6]=[i("p",null,[s("Get the span of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Regular{Int64}(-1), Regular{Float64}(10.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Regular{Int64}(-1), Regular{Float64}(10.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Regular{Int64}(-1)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Regular{Float64}(10.0)")])])])],-1)])),_:1}),l(t,{label:"locus"},{default:e(()=>a[7]||(a[7]=[i("p",null,[s("Get the locus of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("p",null,[s("("),i("code",null,"locus"),s(" is our term for distinguishing if an lookup value specifies the start, center, or end of an interval)")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Center(), Center())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Center(), Center())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Center()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Center()")])])])],-1)])),_:1}),l(t,{label:"bounds"},{default:e(()=>a[8]||(a[8]=[i("p",null,[s("Get the bounds of each dimension. This is different for "),i("code",null,"Points"),s(" and "),i("code",null,"Intervals"),s(" - the bounds for points of a "),i("code",null,"Lookup"),s(" are simply "),i("code",null,"(first(l), last(l))"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"((1, 10), (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"((1, 10), (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(1, 10)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(100.0, 200.0)")])])])],-1)])),_:1}),l(t,{label:"intervalbounds"},{default:e(()=>a[9]||(a[9]=[i("p",null,"Get the bounds of each interval along a dimension.",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"([(10, 10), (9, 9), (8, 8), (7, 7), (6, 6), (5, 5), (4, 4), (3, 3), (2, 2), (1, 1)], [(100.0, 100.0), (110.0, 110.0), (120.0, 120.0), (130.0, 130.0), (140.0, 140.0), (150.0, 150.0), (160.0, 160.0), (170.0, 170.0), (180.0, 180.0), (190.0, 190.0), (200.0, 200.0)])")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"([(10, 10), (9, 9), (8, 8), (7, 7), (6, 6), (5, 5), (4, 4), (3, 3), (2, 2), (1, 1)], [(100.0, 100.0), (110.0, 110.0), (120.0, 120.0), (130.0, 130.0), (140.0, 140.0), (150.0, 150.0), (160.0, 160.0), (170.0, 170.0), (180.0, 180.0), (190.0, 190.0), (200.0, 200.0)])")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (10, 10)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (9, 9)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (8, 8)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (7, 7)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (6, 6)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (5, 5)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (4, 4)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (3, 3)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2, 2)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1, 1)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"11-element Vector{Tuple{Float64, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (100.0, 100.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (110.0, 110.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (120.0, 120.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (130.0, 130.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (140.0, 140.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (150.0, 150.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (160.0, 160.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (170.0, 170.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (180.0, 180.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (190.0, 190.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (200.0, 200.0)")])])])],-1)])),_:1}),l(t,{label:"extent"},{default:e(()=>a[10]||(a[10]=[i("p",null,[i("a",{href:"https://github.com/rafaqz/Extent",target:"_blank",rel:"noreferrer"},"Extents.jl"),s(" provides an "),i("code",null,"Extent"),s(" object that combines the names of dimensions with their bounds.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Extents"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," extent")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10), Y = (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10),)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10), Y = (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1)])),_:1})]),_:1}),a[25]||(a[25]=k('

Predicates

These always return true or false. With multiple dimensions, false means !all and true means all.

dims and all other methods listed above can use predicates to filter the returned dimensions.

',3)),l(h,null,{default:e(()=>[l(t,{label:"issampled"},{default:e(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1)])),_:1}),l(t,{label:"iscategorical"},{default:e(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"iscyclic"},{default:e(()=>a[13]||(a[13]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscyclic)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscyclic)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isordered"},{default:e(()=>a[14]||(a[14]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isforward"},{default:e(()=>a[15]||(a[15]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isforward)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isforward)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isreverse"},{default:e(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isreverse)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isreverse)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isintervals"},{default:e(()=>a[17]||(a[17]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isintervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isintervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"ispoints"},{default:e(()=>a[18]||(a[18]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, ispoints)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, ispoints)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isregular"},{default:e(()=>a[19]||(a[19]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isexplicit"},{default:e(()=>a[20]||(a[20]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isexplicit)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isexplicit)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isstart"},{default:e(()=>a[21]||(a[21]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isstart)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isstart)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"iscenter"},{default:e(()=>a[22]||(a[22]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscenter)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscenter)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isend"},{default:e(()=>a[23]||(a[23]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isend)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isend)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1})]),_:1})])}const m=d(r,[["render",c]]);export{C as __pageData,m as default}; diff --git a/previews/PR872/assets/get_info.md.CWxMjrPQ.lean.js b/previews/PR872/assets/get_info.md.CWxMjrPQ.lean.js new file mode 100644 index 000000000..0636d8ced --- /dev/null +++ b/previews/PR872/assets/get_info.md.CWxMjrPQ.lean.js @@ -0,0 +1,66 @@ +import{_ as d,c as p,a4 as k,G as l,w as e,B as n,o as g,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"Getters","description":"","frontmatter":{},"headers":[],"relativePath":"get_info.md","filePath":"get_info.md","lastUpdated":null}'),r={name:"get_info.md"};function c(o,a,u,y,E,v){const t=n("PluginTabsTab"),h=n("PluginTabs");return g(),p("div",null,[a[24]||(a[24]=k(`

Getters

DimensionalData.jl defines consistent methods to retrieve information from objects like DimArray, DimStack, Tuples of Dimension, Dimension, and Lookup.

First, we will define an example DimArray.

julia
using DimensionalData
+using DimensionalData.Lookups
+x, y = X(10:-1:1), Y(100.0:10:200.0)
(↓ X 10:-1:1,
+→ Y 100.0:10.0:200.0)
julia
julia> A = rand(x, y)
╭────────────────────────────╮
+10×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  100.0       110.0        120.0190.0       200.0
+ 10      0.616666    0.561953     0.0157247        0.177857    0.856524
+  9      0.660024    0.395523     0.0109523        0.552838    0.0536623
+  8      0.112606    0.548479     0.0545071        0.755722    0.830655
+  7      0.839223    0.0400057    0.702845         0.384116    0.445628
+  6      0.734452    0.65906      0.506965    …    0.654591    0.44097
+  5      0.89757     0.748725     0.00633515       0.178022    0.106904
+  4      0.969026    0.0042232    0.63959          0.423538    0.556096
+  3      0.106472    0.274713     0.589536         0.805743    0.390342
+  2      0.861535    0.167465     0.507581         0.799964    0.292431
+  1      0.245499    0.742732     0.095824    …    0.90203     0.86858
`,7)),l(h,null,{default:e(()=>[l(t,{label:"dims"},{default:e(()=>a[0]||(a[0]=[i("p",null,[i("code",null,"dims"),s(" retrieves dimensions from any object that has them.")],-1),i("p",null,[s("What makes it so useful is that you can filter which dimensions you want, and specify in what order, using any "),i("code",null,"Dimension"),s(", "),i("code",null,"Type{Dimension}"),s(" or "),i("code",null,"Symbol"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X,))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"reverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"otherdims"},{default:e(()=>a[1]||(a[1]=[i("p",null,[i("code",null,"otherdims"),s(" is just like "),i("code",null,"dims"),s(" but returns whatever "),i("code",null,"dims"),s(" would "),i("em",null,"not"),s(" return from the same query.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (X,))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"lookup"},{default:e(()=>a[2]||(a[2]=[i("p",null,[s("Get all the "),i("code",null,"Lookup"),s(" in an object")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10:-1:1")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"100.0:10.0:200.0")])])])],-1)])),_:1}),l(t,{label:"val"},{default:e(()=>a[3]||(a[3]=[i("p",null,[i("code",null,"val"),s(" is used where there is an unambiguous single value:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," val"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"7")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," val"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10.5")])])])],-1)])),_:1}),l(t,{label:"order"},{default:e(()=>a[4]||(a[4]=[i("p",null,[s("Get the order of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(ReverseOrdered(), ForwardOrdered())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(ReverseOrdered(), ForwardOrdered())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ReverseOrdered()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," order"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ForwardOrdered()")])])])],-1)])),_:1}),l(t,{label:"sampling"},{default:e(()=>a[5]||(a[5]=[i("p",null,[s("Get the sampling of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Points(), Points())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Points(), Points())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Points()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sampling"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Points()")])])])],-1)])),_:1}),l(t,{label:"span"},{default:e(()=>a[6]||(a[6]=[i("p",null,[s("Get the span of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Regular{Int64}(-1), Regular{Float64}(10.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Regular{Int64}(-1), Regular{Float64}(10.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Regular{Int64}(-1)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," span"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Regular{Float64}(10.0)")])])])],-1)])),_:1}),l(t,{label:"locus"},{default:e(()=>a[7]||(a[7]=[i("p",null,[s("Get the locus of a "),i("code",null,"Lookup"),s(", or a "),i("code",null,"Tuple"),s(" from a "),i("code",null,"DimArray"),s(" or "),i("code",null,"DimTuple"),s(".")],-1),i("p",null,[s("("),i("code",null,"locus"),s(" is our term for distinguishing if an lookup value specifies the start, center, or end of an interval)")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Center(), Center())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(Center(), Center())")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Center()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," locus"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Center()")])])])],-1)])),_:1}),l(t,{label:"bounds"},{default:e(()=>a[8]||(a[8]=[i("p",null,[s("Get the bounds of each dimension. This is different for "),i("code",null,"Points"),s(" and "),i("code",null,"Intervals"),s(" - the bounds for points of a "),i("code",null,"Lookup"),s(" are simply "),i("code",null,"(first(l), last(l))"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"((1, 10), (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"((1, 10), (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(1, 10)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," bounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(100.0, 200.0)")])])])],-1)])),_:1}),l(t,{label:"intervalbounds"},{default:e(()=>a[9]||(a[9]=[i("p",null,"Get the bounds of each interval along a dimension.",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"([(10, 10), (9, 9), (8, 8), (7, 7), (6, 6), (5, 5), (4, 4), (3, 3), (2, 2), (1, 1)], [(100.0, 100.0), (110.0, 110.0), (120.0, 120.0), (130.0, 130.0), (140.0, 140.0), (150.0, 150.0), (160.0, 160.0), (170.0, 170.0), (180.0, 180.0), (190.0, 190.0), (200.0, 200.0)])")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"([(10, 10), (9, 9), (8, 8), (7, 7), (6, 6), (5, 5), (4, 4), (3, 3), (2, 2), (1, 1)], [(100.0, 100.0), (110.0, 110.0), (120.0, 120.0), (130.0, 130.0), (140.0, 140.0), (150.0, 150.0), (160.0, 160.0), (170.0, 170.0), (180.0, 180.0), (190.0, 190.0), (200.0, 200.0)])")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (10, 10)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (9, 9)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (8, 8)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (7, 7)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (6, 6)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (5, 5)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (4, 4)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (3, 3)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2, 2)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1, 1)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"11-element Vector{Tuple{Float64, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (100.0, 100.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (110.0, 110.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (120.0, 120.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (130.0, 130.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (140.0, 140.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (150.0, 150.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (160.0, 160.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (170.0, 170.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (180.0, 180.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (190.0, 190.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (200.0, 200.0)")])])])],-1)])),_:1}),l(t,{label:"extent"},{default:e(()=>a[10]||(a[10]=[i("p",null,[i("a",{href:"https://github.com/rafaqz/Extent",target:"_blank",rel:"noreferrer"},"Extents.jl"),s(" provides an "),i("code",null,"Extent"),s(" object that combines the names of dimensions with their bounds.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Extents"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," extent")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10), Y = (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10),)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Extent(X = (1, 10), Y = (100.0, 200.0))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1)])),_:1})]),_:1}),a[25]||(a[25]=k('

Predicates

These always return true or false. With multiple dimensions, false means !all and true means all.

dims and all other methods listed above can use predicates to filter the returned dimensions.

',3)),l(h,null,{default:e(()=>[l(t,{label:"issampled"},{default:e(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," issampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, issampled)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#6a737d","--shiki-dark":"#d1d5da"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")])])])],-1)])),_:1}),l(t,{label:"iscategorical"},{default:e(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscategorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscategorical)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"iscyclic"},{default:e(()=>a[13]||(a[13]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscyclic)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscyclic)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isordered"},{default:e(()=>a[14]||(a[14]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isforward"},{default:e(()=>a[15]||(a[15]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isforward"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isforward)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isforward)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isreverse"},{default:e(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isreverse"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isreverse)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isreverse)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isintervals"},{default:e(()=>a[17]||(a[17]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isintervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isintervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isintervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"ispoints"},{default:e(()=>a[18]||(a[18]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ispoints"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"lookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, ispoints)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, ispoints)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isregular"},{default:e(()=>a[19]||(a[19]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isregular)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isexplicit"},{default:e(()=>a[20]||(a[20]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isexplicit"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isexplicit)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isexplicit)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"isstart"},{default:e(()=>a[21]||(a[21]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isstart"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isstart)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isstart)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1}),l(t,{label:"iscenter"},{default:e(()=>a[22]||(a[22]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," iscenter"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"true")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscenter)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, iscenter)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1)])),_:1}),l(t,{label:"isend"},{default:e(()=>a[23]||(a[23]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," isend"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"false")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isend)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"()")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," otherdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, isend)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"("),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10:-1:1"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"100.0:10.0:200.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},")")])])])],-1)])),_:1})]),_:1})])}const m=d(r,[["render",c]]);export{C as __pageData,m as default}; diff --git a/previews/PR872/assets/groupby.md.DT4XbEUc.js b/previews/PR872/assets/groupby.md.DT4XbEUc.js new file mode 100644 index 000000000..e25dff9b2 --- /dev/null +++ b/previews/PR872/assets/groupby.md.DT4XbEUc.js @@ -0,0 +1,487 @@ +import{_ as p,c as d,a4 as t,G as e,w as l,j as i,a as s,B as n,o as r}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"Group By","description":"","frontmatter":{},"headers":[],"relativePath":"groupby.md","filePath":"groupby.md","lastUpdated":null}'),g={name:"groupby.md"};function y(f,a,c,o,u,E){const h=n("PluginTabsTab"),k=n("PluginTabs");return r(),d("div",null,[a[25]||(a[25]=t(`

Group By

DimensionalData.jl provides a groupby function for dimensional grouping. This guide covers:

  • simple grouping with a function

  • grouping with Bins

  • grouping with another existing AbstractDimArray or Dimension

Grouping functions

Let's look at the kind of functions that can be used to group DateTime. Other types will follow the same principles, but are usually simpler.

First, load some packages:

julia
using DimensionalData
+using Dates
+using Statistics
+const DD = DimensionalData

Now create a demo DateTime range

julia
julia> tempo = range(DateTime(2000), step=Hour(1), length=365*24*2)
DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")

Let's see how some common functions work.

The hour function will transform values to the hour of the day - the integers 0:23

`,12)),e(k,null,{default:l(()=>[e(h,{label:"hour"},{default:l(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," hour"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 9")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 15")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 17")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 18")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 19")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 20")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 21")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 22")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 23")])])])],-1)])),_:1}),e(h,{label:"day"},{default:l(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," day"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")])])])],-1)])),_:1}),e(h,{label:"month"},{default:l(()=>a[2]||(a[2]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")])])])],-1)])),_:1}),e(h,{label:"dayofweek"},{default:l(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dayofweek"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")])])])],-1)])),_:1}),e(h,{label:"dayofyear"},{default:l(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dayofyear"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")])])])],-1)])),_:1})]),_:1}),a[26]||(a[26]=i("p",null,"Tuple groupings",-1)),e(k,null,{default:l(()=>[e(h,{label:"yearmonth"},{default:l(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearmonth"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")])])])],-1)])),_:1}),e(h,{label:"yearmonthday"},{default:l(()=>a[6]||(a[6]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearmonthday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")])])])],-1)])),_:1}),e(h,{label:"custom"},{default:l(()=>a[7]||(a[7]=[i("p",null,"We can create our own function that returns tuples",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"}},"yearday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x) "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"year"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dayofyear"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x))")])])])],-1),i("p",null,"You can probably guess what it does:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")])])])],-1)])),_:1})]),_:1}),a[27]||(a[27]=t(`

Grouping and reducing

Let's define an array with a time dimension of the times used above:

julia
julia> A = rand(X(1:0.01:2), Ti(tempo))
╭────────────────────────────────╮
+101×17520 DimArray{Float64, 2}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Float64} 1.0:0.01:2.0 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    2000-01-01T00:00:00   2000-01-01T01:00:002001-12-30T23:00:00
+ 1.0   0.654537              0.418968                 0.677549
+ 1.01  0.664038              0.674881                 0.578183
+ 1.02  0.00832284            0.475569                 0.454715
+ 1.03  0.639212              0.616635                 0.875994
+ ⋮                                                 ⋱  ⋮
+ 1.96  0.0106725             0.846581                 0.757228
+ 1.97  0.585756              0.485119                 0.299692
+ 1.98  0.471877              0.889153                 0.336768
+ 1.99  0.428951              0.312976              …  0.948798
+ 2.0   0.921012              0.397575                 0.0897302
`,4)),e(k,null,{default:l(()=>[e(h,{label:"basic"},{default:l(()=>a[8]||(a[8]=[i("p",null,[s("Group by month, using the "),i("code",null,"month"),s(" function:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," groups "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"month)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────────────────────────────┴──────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 11, 12]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>month")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1488"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1488"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1440"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 12"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1464"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"We can take the mean of each group by broadcasting over them:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(groups)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 11, 12]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>month")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499693")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499353")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499069")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500155")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 12"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500136")])])])],-1)])),_:1}),e(h,{label:"sum dayofyear"},{default:l(()=>a[9]||(a[9]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"dayofyear))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"366-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 365, 366]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>dayofyear")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2436.33")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2423.17")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2415.16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2433.51")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 364"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2396.82")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 365"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1201.31")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 366"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1229.82")])])])],-1)])),_:1}),e(h,{label:"maximum yearmonthday"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearmonthday))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"730-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1, 1), (2000, 1, 2), …, (2001, 12, 29), (2001, 12, 30)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearmonthday")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999742")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999253")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999781")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999957")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 28)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999149")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 29)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999534")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 30)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999774")])])])],-1)])),_:1}),e(h,{label:"minimum yearmonth"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearmonth))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"24-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1), (2000, 2), …, (2001, 11), (2001, 12)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearmonth")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.48912e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.21035e-5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5.69689e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.2237e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 10)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.00125e-5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 11)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.78136e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.97132e-5")])])])],-1)])),_:1}),e(h,{label:"median hour"},{default:l(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," median"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"hour))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"24-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[0, 1, …, 22, 23]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>hour")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.501282")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.497559")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.501998")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496943")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 21"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500058")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 22"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.50102")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 23"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.497705")])])])],-1)])),_:1}),e(h,{label:"mean yearday"},{default:l(()=>a[13]||(a[13]=[i("p",null,"We can also use the function we defined above",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearday))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"730-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1), (2000, 2), …, (2001, 363), (2001, 364)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearday")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.506084")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499237")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.505694")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.503785")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 362)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496329")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 363)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496532")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 364)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496092")])])])],-1)])),_:1})]),_:1}),a[28]||(a[28]=i("h2",{id:"binning",tabindex:"-1"},[s("Binning "),i("a",{class:"header-anchor",href:"#binning","aria-label":'Permalink to "Binning"'},"​")],-1)),a[29]||(a[29]=i("p",null,[s("Sometimes we want to further aggregate our groups after running a function, or just bin the raw data directly. We can use the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.Bins"},[i("code",null,"Bins")]),s(" wrapper to do this.")],-1)),e(k,null,{default:l(()=>[e(h,{label:"evenly spaced"},{default:l(()=>a[14]||(a[14]=[i("p",null,[s("For quick analysis, we can break our groups into "),i("code",null,"N"),s(" bins.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 3.75275 (closed-open), 3.75275 .. 6.5055 (closed-open), 6.5055 .. 9.25825 (closed-open), 9.25825 .. 12.011 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, 4)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 3.75275 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4344"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.75275 .. 6.5055 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.5055 .. 9.25825 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.25825 .. 12.011 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4392"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"Doing this requires slightly padding the bin edges, so the lookup of the output is less than ideal.",-1)])),_:1}),e(h,{label:"specific values as bins"},{default:l(()=>a[15]||(a[15]=[i("p",null,[s("When our function returns an "),i("code",null,"Int"),s(", we can use a range of values we want to keep:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:2"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, 1:2)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499693")])])])],-1)])),_:1}),e(h,{label:"selected month bins"},{default:l(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"])))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 3, 5]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, [1, 3, 5])…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499901")])])])],-1)])),_:1}),e(h,{label:"bin groups"},{default:l(()=>a[17]||(a[17]=[i("p",null,[s("We can also specify an "),i("code",null,"AbstractArray"),s(" of grouping "),i("code",null,"AbstractArray"),s(": Here we group by month, and bin the summer and winter months:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, [["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"], ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]]; labels"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," string"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(x)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Vector{String}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'[["12", "1", "2"], ["6", "7", "8"]]'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, [[12, 1, 2], [6, 7, 8]])…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},' ["12", "1", "2"]'),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4320"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},' ["6", "7", "8"]'),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"range bins"},{default:l(()=>a[18]||(a[18]=[i("p",null,[s("First, let's see what "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.ranges"},[i("code",null,"ranges")]),s(" does:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ranges"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"370"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"47-element Vector{UnitRange{Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1:8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 9:16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 17:24")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 25:32")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 33:40")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 41:48")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 49:56")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 57:64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 65:72")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 73:80")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 305:312")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 313:320")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 321:328")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 329:336")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 337:344")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 345:352")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 353:360")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 361:368")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 369:376")])])])],-1),i("p",null,"We can use this vector of ranges to group into blocks, here 8 days :",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(dayofyear, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ranges"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"370"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"47-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────────────────────────────┴──────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{UnitRange{Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1:8, 9:16, …, 361:368, 369:376]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(dayofyear, UnitRange{Int64}[1:8, 9:16, 17:24, 25:32, 33…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1:8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"384"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9:16"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"384"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 361:368"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"240"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 369:376"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,[s("Note: this only works where our function "),i("code",null,"dayofyear"),s(" returns values exactly "),i("code",null,"in"),s(" the ranges. "),i("code",null,"7.5"),s(" would not be included!")],-1)])),_:1}),e(h,{label:"intervals bins"},{default:l(()=>a[19]||(a[19]=[i("p",null,[s("Intervals is like ranges, but for taking all values in an interval, not just discrete "),i("code",null,"Integer"),s("s.")],-1),i("p",null,[i("code",null,"intervals"),s(" returns closed-open "),i("code",null,"IntervalSets.Interval"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"4-element Vector{IntervalSets.Interval{:closed, :open, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 .. 1.3 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.3 .. 1.6 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.6 .. 1.9 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.9 .. 2.2 (closed-open)")])])])],-1),i("p",null,[s("We can use this to bin the "),i("code",null,"Float64"),s(" values on the "),i("code",null,"X"),s(" axis:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," groups "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 1.3 (closed-open), 1.3 .. 1.6 (closed-open), 1.6 .. 1.9 (closed-open), 1.9 .. 2.2 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :X=>Bins(identity, Interval{:closed, :open, Float64}[1.0 .. 1.3 (…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 1.3 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.3 .. 1.6 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6 .. 1.9 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.9 .. 2.2 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,[s("The lookup values of our final array are now "),i("code",null,"IntervalSets.Interval"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(groups)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 1.3 (closed-open), 1.3 .. 1.6 (closed-open), 1.6 .. 1.9 (closed-open), 1.9 .. 2.2 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :X=>Bins(identity, Interval{:closed, :open, Float64}[1.0 .. 1.3 (…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 1.3 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499837")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.3 .. 1.6 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6 .. 1.9 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500355")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.9 .. 2.2 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499959")])])])],-1)])),_:1}),e(h,{label:"seasons"},{default:l(()=>a[20]||(a[20]=[i("p",null,[s("There is a helper function for grouping by three-month seasons and getting nice keys for them: "),i("code",null,"seasons"),s(". Note you have to call it, not just pass it!")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," seasons"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:Dec_Jan_Feb, :Mar_Apr_May, :Jun_Jul_Aug, :Sep_Oct_Nov]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=3, start=12)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Dec_Jan_Feb"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4320"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Mar_Apr_May"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jun_Jul_Aug"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Sep_Oct_Nov"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"We could also start our seasons in January:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," seasons"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"January))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:Jan_Feb_Mar, :Apr_May_Jun, :Jul_Aug_Sep, :Oct_Nov_Dec]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=3, start=1)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jan_Feb_Mar"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4344"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Apr_May_Jun"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jul_Aug_Sep"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Oct_Nov_Dec"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4392"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"months"},{default:l(()=>a[21]||(a[21]=[i("p",null,[s("We can also use "),i("code",null,"months"),s(" to group into arbitrary group sizes, starting wherever we like:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," months"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[Jun_Jul, Aug_Sep, …, Feb_Mar, Apr_May]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=2, start=6)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jun_Jul"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Aug_Sep"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Feb_Mar"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2856"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Apr_May"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"hours"},{default:l(()=>a[22]||(a[22]=[i("p",null,[i("code",null,"hours"),s(" works a lot like "),i("code",null,"months"),s(". Here we group into day and night - two 12 hour blocks starting at 6am:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," hours"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", labels"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 6"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"?"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," :night"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," :"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," :day"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:night, :day]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(hour; cycle=24, step=12, start=6)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :night"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"8760"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :day"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"8030"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1})]),_:1}),a[30]||(a[30]=i("h2",{id:"Select-by-Dimension",tabindex:"-1"},[s("Select by Dimension "),i("a",{class:"header-anchor",href:"#Select-by-Dimension","aria-label":'Permalink to "Select by Dimension {#Select-by-Dimension}"'},"​")],-1)),a[31]||(a[31]=i("ul",null,[i("li",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/dimensions#DimensionalData.Dimensions.Dimension"},[i("code",null,"Dimension")])])],-1)),a[32]||(a[32]=i("p",null,[s("We can also select by "),i("code",null,"Dimension"),s("s and any objects with "),i("code",null,"dims"),s(" methods.")],-1)),e(k,null,{default:l(()=>[e(h,{label:"groupby dims"},{default:l(()=>a[23]||(a[23]=[i("p",null,[s("Trivially, grouping by an object's own dimension is similar to "),i("code",null,"eachslice"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"17520-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────┴───────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :groupby => :Ti=>[DateTime("2000-01-01T00:00:00"), DateTime("2000-01-01T01:00…')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T01:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T02:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2001-12-30T22:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2001-12-30T23:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"groupby AbstractDimArray"},{default:l(()=>a[24]||(a[24]=[i("p",null,"But we can also group by other objects' dimensions:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," B "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[:, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"100"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"34"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.01:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},'DateTime("2000-01-01T00:00:00"):Hour(3):DateTime("2000-01-05T03:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T03:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2000-01-05T03:00:00")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.654537 0.530908 0.980637")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.01"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.664038 0.243842 0.19041")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.02"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.00832284 0.272731 0.532757")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.03"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.639212 0.654129 0.179889")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.96"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0106725 0.75622 0.364079")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.97"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.585756 0.564152 0.107427")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.98"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.471877 0.97406 0.575878")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.99"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.428951 0.207482 … 0.97437")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921012 0.999338 0.325413")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," C "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, B))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"34"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.01:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},'DateTime("2000-01-01T00:00:00"):Hour(3):DateTime("2000-01-05T03:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => (:X=>[1.0, 1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.07, 1.08, 1.09 …")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T03:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2000-01-05T03:00:00")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.654537 0.530908 0.980637")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.01"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.664038 0.243842 0.19041")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.98"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.471877 0.97406 0.575878")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.99"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.428951 0.207482 … 0.97437")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921012 0.999338 0.325413")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @assert"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," size"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(C) "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," size"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(B)")])])])],-1)])),_:1})]),_:1}),a[33]||(a[33]=i("p",null,[i("em",null,"TODO: Apply custom function (i.e. normalization) to grouped output.")],-1))])}const F=p(g,[["render",y]]);export{b as __pageData,F as default}; diff --git a/previews/PR872/assets/groupby.md.DT4XbEUc.lean.js b/previews/PR872/assets/groupby.md.DT4XbEUc.lean.js new file mode 100644 index 000000000..e25dff9b2 --- /dev/null +++ b/previews/PR872/assets/groupby.md.DT4XbEUc.lean.js @@ -0,0 +1,487 @@ +import{_ as p,c as d,a4 as t,G as e,w as l,j as i,a as s,B as n,o as r}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"Group By","description":"","frontmatter":{},"headers":[],"relativePath":"groupby.md","filePath":"groupby.md","lastUpdated":null}'),g={name:"groupby.md"};function y(f,a,c,o,u,E){const h=n("PluginTabsTab"),k=n("PluginTabs");return r(),d("div",null,[a[25]||(a[25]=t(`

Group By

DimensionalData.jl provides a groupby function for dimensional grouping. This guide covers:

  • simple grouping with a function

  • grouping with Bins

  • grouping with another existing AbstractDimArray or Dimension

Grouping functions

Let's look at the kind of functions that can be used to group DateTime. Other types will follow the same principles, but are usually simpler.

First, load some packages:

julia
using DimensionalData
+using Dates
+using Statistics
+const DD = DimensionalData

Now create a demo DateTime range

julia
julia> tempo = range(DateTime(2000), step=Hour(1), length=365*24*2)
DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")

Let's see how some common functions work.

The hour function will transform values to the hour of the day - the integers 0:23

`,12)),e(k,null,{default:l(()=>[e(h,{label:"hour"},{default:l(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," hour"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 4")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 9")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 15")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 17")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 18")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 19")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 20")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 21")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 22")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 23")])])])],-1)])),_:1}),e(h,{label:"day"},{default:l(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," day"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 30")])])])],-1)])),_:1}),e(h,{label:"month"},{default:l(()=>a[2]||(a[2]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 12")])])])],-1)])),_:1}),e(h,{label:"dayofweek"},{default:l(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dayofweek"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 7")])])])],-1)])),_:1}),e(h,{label:"dayofyear"},{default:l(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dayofyear"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 364")])])])],-1)])),_:1})]),_:1}),a[26]||(a[26]=i("p",null,"Tuple groupings",-1)),e(k,null,{default:l(()=>[e(h,{label:"yearmonth"},{default:l(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearmonth"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12)")])])])],-1)])),_:1}),e(h,{label:"yearmonthday"},{default:l(()=>a[6]||(a[6]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearmonthday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 12, 30)")])])])],-1)])),_:1}),e(h,{label:"custom"},{default:l(()=>a[7]||(a[7]=[i("p",null,"We can create our own function that returns tuples",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"}},"yearday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x) "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"year"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dayofyear"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x))")])])])],-1),i("p",null,"You can probably guess what it does:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," yearday"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(tempo)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"17520-element Vector{Tuple{Int64, Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2000, 1)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2001, 364)")])])])],-1)])),_:1})]),_:1}),a[27]||(a[27]=t(`

Grouping and reducing

Let's define an array with a time dimension of the times used above:

julia
julia> A = rand(X(1:0.01:2), Ti(tempo))
╭────────────────────────────────╮
+101×17520 DimArray{Float64, 2}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Float64} 1.0:0.01:2.0 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    2000-01-01T00:00:00   2000-01-01T01:00:002001-12-30T23:00:00
+ 1.0   0.654537              0.418968                 0.677549
+ 1.01  0.664038              0.674881                 0.578183
+ 1.02  0.00832284            0.475569                 0.454715
+ 1.03  0.639212              0.616635                 0.875994
+ ⋮                                                 ⋱  ⋮
+ 1.96  0.0106725             0.846581                 0.757228
+ 1.97  0.585756              0.485119                 0.299692
+ 1.98  0.471877              0.889153                 0.336768
+ 1.99  0.428951              0.312976              …  0.948798
+ 2.0   0.921012              0.397575                 0.0897302
`,4)),e(k,null,{default:l(()=>[e(h,{label:"basic"},{default:l(()=>a[8]||(a[8]=[i("p",null,[s("Group by month, using the "),i("code",null,"month"),s(" function:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," groups "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"month)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────────────────────────────┴──────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 11, 12]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>month")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1488"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1488"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1440"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 12"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1464"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"We can take the mean of each group by broadcasting over them:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(groups)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 11, 12]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>month")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499693")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499353")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499069")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500155")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 12"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500136")])])])],-1)])),_:1}),e(h,{label:"sum dayofyear"},{default:l(()=>a[9]||(a[9]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"dayofyear))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"366-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 2, …, 365, 366]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>dayofyear")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2436.33")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2423.17")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2415.16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2433.51")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 364"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2396.82")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 365"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1201.31")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 366"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1229.82")])])])],-1)])),_:1}),e(h,{label:"maximum yearmonthday"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearmonthday))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"730-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1, 1), (2000, 1, 2), …, (2001, 12, 29), (2001, 12, 30)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearmonthday")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999742")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999253")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999781")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999957")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 28)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999149")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 29)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999534")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12, 30)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.999774")])])])],-1)])),_:1}),e(h,{label:"minimum yearmonth"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearmonth))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"24-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1), (2000, 2), …, (2001, 11), (2001, 12)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearmonth")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.48912e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.21035e-5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5.69689e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.2237e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 10)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.00125e-5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 11)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3.78136e-6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 12)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2.97132e-5")])])])],-1)])),_:1}),e(h,{label:"median hour"},{default:l(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," median"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"hour))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"24-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────┴────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[0, 1, …, 22, 23]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>hour")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.501282")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.497559")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.501998")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496943")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 21"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500058")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 22"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.50102")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 23"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.497705")])])])],-1)])),_:1}),e(h,{label:"mean yearday"},{default:l(()=>a[13]||(a[13]=[i("p",null,"We can also use the function we defined above",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"yearday))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"730-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Tuple{Int64, Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[(2000, 1), (2000, 2), …, (2001, 363), (2001, 364)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>yearday")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 1)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.506084")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 2)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499237")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 3)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.505694")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2000, 4)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.503785")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 362)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496329")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 363)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496532")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," (2001, 364)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.496092")])])])],-1)])),_:1})]),_:1}),a[28]||(a[28]=i("h2",{id:"binning",tabindex:"-1"},[s("Binning "),i("a",{class:"header-anchor",href:"#binning","aria-label":'Permalink to "Binning"'},"​")],-1)),a[29]||(a[29]=i("p",null,[s("Sometimes we want to further aggregate our groups after running a function, or just bin the raw data directly. We can use the "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.Bins"},[i("code",null,"Bins")]),s(" wrapper to do this.")],-1)),e(k,null,{default:l(()=>[e(h,{label:"evenly spaced"},{default:l(()=>a[14]||(a[14]=[i("p",null,[s("For quick analysis, we can break our groups into "),i("code",null,"N"),s(" bins.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 3.75275 (closed-open), 3.75275 .. 6.5055 (closed-open), 6.5055 .. 9.25825 (closed-open), 9.25825 .. 12.011 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, 4)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 3.75275 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4344"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.75275 .. 6.5055 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.5055 .. 9.25825 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.25825 .. 12.011 (closed-open)"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4392"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"Doing this requires slightly padding the bin edges, so the lookup of the output is less than ideal.",-1)])),_:1}),e(h,{label:"specific values as bins"},{default:l(()=>a[15]||(a[15]=[i("p",null,[s("When our function returns an "),i("code",null,"Int"),s(", we can use a range of values we want to keep:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:2"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, 1:2)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499693")])])])],-1)])),_:1}),e(h,{label:"selected month bins"},{default:l(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"])))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1, 3, 5]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, [1, 3, 5])…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500665")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499901")])])])],-1)])),_:1}),e(h,{label:"bin groups"},{default:l(()=>a[17]||(a[17]=[i("p",null,[s("We can also specify an "),i("code",null,"AbstractArray"),s(" of grouping "),i("code",null,"AbstractArray"),s(": Here we group by month, and bin the summer and winter months:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(month, [["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"], ["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"7"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]]; labels"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," string"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(x)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Vector{String}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'[["12", "1", "2"], ["6", "7", "8"]]'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(month, [[12, 1, 2], [6, 7, 8]])…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},' ["12", "1", "2"]'),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4320"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},' ["6", "7", "8"]'),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"range bins"},{default:l(()=>a[18]||(a[18]=[i("p",null,[s("First, let's see what "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.ranges"},[i("code",null,"ranges")]),s(" does:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ranges"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"370"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"47-element Vector{UnitRange{Int64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1:8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 9:16")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 17:24")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 25:32")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 33:40")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 41:48")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 49:56")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 57:64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 65:72")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 73:80")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 305:312")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 313:320")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 321:328")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 329:336")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 337:344")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 345:352")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 353:360")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 361:368")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 369:376")])])])],-1),i("p",null,"We can use this vector of ranges to group into blocks, here 8 days :",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(dayofyear, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ranges"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"370"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"47-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────────────────────────────┴──────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{UnitRange{Int64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1:8, 9:16, …, 361:368, 369:376]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>Bins(dayofyear, UnitRange{Int64}[1:8, 9:16, 17:24, 25:32, 33…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1:8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"384"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9:16"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"384"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 361:368"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"240"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 369:376"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,[s("Note: this only works where our function "),i("code",null,"dayofyear"),s(" returns values exactly "),i("code",null,"in"),s(" the ranges. "),i("code",null,"7.5"),s(" would not be included!")],-1)])),_:1}),e(h,{label:"intervals bins"},{default:l(()=>a[19]||(a[19]=[i("p",null,[s("Intervals is like ranges, but for taking all values in an interval, not just discrete "),i("code",null,"Integer"),s("s.")],-1),i("p",null,[i("code",null,"intervals"),s(" returns closed-open "),i("code",null,"IntervalSets.Interval"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"4-element Vector{IntervalSets.Interval{:closed, :open, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.0 .. 1.3 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.3 .. 1.6 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.6 .. 1.9 (closed-open)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1.9 .. 2.2 (closed-open)")])])])],-1),i("p",null,[s("We can use this to bin the "),i("code",null,"Float64"),s(" values on the "),i("code",null,"X"),s(" axis:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," groups "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Bins"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 1.3 (closed-open), 1.3 .. 1.6 (closed-open), 1.6 .. 1.9 (closed-open), 1.9 .. 2.2 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :X=>Bins(identity, Interval{:closed, :open, Float64}[1.0 .. 1.3 (…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 1.3 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.3 .. 1.6 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6 .. 1.9 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.9 .. 2.2 (closed-open)"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 11"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"17520"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,[s("The lookup values of our final array are now "),i("code",null,"IntervalSets.Interval"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".(groups)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{IntervalSets.Interval{:closed, :open, Float64}} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0 .. 1.3 (closed-open), 1.3 .. 1.6 (closed-open), 1.6 .. 1.9 (closed-open), 1.9 .. 2.2 (closed-open)]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :X=>Bins(identity, Interval{:closed, :open, Float64}[1.0 .. 1.3 (…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0 .. 1.3 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499837")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.3 .. 1.6 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500331")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6 .. 1.9 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.500355")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.9 .. 2.2 (closed-open)"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.499959")])])])],-1)])),_:1}),e(h,{label:"seasons"},{default:l(()=>a[20]||(a[20]=[i("p",null,[s("There is a helper function for grouping by three-month seasons and getting nice keys for them: "),i("code",null,"seasons"),s(". Note you have to call it, not just pass it!")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," seasons"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:Dec_Jan_Feb, :Mar_Apr_May, :Jun_Jul_Aug, :Sep_Oct_Nov]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=3, start=12)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Dec_Jan_Feb"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4320"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Mar_Apr_May"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jun_Jul_Aug"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Sep_Oct_Nov"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1),i("p",null,"We could also start our seasons in January:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," seasons"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"January))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:Jan_Feb_Mar, :Apr_May_Jun, :Jul_Aug_Sep, :Oct_Nov_Dec]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=3, start=1)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jan_Feb_Mar"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4344"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Apr_May_Jun"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4368"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jul_Aug_Sep"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4416"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Oct_Nov_Dec"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"4392"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"months"},{default:l(()=>a[21]||(a[21]=[i("p",null,[s("We can also use "),i("code",null,"months"),s(" to group into arbitrary group sizes, starting wherever we like:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," months"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[Jun_Jul, Aug_Sep, …, Feb_Mar, Apr_May]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(month; cycle=12, step=2, start=6)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Jun_Jul"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Aug_Sep"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Feb_Mar"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2856"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :Apr_May"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2928"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"hours"},{default:l(()=>a[22]||(a[22]=[i("p",null,[i("code",null,"hours"),s(" works a lot like "),i("code",null,"months"),s(". Here we group into day and night - two 12 hour blocks starting at 6am:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," hours"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; start"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", labels"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 6"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"?"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," :night"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," :"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," :day"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────┴───────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:night, :day]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => :Ti=>CyclicBins(hour; cycle=24, step=12, start=6)…")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :night"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"8760"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :day"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"8030"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1})]),_:1}),a[30]||(a[30]=i("h2",{id:"Select-by-Dimension",tabindex:"-1"},[s("Select by Dimension "),i("a",{class:"header-anchor",href:"#Select-by-Dimension","aria-label":'Permalink to "Select by Dimension {#Select-by-Dimension}"'},"​")],-1)),a[31]||(a[31]=i("ul",null,[i("li",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/dimensions#DimensionalData.Dimensions.Dimension"},[i("code",null,"Dimension")])])],-1)),a[32]||(a[32]=i("p",null,[s("We can also select by "),i("code",null,"Dimension"),s("s and any objects with "),i("code",null,"dims"),s(" methods.")],-1)),e(k,null,{default:l(()=>[e(h,{label:"groupby dims"},{default:l(()=>a[23]||(a[23]=[i("p",null,[s("Trivially, grouping by an object's own dimension is similar to "),i("code",null,"eachslice"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"dims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Ti))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"17520-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimGroupByArray{DimArray{Float64,1},1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────┴───────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :groupby => :Ti=>[DateTime("2000-01-01T00:00:00"), DateTime("2000-01-01T01:00…')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────── group dims ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," ↓ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"→ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Ti")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T01:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T02:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2001-12-30T22:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2001-12-30T23:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray")])])])],-1)])),_:1}),e(h,{label:"groupby AbstractDimArray"},{default:l(()=>a[24]||(a[24]=[i("p",null,"But we can also group by other objects' dimensions:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," B "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[:, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"100"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"34"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.01:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},'DateTime("2000-01-01T00:00:00"):Hour(3):DateTime("2000-01-05T03:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T03:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2000-01-05T03:00:00")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.654537 0.530908 0.980637")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.01"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.664038 0.243842 0.19041")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.02"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.00832284 0.272731 0.532757")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.03"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.639212 0.654129 0.179889")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.96"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0106725 0.75622 0.364079")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.97"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.585756 0.564152 0.107427")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.98"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.471877 0.97406 0.575878")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.99"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.428951 0.207482 … 0.97437")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921012 0.999338 0.325413")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," C "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},".("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"groupby"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, B))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"101"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"34"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.01:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Ti"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{DateTime} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},'DateTime("2000-01-01T00:00:00"):Hour(3):DateTime("2000-01-05T03:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, Any} with 1 entry:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," :groupby => (:X=>[1.0, 1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.07, 1.08, 1.09 …")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2000-01-01T03:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2000-01-05T03:00:00")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.654537 0.530908 0.980637")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.01"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.664038 0.243842 0.19041")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.98"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.471877 0.97406 0.575878")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.99"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.428951 0.207482 … 0.97437")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921012 0.999338 0.325413")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," @assert"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," size"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(C) "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," size"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(B)")])])])],-1)])),_:1})]),_:1}),a[33]||(a[33]=i("p",null,[i("em",null,"TODO: Apply custom function (i.e. normalization) to grouped output.")],-1))])}const F=p(g,[["render",y]]);export{b as __pageData,F as default}; diff --git a/previews/PR872/assets/ifocdvs.aA03bjeh.svg b/previews/PR872/assets/ifocdvs.aA03bjeh.svg new file mode 100644 index 000000000..cac070896 --- /dev/null +++ b/previews/PR872/assets/ifocdvs.aA03bjeh.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/index.md.BfKrr5Sg.js b/previews/PR872/assets/index.md.BfKrr5Sg.js new file mode 100644 index 000000000..22b03ec0a --- /dev/null +++ b/previews/PR872/assets/index.md.BfKrr5Sg.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.ByNLHi2E.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"DimensionalData.jl","text":"Julia datasets with named dimensions","tagline":"High performance named indexing for Julia","image":{"src":"/logo.png"},"actions":[{"theme":"brand","text":"Getting Started","link":"/basics"},{"theme":"alt","text":"API reference","link":"/api/reference"},{"theme":"alt","text":"View on Github","link":"https://github.com/rafaqz/DimensionalData.jl"}]},"features":[{"title":"Intelligent indexing","details":"DimensionalData.jl provides no-cost abstractions for named indexing, and fast index lookups.","link":"/selectors"},{"title":"Powerful Array manipulation","details":"broadcast, reduce, permutedims, and groupby operations.","link":"/groupby"},{"title":"Seamlessly integrated with the julia ecosystem","details":"Works with most methods that accept a regular Array. If a method accepts numeric indices or dims=X in base, you should be able to use DimensionalData.jl dims."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":null}'),i={name:"index.md"};function n(s,o,r,l,d,m){return a(),t("div")}const u=e(i,[["render",n]]);export{p as __pageData,u as default}; diff --git a/previews/PR872/assets/index.md.BfKrr5Sg.lean.js b/previews/PR872/assets/index.md.BfKrr5Sg.lean.js new file mode 100644 index 000000000..22b03ec0a --- /dev/null +++ b/previews/PR872/assets/index.md.BfKrr5Sg.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.ByNLHi2E.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"DimensionalData.jl","text":"Julia datasets with named dimensions","tagline":"High performance named indexing for Julia","image":{"src":"/logo.png"},"actions":[{"theme":"brand","text":"Getting Started","link":"/basics"},{"theme":"alt","text":"API reference","link":"/api/reference"},{"theme":"alt","text":"View on Github","link":"https://github.com/rafaqz/DimensionalData.jl"}]},"features":[{"title":"Intelligent indexing","details":"DimensionalData.jl provides no-cost abstractions for named indexing, and fast index lookups.","link":"/selectors"},{"title":"Powerful Array manipulation","details":"broadcast, reduce, permutedims, and groupby operations.","link":"/groupby"},{"title":"Seamlessly integrated with the julia ecosystem","details":"Works with most methods that accept a regular Array. If a method accepts numeric indices or dims=X in base, you should be able to use DimensionalData.jl dims."}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":null}'),i={name:"index.md"};function n(s,o,r,l,d,m){return a(),t("div")}const u=e(i,[["render",n]]);export{p as __pageData,u as default}; diff --git a/previews/PR872/assets/integrations.md.BArDZBrD.js b/previews/PR872/assets/integrations.md.BArDZBrD.js new file mode 100644 index 000000000..db57934ea --- /dev/null +++ b/previews/PR872/assets/integrations.md.BArDZBrD.js @@ -0,0 +1 @@ +import{_ as e,c as r,a4 as t,o}from"./chunks/framework.ByNLHi2E.js";const p=JSON.parse('{"title":"Integrations","description":"","frontmatter":{},"headers":[],"relativePath":"integrations.md","filePath":"integrations.md","lastUpdated":null}'),s={name:"integrations.md"};function i(l,a,n,d,c,h){return o(),r("div",null,a[0]||(a[0]=[t('

Integrations

Rasters.jl

Rasters.jl extends DimensionalData for geospatial data manipulation, providing file load/save capabilities for a wide range of raster data sources and common GIS tools like polygon rasterization and masking. Raster types are aware of their crs and their missingval (which is often not missing for performance and storage reasons).

Rasters.jl is also the reason DimensionalData.jl exists at all! But it always made sense to separate out spatial indexing from GIS tools and dependencies.

A Raster is a AbstractDimArray, a RasterStack is a AbstractDimStack, and Projected and Mapped are AbstractSampled lookups.

YAXArrays.jl

YAXArrays.jl is another spatial data package aimed more at (very) large datasets. Its functionality is slowly converging with Rasters.jl (both wrapping DiskArrays.jl/DimensionalData.jl) and we work closely with the developers.

YAXArray is a AbstractDimArray and inherits its behaviours.

ClimateBase.jl

ClimateBase.jl Extends DimensionalData.jl with methods for analysis of climate data.

ArviZ.jl

ArviZ.jl Is a Julia package for exploratory analysis of Bayesian models.

An ArviZ.Dataset is an AbstractDimStack!

JuMP.jl

JuMP.jl is a powerful optimization DSL. It defines its own named array types but now accepts any AbstractDimArray too, through a package extension.

CryoGrid.jl

CryoGrid.jl A Julia implementation of the CryoGrid permafrost model.

CryoGridOutput uses DimArray for views into output data.

DynamicGrids.jl

DynamicGrids.jl is a spatial simulation engine, for cellular automata and spatial process models.

All DynamicGrids.jl Outputs are <: AbstractDimArray, and AbstractDimArray are used for auxiliary data to allow temporal synchronisation during simulations. Notably, this all works on GPUs!

AstroImages.jl

AstroImages.jl Provides tools to load and visualise astronomical images. AstroImage is <: AbstractDimArray.

TimeseriesTools.jl

TimeseriesTools.jl Uses DimArray for time-series data.

',25)]))}const u=e(s,[["render",i]]);export{p as __pageData,u as default}; diff --git a/previews/PR872/assets/integrations.md.BArDZBrD.lean.js b/previews/PR872/assets/integrations.md.BArDZBrD.lean.js new file mode 100644 index 000000000..db57934ea --- /dev/null +++ b/previews/PR872/assets/integrations.md.BArDZBrD.lean.js @@ -0,0 +1 @@ +import{_ as e,c as r,a4 as t,o}from"./chunks/framework.ByNLHi2E.js";const p=JSON.parse('{"title":"Integrations","description":"","frontmatter":{},"headers":[],"relativePath":"integrations.md","filePath":"integrations.md","lastUpdated":null}'),s={name:"integrations.md"};function i(l,a,n,d,c,h){return o(),r("div",null,a[0]||(a[0]=[t('

Integrations

Rasters.jl

Rasters.jl extends DimensionalData for geospatial data manipulation, providing file load/save capabilities for a wide range of raster data sources and common GIS tools like polygon rasterization and masking. Raster types are aware of their crs and their missingval (which is often not missing for performance and storage reasons).

Rasters.jl is also the reason DimensionalData.jl exists at all! But it always made sense to separate out spatial indexing from GIS tools and dependencies.

A Raster is a AbstractDimArray, a RasterStack is a AbstractDimStack, and Projected and Mapped are AbstractSampled lookups.

YAXArrays.jl

YAXArrays.jl is another spatial data package aimed more at (very) large datasets. Its functionality is slowly converging with Rasters.jl (both wrapping DiskArrays.jl/DimensionalData.jl) and we work closely with the developers.

YAXArray is a AbstractDimArray and inherits its behaviours.

ClimateBase.jl

ClimateBase.jl Extends DimensionalData.jl with methods for analysis of climate data.

ArviZ.jl

ArviZ.jl Is a Julia package for exploratory analysis of Bayesian models.

An ArviZ.Dataset is an AbstractDimStack!

JuMP.jl

JuMP.jl is a powerful optimization DSL. It defines its own named array types but now accepts any AbstractDimArray too, through a package extension.

CryoGrid.jl

CryoGrid.jl A Julia implementation of the CryoGrid permafrost model.

CryoGridOutput uses DimArray for views into output data.

DynamicGrids.jl

DynamicGrids.jl is a spatial simulation engine, for cellular automata and spatial process models.

All DynamicGrids.jl Outputs are <: AbstractDimArray, and AbstractDimArray are used for auxiliary data to allow temporal synchronisation during simulations. Notably, this all works on GPUs!

AstroImages.jl

AstroImages.jl Provides tools to load and visualise astronomical images. AstroImage is <: AbstractDimArray.

TimeseriesTools.jl

TimeseriesTools.jl Uses DimArray for time-series data.

',25)]))}const u=e(s,[["render",i]]);export{p as __pageData,u as default}; diff --git a/previews/PR872/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 b/previews/PR872/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 new file mode 100644 index 000000000..b6b603d59 Binary files /dev/null and b/previews/PR872/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 differ diff --git a/previews/PR872/assets/inter-italic-cyrillic.By2_1cv3.woff2 b/previews/PR872/assets/inter-italic-cyrillic.By2_1cv3.woff2 new file mode 100644 index 000000000..def40a4f6 Binary files /dev/null and b/previews/PR872/assets/inter-italic-cyrillic.By2_1cv3.woff2 differ diff --git a/previews/PR872/assets/inter-italic-greek-ext.1u6EdAuj.woff2 b/previews/PR872/assets/inter-italic-greek-ext.1u6EdAuj.woff2 new file mode 100644 index 000000000..e070c3d30 Binary files /dev/null and b/previews/PR872/assets/inter-italic-greek-ext.1u6EdAuj.woff2 differ diff --git a/previews/PR872/assets/inter-italic-greek.DJ8dCoTZ.woff2 b/previews/PR872/assets/inter-italic-greek.DJ8dCoTZ.woff2 new file mode 100644 index 000000000..a3c16ca40 Binary files /dev/null and b/previews/PR872/assets/inter-italic-greek.DJ8dCoTZ.woff2 differ diff --git a/previews/PR872/assets/inter-italic-latin-ext.CN1xVJS-.woff2 b/previews/PR872/assets/inter-italic-latin-ext.CN1xVJS-.woff2 new file mode 100644 index 000000000..2210a899e Binary files /dev/null and b/previews/PR872/assets/inter-italic-latin-ext.CN1xVJS-.woff2 differ diff --git a/previews/PR872/assets/inter-italic-latin.C2AdPX0b.woff2 b/previews/PR872/assets/inter-italic-latin.C2AdPX0b.woff2 new file mode 100644 index 000000000..790d62dc7 Binary files /dev/null and b/previews/PR872/assets/inter-italic-latin.C2AdPX0b.woff2 differ diff --git a/previews/PR872/assets/inter-italic-vietnamese.BSbpV94h.woff2 b/previews/PR872/assets/inter-italic-vietnamese.BSbpV94h.woff2 new file mode 100644 index 000000000..1eec0775a Binary files /dev/null and b/previews/PR872/assets/inter-italic-vietnamese.BSbpV94h.woff2 differ diff --git a/previews/PR872/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 b/previews/PR872/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 new file mode 100644 index 000000000..2cfe61536 Binary files /dev/null and b/previews/PR872/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 differ diff --git a/previews/PR872/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 b/previews/PR872/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 new file mode 100644 index 000000000..e3886dd14 Binary files /dev/null and b/previews/PR872/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 differ diff --git a/previews/PR872/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 b/previews/PR872/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 new file mode 100644 index 000000000..36d67487d Binary files /dev/null and b/previews/PR872/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 differ diff --git a/previews/PR872/assets/inter-roman-greek.BBVDIX6e.woff2 b/previews/PR872/assets/inter-roman-greek.BBVDIX6e.woff2 new file mode 100644 index 000000000..2bed1e85e Binary files /dev/null and b/previews/PR872/assets/inter-roman-greek.BBVDIX6e.woff2 differ diff --git a/previews/PR872/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 b/previews/PR872/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 new file mode 100644 index 000000000..9a8d1e2b5 Binary files /dev/null and b/previews/PR872/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 differ diff --git a/previews/PR872/assets/inter-roman-latin.Di8DUHzh.woff2 b/previews/PR872/assets/inter-roman-latin.Di8DUHzh.woff2 new file mode 100644 index 000000000..07d3c53ae Binary files /dev/null and b/previews/PR872/assets/inter-roman-latin.Di8DUHzh.woff2 differ diff --git a/previews/PR872/assets/inter-roman-vietnamese.BjW4sHH5.woff2 b/previews/PR872/assets/inter-roman-vietnamese.BjW4sHH5.woff2 new file mode 100644 index 000000000..57bdc22ae Binary files /dev/null and b/previews/PR872/assets/inter-roman-vietnamese.BjW4sHH5.woff2 differ diff --git a/previews/PR872/assets/itircyw.CHd-coyf.svg b/previews/PR872/assets/itircyw.CHd-coyf.svg new file mode 100644 index 000000000..4bdf7b9a9 --- /dev/null +++ b/previews/PR872/assets/itircyw.CHd-coyf.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/object_modification.md.9iFLPWcE.js b/previews/PR872/assets/object_modification.md.9iFLPWcE.js new file mode 100644 index 000000000..a7ef34963 --- /dev/null +++ b/previews/PR872/assets/object_modification.md.9iFLPWcE.js @@ -0,0 +1,137 @@ +import{_ as d,c as p,a4 as k,G as e,w as l,j as i,a as s,B as n,o as r}from"./chunks/framework.ByNLHi2E.js";const m=JSON.parse('{"title":"Modifying Objects","description":"","frontmatter":{},"headers":[],"relativePath":"object_modification.md","filePath":"object_modification.md","lastUpdated":null}'),g={name:"object_modification.md"};function y(o,a,c,f,u,E){const h=n("PluginTabsTab"),t=n("PluginTabs");return r(),p("div",null,[a[12]||(a[12]=k('

Modifying Objects

DimensionalData.jl objects are all struct rather than mutable struct. The only things you can modify in-place are the values of the contained arrays or metadata Dicts if they exist.

Everything else must be rebuilt and assigned to a variable.

modify

Modify the inner arrays of a AbstractDimArray or AbstractDimStack, with modify. This can be useful to e.g. replace all arrays with CuArray moving the data to the GPU, collect all inner arrays to Array without losing the outer DimArray wrappers, and similar things.

',5)),e(t,null,{default:l(()=>[e(h,{label:"array"},{default:l(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Bool, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────┴────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 BitMatrix:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_mod "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Bool, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────┴────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A_mod)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1)])),_:1}),e(h,{label:"stack"},{default:l(()=>a[1]||(a[1]=[i("p",null,[s("For a stack, this applies to all layers, and is where "),i("code",null,"modify"),s(" starts to be more powerful:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((a"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), b"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────┴─────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Bool"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Bool"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 BitMatrix:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, st)"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, st)"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"b)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1)])),_:1})]),_:1}),a[13]||(a[13]=i("h2",{id:"reorder",tabindex:"-1"},[i("code",null,"reorder"),s(),i("a",{class:"header-anchor",href:"#reorder","aria-label":'Permalink to "`reorder` {#reorder}"'},"​")],-1)),a[14]||(a[14]=i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/object_modification#reorder"},[i("code",null,"reorder")]),s(" is like reverse but declarative, rather than imperative: we tell it how we want the object to be, not what to do.")],-1)),e(t,null,{default:l(()=>[e(h,{label:"specific dimension/s"},{default:l(()=>a[2]||(a[2]=[i("p",null,"Reorder a specific dimension",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Lookups;")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'a'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},":"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'n'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"));")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reorder"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")])])])],-1)])),_:1}),e(h,{label:"all dimensions"},{default:l(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reorder"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ReverseOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'n':-1:'a'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'l'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'c'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.86789 0.487197 0.744517 0.208271 0.686915 0.884218")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.933212 0.298728 0.824556 0.247032 0.0915867 0.903705")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.364844 0.474052 0.474755 0.317813 0.193627 0.159092")])])])],-1)])),_:1})]),_:1}),a[15]||(a[15]=k('

mergedims

mergedims is like reshape, but simultaneously merges multiple dimensions into a single combined dimension with a lookup holding Tuples of the values of both dimensions.

rebuild

rebuild is one of the core functions of DimensionalData.jl. Basically everything uses it somewhere. And you can too, with a few caveats.

Warning

rebuild assumes you know what you are doing. You can quite easily set values to things that don't make sense. The constructor may check a few things, like the number of dimensions matches the axes of the array. But not much else.

',5)),e(t,null,{default:l(()=>[e(h,{label:"change the name"},{default:l(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rebuild"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":my_array"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," my_array"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴─────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," name"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A1)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},":my_array")])])])],-1)])),_:1}),e(h,{label:"change the metadata"},{default:l(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rebuild"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," =>"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},' "foo"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," =>"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},' "bar"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, String} with 2 entries:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :a => "foo"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :b => "bar"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A1)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Dict{Symbol, String} with 2 entries:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :a => "foo"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :b => "bar"')])])])],-1)])),_:1})]),_:1}),a[16]||(a[16]=k('

The most common use internally is the arg version on Dimension. This is very useful in dimension-based algorithms as a way to transform a dimension wrapper from one object to another:

julia
julia> d = X(1)
X 1
julia
julia> rebuild(d, 1:10)
X 1:10

rebuild applications are listed here. AbstractDimArray and AbstractDimStack always accept these keywords or arguments, but those in [ ] brackets may be thrown away if not needed. Keywords in ( ) will error if used where they are not accepted.

TypeKeywordsArguments
AbstractDimArraydata, dims, [refdims, name, metadata]as with kw, in order
AbstractDimStackdata, dims, [refdims], layerdims, [metadata, layermetadata]as with kw, in order
Dimensionvalval
Selectorval, (atol)val
Lookupdata, (order, span, sampling, metadata)keywords only

rebuild magic

rebuild with keywords will even work on objects DD doesn't know about!

julia
julia> nt = (a = 1, b = 2)
(a = 1, b = 2)
julia
julia> rebuild(nt, a = 99)
(a = 99, b = 2)

Really, the keyword version is just ConstructionBase.setproperties underneath, but wrapped so objects can customise the DD interface without changing the more generic ConstructionBase.jl behaviours and breaking e.g. Accessors.jl in the process.

set

set gives us a way to set the values of the immutable objects in DD, like Dimension and LookupArray. Unlike rebuild it tries its best to do the right thing. You don't have to specify what field you want to set. Just pass in the object you want to be part of the lookup. Usually, there is no possible ambiguity.

set is still improving. Sometimes it may not do the right thing. If you think this is the case, create a GitHub issue.

',17)),e(t,null,{default:l(()=>[e(h,{label:"set the dimension wrapper"},{default:l(()=>a[6]||(a[6]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Z)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Z"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"clear the lookups"},{default:l(()=>a[7]||(a[7]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," NoLookup, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," NoLookup)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.615705 … 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.565229 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.593346 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set different lookup values"},{default:l(()=>a[8]||(a[8]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"140"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:10:140"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 20"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"120"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 130"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 140")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set lookup type as well as values"},{default:l(()=>a[9]||(a[9]=[i("p",null,"Change the values but also set the type to Sampled. TODO: broken",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"140"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:10:140"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," NoSpan"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," NoSampling")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 20"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"120"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 130"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 140")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set the points in X to be intervals"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Intervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Center}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set the categories in Y to be `Unordered`"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Unordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("p",null,":::",-1)])),_:1})]),_:1})])}const v=d(g,[["render",y]]);export{m as __pageData,v as default}; diff --git a/previews/PR872/assets/object_modification.md.9iFLPWcE.lean.js b/previews/PR872/assets/object_modification.md.9iFLPWcE.lean.js new file mode 100644 index 000000000..a7ef34963 --- /dev/null +++ b/previews/PR872/assets/object_modification.md.9iFLPWcE.lean.js @@ -0,0 +1,137 @@ +import{_ as d,c as p,a4 as k,G as e,w as l,j as i,a as s,B as n,o as r}from"./chunks/framework.ByNLHi2E.js";const m=JSON.parse('{"title":"Modifying Objects","description":"","frontmatter":{},"headers":[],"relativePath":"object_modification.md","filePath":"object_modification.md","lastUpdated":null}'),g={name:"object_modification.md"};function y(o,a,c,f,u,E){const h=n("PluginTabsTab"),t=n("PluginTabs");return r(),p("div",null,[a[12]||(a[12]=k('

Modifying Objects

DimensionalData.jl objects are all struct rather than mutable struct. The only things you can modify in-place are the values of the contained arrays or metadata Dicts if they exist.

Everything else must be rebuilt and assigned to a variable.

modify

Modify the inner arrays of a AbstractDimArray or AbstractDimStack, with modify. This can be useful to e.g. replace all arrays with CuArray moving the data to the GPU, collect all inner arrays to Array without losing the outer DimArray wrappers, and similar things.

',5)),e(t,null,{default:l(()=>[e(h,{label:"array"},{default:l(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Bool, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────┴────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 BitMatrix:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_mod "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Bool, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────┴────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A_mod)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1)])),_:1}),e(h,{label:"stack"},{default:l(()=>a[1]||(a[1]=[i("p",null,[s("For a stack, this applies to all layers, and is where "),i("code",null,"modify"),s(" starts to be more powerful:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((a"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), b"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"falses"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────┴─────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Bool"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Bool"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 BitMatrix:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, st)"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," parent"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"modify"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Array, st)"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"b)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"3×5 Matrix{Bool}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0 0 0 0 0")])])])],-1)])),_:1})]),_:1}),a[13]||(a[13]=i("h2",{id:"reorder",tabindex:"-1"},[i("code",null,"reorder"),s(),i("a",{class:"header-anchor",href:"#reorder","aria-label":'Permalink to "`reorder` {#reorder}"'},"​")],-1)),a[14]||(a[14]=i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/object_modification#reorder"},[i("code",null,"reorder")]),s(" is like reverse but declarative, rather than imperative: we tell it how we want the object to be, not what to do.")],-1)),e(t,null,{default:l(()=>[e(h,{label:"specific dimension/s"},{default:l(()=>a[2]||(a[2]=[i("p",null,"Reorder a specific dimension",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Lookups;")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'a'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},":"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'n'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"));")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reorder"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")])])])],-1)])),_:1}),e(h,{label:"all dimensions"},{default:l(()=>a[3]||(a[3]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reorder"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ReverseOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'n':-1:'a'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'l'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'c'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.86789 0.487197 0.744517 0.208271 0.686915 0.884218")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.933212 0.298728 0.824556 0.247032 0.0915867 0.903705")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.364844 0.474052 0.474755 0.317813 0.193627 0.159092")])])])],-1)])),_:1})]),_:1}),a[15]||(a[15]=k('

mergedims

mergedims is like reshape, but simultaneously merges multiple dimensions into a single combined dimension with a lookup holding Tuples of the values of both dimensions.

rebuild

rebuild is one of the core functions of DimensionalData.jl. Basically everything uses it somewhere. And you can too, with a few caveats.

Warning

rebuild assumes you know what you are doing. You can quite easily set values to things that don't make sense. The constructor may check a few things, like the number of dimensions matches the axes of the array. But not much else.

',5)),e(t,null,{default:l(()=>[e(h,{label:"change the name"},{default:l(()=>a[4]||(a[4]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rebuild"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":my_array"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," my_array"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴─────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," name"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A1)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},":my_array")])])])],-1)])),_:1}),e(h,{label:"change the metadata"},{default:l(()=>a[5]||(a[5]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rebuild"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; metadata"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Dict"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," =>"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},' "foo"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," =>"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},' "bar"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────────────────────────────────────── metadata ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Dict{Symbol, String} with 2 entries:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :a => "foo"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :b => "bar"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," metadata"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A1)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Dict{Symbol, String} with 2 entries:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :a => "foo"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' :b => "bar"')])])])],-1)])),_:1})]),_:1}),a[16]||(a[16]=k('

The most common use internally is the arg version on Dimension. This is very useful in dimension-based algorithms as a way to transform a dimension wrapper from one object to another:

julia
julia> d = X(1)
X 1
julia
julia> rebuild(d, 1:10)
X 1:10

rebuild applications are listed here. AbstractDimArray and AbstractDimStack always accept these keywords or arguments, but those in [ ] brackets may be thrown away if not needed. Keywords in ( ) will error if used where they are not accepted.

TypeKeywordsArguments
AbstractDimArraydata, dims, [refdims, name, metadata]as with kw, in order
AbstractDimStackdata, dims, [refdims], layerdims, [metadata, layermetadata]as with kw, in order
Dimensionvalval
Selectorval, (atol)val
Lookupdata, (order, span, sampling, metadata)keywords only

rebuild magic

rebuild with keywords will even work on objects DD doesn't know about!

julia
julia> nt = (a = 1, b = 2)
(a = 1, b = 2)
julia
julia> rebuild(nt, a = 99)
(a = 99, b = 2)

Really, the keyword version is just ConstructionBase.setproperties underneath, but wrapped so objects can customise the DD interface without changing the more generic ConstructionBase.jl behaviours and breaking e.g. Accessors.jl in the process.

set

set gives us a way to set the values of the immutable objects in DD, like Dimension and LookupArray. Unlike rebuild it tries its best to do the right thing. You don't have to specify what field you want to set. Just pass in the object you want to be part of the lookup. Usually, there is no possible ambiguity.

set is still improving. Sometimes it may not do the right thing. If you think this is the case, create a GitHub issue.

',17)),e(t,null,{default:l(()=>[e(h,{label:"set the dimension wrapper"},{default:l(()=>a[6]||(a[6]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Z)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Z"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"clear the lookups"},{default:l(()=>a[7]||(a[7]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," NoLookup, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," NoLookup)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"→ "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.615705 … 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.565229 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.593346 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set different lookup values"},{default:l(()=>a[8]||(a[8]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"140"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:10:140"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 20"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"120"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 130"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 140")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set lookup type as well as values"},{default:l(()=>a[9]||(a[9]=[i("p",null,"Change the values but also set the type to Sampled. TODO: broken",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"140"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10:10:140"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," NoSpan"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," NoSampling")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 20"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 30"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"120"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 130"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 140")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set the points in X to be intervals"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Intervals)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Center}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1)])),_:1}),e(h,{label:"set the categories in Y to be `Unordered`"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, Y "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Unordered)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"14"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────────────┴──────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:3.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'a':1:'n'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'a'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'b'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'c'"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"'l'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'm'"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 'n'")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.159092 0.193627 0.317813 0.474755 0.474052 0.364844")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.903705 0.0915867 0.247032 0.824556 0.298728 0.933212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.884218 0.686915 0.208271 0.744517 0.487197 0.86789")])])])],-1),i("p",null,":::",-1)])),_:1})]),_:1})])}const v=d(g,[["render",y]]);export{m as __pageData,v as default}; diff --git a/previews/PR872/assets/ogtyhxw.CCyMSy2O.svg b/previews/PR872/assets/ogtyhxw.CCyMSy2O.svg new file mode 100644 index 000000000..3f3ffda2d --- /dev/null +++ b/previews/PR872/assets/ogtyhxw.CCyMSy2O.svg @@ -0,0 +1,1072 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/oqyizkf.DtePuwiC.svg b/previews/PR872/assets/oqyizkf.DtePuwiC.svg new file mode 100644 index 000000000..f8487477c --- /dev/null +++ b/previews/PR872/assets/oqyizkf.DtePuwiC.svg @@ -0,0 +1,517 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/plots.md.K0bqzHQt.js b/previews/PR872/assets/plots.md.K0bqzHQt.js new file mode 100644 index 000000000..64a766eef --- /dev/null +++ b/previews/PR872/assets/plots.md.K0bqzHQt.js @@ -0,0 +1,12 @@ +import{_ as i,c as a,a4 as t,o as l}from"./chunks/framework.ByNLHi2E.js";const e="/DimensionalData.jl/previews/PR872/assets/cljjmmh.wy-ul34S.svg",h="/DimensionalData.jl/previews/PR872/assets/sxuybmz.D5bwtKy3.svg",n="/DimensionalData.jl/previews/PR872/assets/rjcvept.BqNWAx4q.svg",p="/DimensionalData.jl/previews/PR872/assets/oqyizkf.DtePuwiC.svg",k="/DimensionalData.jl/previews/PR872/assets/ogtyhxw.CCyMSy2O.svg",r="/DimensionalData.jl/previews/PR872/assets/itircyw.CHd-coyf.svg",d="/DimensionalData.jl/previews/PR872/assets/ifocdvs.aA03bjeh.svg",o="/DimensionalData.jl/previews/PR872/assets/fznpaoc.Cr0VT91V.svg",E="/DimensionalData.jl/previews/PR872/assets/yqlixmh.DNNBmrjN.svg",v=JSON.parse('{"title":"Plots.jl","description":"","frontmatter":{},"headers":[],"relativePath":"plots.md","filePath":"plots.md","lastUpdated":null}'),c={name:"plots.md"};function g(y,s,F,C,u,m){return l(),a("div",null,s[0]||(s[0]=[t(`

Plots.jl

Plots.jl and Makie.jl functions mostly work out of the box on AbstractDimArray, although not with the same results - they choose to follow each packages default behaviour as much as possible.

This will plot a line plot with 'a', 'b' and 'c' in the legend, and values 1-10 on the labelled X axis:

Plots.jl support is deprecated, as development is moving to Makie.jl

Makie.jl

Makie.jl functions also mostly work with AbstractDimArray and will permute and reorder axes into the right places, especially if X/Y/Z/Ti dimensions are used.

In Makie a DimMatrix will plot as a heatmap by default, but it will have labels and axes in the right places:

julia
using DimensionalData, CairoMakie
+
+A = rand(X(10:10:100), Y([:a, :b, :c]))
+Makie.plot(A; colormap=:inferno)

Other plots also work, here DD ignores the axis order and instead favours the categorical variable for the X axis:

julia
Makie.rainclouds(A)

AlgebraOfGraphics.jl

AlgebraOfGraphics.jl is a high-level plotting library built on top of Makie.jl that provides a declarative algebra for creating complex visualizations, similar to ggplot2's "grammar of graphics" in R. It allows you to construct plots using algebraic operations like * and +, making it easy to create sophisticated graphics with minimal code.

Any DimensionalArray is also a Tables.jl table, so it can be used with AlgebraOfGraphics.jl directly. You can indicate columns in mapping with Symbols directly (like :X or :Y), or you can use the Dim type directly (like X or Y)!

Note

If your dimensional array is not named, then you can access the data as the :unnamed column. Otherwise, the data is accessible by its name.

Let's start with a simple example, and plot a 2-D dimarray as a scatter plot, colored by its value.

julia
using DimensionalData, AlgebraOfGraphics, CairoMakie
+
+A = DimArray(rand(10, 10), (X(1:10), Y(1:10)), name = :data)
+
+data(A) * mapping(X, Y; color = :data) * visual(Scatter) |> draw

Don't restrict yourself to standard visualizations! You can use all of AlgebraOfGraphics' features.

Let's plot each X-slice, faceted in Y:

julia
data(A) * mapping(X, :data; layout = Y => nonnumeric) * visual(Lines) |> draw

This approach is also applicable to DimStacks, since they also convert to DimTables. Let's see an example here.

We'll construct a DimStack with the :data layer being our DimArray A, and an X-only variable :color that we'll use to color the line.

julia
color_vec = DimVector(1:10, X)
+ds = DimStack((; data = A, color = color_vec))
+
+data(ds) * mapping(X, :data; color = :color, layout = Y => nonnumeric) * visual(Lines) |> draw

Note

If you wish to subset your DimArray, you can't pass selectors like X(1 .. 2) to AlgebraOfGraphics. Instead, subset the DimArray you pass to data - this is a very cheap operation.

Test series plots

default colormap

julia
B = rand(X(10:10:100), Y([:a, :b, :c, :d, :e, :f, :g, :h, :i, :j]))
+Makie.series(B)

A different colormap

The colormap is controlled by the color argument, which can take as an input a named colormap, i.e. :plasma or a list of colours.

julia
Makie.series(B; color=:plasma)

julia
Makie.series(A; color=[:red, :blue, :orange])

with markers

julia
Makie.series(A; color=[:red, :blue, :orange], markersize=15)

A lot more is planned for Makie.jl plots in future!

',42)]))}const D=i(c,[["render",g]]);export{v as __pageData,D as default}; diff --git a/previews/PR872/assets/plots.md.K0bqzHQt.lean.js b/previews/PR872/assets/plots.md.K0bqzHQt.lean.js new file mode 100644 index 000000000..64a766eef --- /dev/null +++ b/previews/PR872/assets/plots.md.K0bqzHQt.lean.js @@ -0,0 +1,12 @@ +import{_ as i,c as a,a4 as t,o as l}from"./chunks/framework.ByNLHi2E.js";const e="/DimensionalData.jl/previews/PR872/assets/cljjmmh.wy-ul34S.svg",h="/DimensionalData.jl/previews/PR872/assets/sxuybmz.D5bwtKy3.svg",n="/DimensionalData.jl/previews/PR872/assets/rjcvept.BqNWAx4q.svg",p="/DimensionalData.jl/previews/PR872/assets/oqyizkf.DtePuwiC.svg",k="/DimensionalData.jl/previews/PR872/assets/ogtyhxw.CCyMSy2O.svg",r="/DimensionalData.jl/previews/PR872/assets/itircyw.CHd-coyf.svg",d="/DimensionalData.jl/previews/PR872/assets/ifocdvs.aA03bjeh.svg",o="/DimensionalData.jl/previews/PR872/assets/fznpaoc.Cr0VT91V.svg",E="/DimensionalData.jl/previews/PR872/assets/yqlixmh.DNNBmrjN.svg",v=JSON.parse('{"title":"Plots.jl","description":"","frontmatter":{},"headers":[],"relativePath":"plots.md","filePath":"plots.md","lastUpdated":null}'),c={name:"plots.md"};function g(y,s,F,C,u,m){return l(),a("div",null,s[0]||(s[0]=[t(`

Plots.jl

Plots.jl and Makie.jl functions mostly work out of the box on AbstractDimArray, although not with the same results - they choose to follow each packages default behaviour as much as possible.

This will plot a line plot with 'a', 'b' and 'c' in the legend, and values 1-10 on the labelled X axis:

Plots.jl support is deprecated, as development is moving to Makie.jl

Makie.jl

Makie.jl functions also mostly work with AbstractDimArray and will permute and reorder axes into the right places, especially if X/Y/Z/Ti dimensions are used.

In Makie a DimMatrix will plot as a heatmap by default, but it will have labels and axes in the right places:

julia
using DimensionalData, CairoMakie
+
+A = rand(X(10:10:100), Y([:a, :b, :c]))
+Makie.plot(A; colormap=:inferno)

Other plots also work, here DD ignores the axis order and instead favours the categorical variable for the X axis:

julia
Makie.rainclouds(A)

AlgebraOfGraphics.jl

AlgebraOfGraphics.jl is a high-level plotting library built on top of Makie.jl that provides a declarative algebra for creating complex visualizations, similar to ggplot2's "grammar of graphics" in R. It allows you to construct plots using algebraic operations like * and +, making it easy to create sophisticated graphics with minimal code.

Any DimensionalArray is also a Tables.jl table, so it can be used with AlgebraOfGraphics.jl directly. You can indicate columns in mapping with Symbols directly (like :X or :Y), or you can use the Dim type directly (like X or Y)!

Note

If your dimensional array is not named, then you can access the data as the :unnamed column. Otherwise, the data is accessible by its name.

Let's start with a simple example, and plot a 2-D dimarray as a scatter plot, colored by its value.

julia
using DimensionalData, AlgebraOfGraphics, CairoMakie
+
+A = DimArray(rand(10, 10), (X(1:10), Y(1:10)), name = :data)
+
+data(A) * mapping(X, Y; color = :data) * visual(Scatter) |> draw

Don't restrict yourself to standard visualizations! You can use all of AlgebraOfGraphics' features.

Let's plot each X-slice, faceted in Y:

julia
data(A) * mapping(X, :data; layout = Y => nonnumeric) * visual(Lines) |> draw

This approach is also applicable to DimStacks, since they also convert to DimTables. Let's see an example here.

We'll construct a DimStack with the :data layer being our DimArray A, and an X-only variable :color that we'll use to color the line.

julia
color_vec = DimVector(1:10, X)
+ds = DimStack((; data = A, color = color_vec))
+
+data(ds) * mapping(X, :data; color = :color, layout = Y => nonnumeric) * visual(Lines) |> draw

Note

If you wish to subset your DimArray, you can't pass selectors like X(1 .. 2) to AlgebraOfGraphics. Instead, subset the DimArray you pass to data - this is a very cheap operation.

Test series plots

default colormap

julia
B = rand(X(10:10:100), Y([:a, :b, :c, :d, :e, :f, :g, :h, :i, :j]))
+Makie.series(B)

A different colormap

The colormap is controlled by the color argument, which can take as an input a named colormap, i.e. :plasma or a list of colours.

julia
Makie.series(B; color=:plasma)

julia
Makie.series(A; color=[:red, :blue, :orange])

with markers

julia
Makie.series(A; color=[:red, :blue, :orange], markersize=15)

A lot more is planned for Makie.jl plots in future!

',42)]))}const D=i(c,[["render",g]]);export{v as __pageData,D as default}; diff --git a/previews/PR872/assets/rjcvept.BqNWAx4q.svg b/previews/PR872/assets/rjcvept.BqNWAx4q.svg new file mode 100644 index 000000000..8e5a9ea3b --- /dev/null +++ b/previews/PR872/assets/rjcvept.BqNWAx4q.svg @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/selectors.md.Cv-qbbZZ.js b/previews/PR872/assets/selectors.md.Cv-qbbZZ.js new file mode 100644 index 000000000..fc8fc53f9 --- /dev/null +++ b/previews/PR872/assets/selectors.md.Cv-qbbZZ.js @@ -0,0 +1,258 @@ +import{_ as p,c as d,a4 as k,G as l,w as h,B as n,o as r,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"Selectors","description":"","frontmatter":{},"headers":[],"relativePath":"selectors.md","filePath":"selectors.md","lastUpdated":null}'),g={name:"selectors.md"};function y(f,a,o,c,E,u){const e=n("PluginTabsTab"),t=n("PluginTabs");return r(),d("div",null,[a[11]||(a[11]=k(`

Selectors

In addition to choosing dimensions by name, we can also select values within them.

First, we can create a DimArray with lookup values as well as dimension names:

julia
using DimensionalData
julia
julia> A = rand(X(1.0:0.2:2.0), Y([:a, :b, :c]))
╭──────────────────────────╮
+6×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a        :b        :c
+ 1.0  0.27736   0.802776  0.621603
+ 1.2  0.444305  0.156538  0.768488
+ 1.4  0.184738  0.226064  0.869012
+ 1.6  0.772277  0.764895  0.101231
+ 1.8  0.711133  0.86273   0.239921
+ 2.0  0.883222  0.748041  0.511313

Then we can use the Selector to select values from the array:

`,7)),l(t,null,{default:h(()=>[l(e,{label:"At"},{default:h(()=>a[0]||(a[0]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.At"},[i("code",null,"At(x)")]),s(" selector gets the index or indices exactly matching the passed in value(s).")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"0.7684883626668314")])])])],-1),i("p",null,"Or within a tolerance:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.99"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.201"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; atol"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.05"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.At"},[i("code",null,"At")]),s(" can also take vectors and ranges:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"])]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.869012")])])])],-1)])),_:1}),l(e,{label:"Near"},{default:h(()=>a[1]||(a[1]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Near"},[i("code",null,"Near(x)")]),s(" selector gets the closest index to the passed in value(s), indexing with an "),i("code",null,"Int"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.245"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :a"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :b"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :c"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768488")])])])],-1),i("p",null,[i("code",null,"Near"),s(" can also take vectors and ranges, which indexes with a "),i("code",null,"Vector{Int}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.25"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1)])),_:1}),l(e,{label:"Contains"},{default:h(()=>a[2]||(a[2]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Contains"},[i("code",null,"Contains(x)")]),s(" selector gets indices where the value x falls within an interval in the lookup.")],-1),i("p",null,[s("First, set the "),i("code",null,"X"),s(" axis to be "),i("code",null,"Intervals"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Lookups")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.2:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.764895 0.101231")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.711133 0.86273 0.239921")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.883222 0.748041 0.511313")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A_intervals, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"6-element Vector{Tuple{Float64, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.0, 1.2)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.2, 1.4)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.4, 1.6)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.6, 1.8)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.8, 2.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2.0, 2.2)")])])])],-1),i("p",null,[s("With a single value, it is like indexing with "),i("code",null,"Int")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Contains"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.245"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :a"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :b"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :c"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768488")])])])],-1),i("p",null,[i("code",null,"Contains"),s(" can also take vectors and ranges, which is like indexing with "),i("code",null,"Vector{Int}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Contains"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.25"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")])])])],-1)])),_:1}),l(e,{label:".."},{default:h(()=>a[3]||(a[3]=[i("p",null,[s("The "),i("code",null,".."),s(" or "),i("code",null,"IntervalSets.Interval"),s(" selector selects a range of values: "),i("code",null,".."),s(" is like indexing with a "),i("code",null,"UnitRange"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.6"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.764895 0.101231")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," IntervalSets")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"OpenInterval"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.4:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Interval{:close,:open}"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1)])),_:1}),l(e,{label:"Touches"},{default:h(()=>a[4]||(a[4]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Touches"},[i("code",null,"Touches")]),s(" selector is like "),i("code",null,".."),s(", but for "),i("code",null,"Intervals"),s(", it will include intervals touched by the selected interval, not inside it.")],-1),i("p",null,[s("This usually means including zero, one, or two cells more than "),i("code",null,".."),s(),i("code",null,"Touches"),s(" is like indexing with a "),i("code",null,"UnitRange")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Touches"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.2"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")])])])],-1)])),_:1}),l(e,{label:"Where"},{default:h(()=>a[5]||(a[5]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Where"},[i("code",null,"Where(f)")]),s(" selector filters the array axis by a function of the dimension index values. "),i("code",null,"Where"),s(" is like indexing with a "),i("code",null,"Vector{Bool}"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.6, 1.8, 2.0]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.101231")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.711133 0.239921")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.883222 0.511313")])])])],-1)])),_:1}),l(e,{label:"Not"},{default:h(()=>a[6]||(a[6]=[i("p",null,[s("The "),i("code",null,"Not(x)"),s(" selector gets all indices "),i("em",null,"not"),s(" selected by "),i("code",null,"x"),s(", which can be another selector. "),i("code",null,"Not"),s(" is like indexing with a "),i("code",null,"Vector{Bool}"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2, 1.6, 1.8, 2.0]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:b]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.802776")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.764895")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.86273")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.748041")])])])],-1)])),_:1})]),_:1}),a[12]||(a[12]=k('

Lookups

Selectors find indices in the Lookup of each dimension. Lookups wrap other AbstractArray (often AbstractRange) but add additional traits to facilitate fast lookups or specifying point or interval behaviour. These are usually detected automatically.

julia
using DimensionalData.Lookups
',3)),l(t,null,{default:h(()=>[l(e,{label:"Sampled lookups"},{default:h(()=>a[7]||(a[7]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Sampled"},[i("code",null,"Sampled(x)")]),s(" lookup holds values sampled along an axis. They may be "),i("code",null,"Ordered"),s("/"),i("code",null,"Unordered"),s(", "),i("code",null,"Intervals"),s("/"),i("code",null,"Points"),s(", and "),i("code",null,"Regular"),s("/"),i("code",null,"Irregular"),s(".")],-1),i("p",null,[s("Most of these properties are usually detected automatically, but here we create a "),i("code",null,"Sampled"),s(" lookup manually:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"100.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(), span"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Regular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10.0:10.0:100.0")])])])],-1),i("p",null,[s("To specify "),i("code",null,"Irregular"),s(),i("code",null,"Intervals"),s(", we should include the outer bounds of the lookup, as we can't determine them from the vector.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"13"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(), span"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Irregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"21"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"6-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")])])])],-1)])),_:1}),l(e,{label:"Categorical lookup"},{default:h(()=>a[8]||(a[8]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Categorical"},[i("code",null,"Categorical(x)")]),s(" lookup is a categorical lookup that holds categories, and may be ordered.")],-1),i("p",null,[s("Create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Categorical"},[i("code",null,"Categorical")]),s(" lookup manually")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Categorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"mon"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"tue"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"weds"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"thur"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"fri"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"sat"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"sun"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Unordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Categorical{String} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"7-element Vector{String}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "mon"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "tue"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "weds"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "thur"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "fri"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "sat"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "sun"')])])])],-1)])),_:1}),l(e,{label:"Cyclic lookups"},{default:h(()=>a[9]||(a[9]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Cyclic"},[i("code",null,"Cyclic(x)")]),s(" lookup is an "),i("code",null,"AbstractSampled"),s(" lookup for cyclical values.")],-1),i("p",null,[s("Create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Cyclic"},[i("code",null,"Cyclic")]),s(" lookup that cycles over 12 months.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Dates")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Cyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2000"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2000"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); cycle"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Cyclic{DateTime} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"AutoOrder"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," AutoSpan"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00")')])])])],-1),i("p",null,[s("There is a shorthand to make a "),i("code",null,"DimArray"),s(" from a "),i("code",null,"Dimension"),s(" with a function of the lookup values. Here we convert the values to the month names:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(monthabbr, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{String, 1}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," monthabbr(X)"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────────────────┴────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Cyclic{DateTime} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jan"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-02-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Feb"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-03-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Mar"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-04-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Apr"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-05-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "May"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-06-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jun"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-07-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jul"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-08-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Aug"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-09-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Sep"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-10-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Oct"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-11-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Nov"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-12-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Dec"')])])])],-1),i("p",null,"Now we can select any date and get the month:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2005"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'"Apr"')])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3047"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"9"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'"Sep"')])])])],-1)])),_:1}),l(e,{label:"NoLookup"},{default:h(()=>a[10]||(a[10]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.NoLookup"},[i("code",null,"NoLookup(x)")]),s(" lookup has no lookup values provided, so "),i("code",null,"Selector"),s("s will not work. When you create a "),i("code",null,"DimArray"),s(" without a lookup array, "),i("code",null,"NoLookup"),s(" will be used. It is also not shown in REPL printing.")],-1),i("p",null,[s("Here we create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.NoLookup"},[i("code",null,"NoLookup")]),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," NoLookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," typeof"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup{AutoValues}")])])])],-1),i("p",null,"Or even fill in the axis:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," NoLookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Base"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"OneTo"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," typeof"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup{Base.OneTo{Int64}}")])])])],-1)])),_:1})]),_:1}),a[13]||(a[13]=k(`

Lookup autodetection

When we define an array, extra properties are detected:

julia
julia> A = DimArray(rand(7, 5), (X(10:10:70), Y([:a, :b, :c, :d, :e])))
╭──────────────────────────╮
+7×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:10:70 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c, :d, :e] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a         :b        :c        :d        :e
+ 10    0.71372    0.301659  0.229418  0.442111  0.680987
+ 20    0.905616   0.307762  0.228248  0.882656  0.396585
+ 30    0.0928922  0.651538  0.152068  0.683795  0.687921
+ 40    0.441181   0.314906  0.650675  0.570603  0.647225
+ 50    0.621662   0.196478  0.97293   0.929034  0.855976
+ 60    0.72217    0.791844  0.883323  0.21921   0.0575993
+ 70    0.896257   0.758149  0.679453  0.506221  0.771237

This array has a Sampled lookup with ForwardOrdered Regular Points for X, and a Categorical ForwardOrdered for Y.

Most lookup types and properties are detected automatically like this from the arrays and ranges used.

  • Arrays and ranges of String, Symbol, and Char are set to Categorical lookup.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered
  • Arrays and ranges of Number, DateTime, and other things are set to Sampled lookups.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered.

    • sampling is set to Points() unless the values are IntervalSets.Interval, then Intervals(Center()) is used.

    • span is detected as Regular(step(range)) for AbstractRange and Irregular(nothing, nothing) for other AbstractArray, where nothing, nothing are the unknown outer bounds of the lookup. They are not needed for Points as the outer values are the outer bounds. But they can be specified manually for Intervals

    • Empty dimensions or dimension types are assigned NoLookup() ranges that can't be used with selectors as they hold no values.

DimSelector

We can also index with arrays of selectors DimSelectors. These are like CartesianIndices or DimIndices, but holding the Selectors At, Near, or Contains.

julia
julia> A = rand(X(1.0:0.2:2.0), Y(10:2:20))
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 10:2:20 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12          14          16          18         20
+ 1.0   0.0775482   0.263531    0.361536    0.508614    0.89559    0.564657
+ 1.2   0.838572    0.388768    0.44818     0.0300922   0.595409   0.952489
+ 1.4   0.166221    0.0689895   0.499307    0.228081    0.473944   0.747695
+ 1.6   0.11787     0.143478    0.0831822   0.528009    0.631878   0.993001
+ 1.8   0.0905873   0.909826    0.557418    0.229792    0.29205    0.699118
+ 2.0   0.495624    0.810377    0.120845    0.574678    0.371583   0.460775

We can define another array with partly matching indices

julia
julia> B = rand(X(1.0:0.04:2.0), Y(20:-1:10))
╭────────────────────────────╮
+26×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.04:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 20:-1:10 ReverseOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   20         1912          11          10
+ 1.0    0.751498   0.988013        0.966133    0.465112    0.227865
+ 1.04   0.241791   0.34589         0.0773793   0.728852    0.462859
+ 1.08   0.412631   0.0143204       0.454134    0.0417586   0.286
+ 1.12   0.300304   0.660657        0.712342    0.806495    0.727464
+ ⋮                             ⋱               ⋮
+ 1.84   0.752331   0.491911        0.221313    0.72454     0.00869054
+ 1.88   0.296393   0.00428189      0.951789    0.142406    0.331422
+ 1.92   0.930699   0.777408        0.0661958   0.0737984   0.539197
+ 1.96   0.744107   0.360032    …   0.0699673   0.264001    0.27206
+ 2.0    0.635373   0.533041        0.574526    0.531012    0.503183

And we can simply select values from B with selectors from A:

julia
julia> B[DimSelectors(A)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.2, …, 1.8, 2.0] ForwardOrdered Irregular Points,
+Y Sampled{Int64} [10, 12, …, 18, 20] ReverseOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12         14          16         18         20
+ 1.0   0.227865    0.966133   0.40169     0.990114   0.358535   0.751498
+ 1.2   0.235356    0.675459   0.426312    0.768719   0.569347   0.399781
+ 1.4   0.508938    0.166186   0.0811277   0.342499   0.819291   0.998484
+ 1.6   0.573391    0.740107   0.817199    0.690159   0.527254   0.634257
+ 1.8   0.0255364   0.895115   0.519705    0.626382   0.171961   0.6063
+ 2.0   0.503183    0.574526   0.98981     0.450629   0.545522   0.635373

If the lookups aren't aligned, we can use Near instead of At, which is like doing a nearest neighbor interpolation:

julia
julia> C = rand(X(1.0:0.007:2.0), Y(10.0:0.9:30))
╭─────────────────────────────╮
+143×23 DimArray{Float64, 2}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.007:1.994 ForwardOrdered Regular Points,
+Y Sampled{Float64} 10.0:0.9:29.8 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       10.928.0         28.9        29.8
+ 1.0     0.341785   0.946655       0.954153     0.0821229   0.828315
+ 1.007   0.275784   0.22401        0.199364     0.485952    0.193179
+ 1.014   0.659836   0.832345       0.672556     0.0760101   0.950007
+ 1.021   0.168617   0.890377       0.258764     0.195897    0.747615
+ ⋮                             ⋱
+ 1.966   0.426134   0.713457       0.693866     0.899783    0.166822
+ 1.973   0.601787   0.904115   …   0.0670244    0.42964     0.639039
+ 1.98    0.902689   0.231483       0.18906      0.670627    0.67989
+ 1.987   0.454047   0.92977        0.493784     0.998661    0.276742
+ 1.994   0.846736   0.0923954      0.00258281   0.273104    0.562491
julia
julia> C[DimSelectors(A; selectors=Near)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.203, …, 1.798, 1.994] ForwardOrdered Irregular Points,
+Y Sampled{Float64} [10.0, 11.8, …, 18.1, 19.9] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       11.8        13.6        16.3       18.1        19.9
+ 1.0     0.341785   0.0506805   0.621422    0.775495   0.198058    0.168554
+ 1.203   0.333095   0.953651    0.943783    0.789816   0.215448    0.106973
+ 1.399   0.641266   0.694096    0.0724261   0.603258   0.994395    0.570396
+ 1.602   0.827349   0.662227    0.682734    0.432028   0.707314    0.0542529
+ 1.798   0.192274   0.243368    0.53407     0.513909   0.0154473   0.450775
+ 1.994   0.846736   0.573469    0.0410007   0.513088   0.221908    0.0135194
`,22))])}const b=p(g,[["render",y]]);export{C as __pageData,b as default}; diff --git a/previews/PR872/assets/selectors.md.Cv-qbbZZ.lean.js b/previews/PR872/assets/selectors.md.Cv-qbbZZ.lean.js new file mode 100644 index 000000000..fc8fc53f9 --- /dev/null +++ b/previews/PR872/assets/selectors.md.Cv-qbbZZ.lean.js @@ -0,0 +1,258 @@ +import{_ as p,c as d,a4 as k,G as l,w as h,B as n,o as r,j as i,a as s}from"./chunks/framework.ByNLHi2E.js";const C=JSON.parse('{"title":"Selectors","description":"","frontmatter":{},"headers":[],"relativePath":"selectors.md","filePath":"selectors.md","lastUpdated":null}'),g={name:"selectors.md"};function y(f,a,o,c,E,u){const e=n("PluginTabsTab"),t=n("PluginTabs");return r(),d("div",null,[a[11]||(a[11]=k(`

Selectors

In addition to choosing dimensions by name, we can also select values within them.

First, we can create a DimArray with lookup values as well as dimension names:

julia
using DimensionalData
julia
julia> A = rand(X(1.0:0.2:2.0), Y([:a, :b, :c]))
╭──────────────────────────╮
+6×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a        :b        :c
+ 1.0  0.27736   0.802776  0.621603
+ 1.2  0.444305  0.156538  0.768488
+ 1.4  0.184738  0.226064  0.869012
+ 1.6  0.772277  0.764895  0.101231
+ 1.8  0.711133  0.86273   0.239921
+ 2.0  0.883222  0.748041  0.511313

Then we can use the Selector to select values from the array:

`,7)),l(t,null,{default:h(()=>[l(e,{label:"At"},{default:h(()=>a[0]||(a[0]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.At"},[i("code",null,"At(x)")]),s(" selector gets the index or indices exactly matching the passed in value(s).")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"0.7684883626668314")])])])],-1),i("p",null,"Or within a tolerance:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.99"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.201"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; atol"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.05"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.At"},[i("code",null,"At")]),s(" can also take vectors and ranges:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"])]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.869012")])])])],-1)])),_:1}),l(e,{label:"Near"},{default:h(()=>a[1]||(a[1]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Near"},[i("code",null,"Near(x)")]),s(" selector gets the closest index to the passed in value(s), indexing with an "),i("code",null,"Int"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.245"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :a"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :b"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :c"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768488")])])])],-1),i("p",null,[i("code",null,"Near"),s(" can also take vectors and ranges, which indexes with a "),i("code",null,"Vector{Int}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.25"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.2, 1.4]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1)])),_:1}),l(e,{label:"Contains"},{default:h(()=>a[2]||(a[2]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Contains"},[i("code",null,"Contains(x)")]),s(" selector gets indices where the value x falls within an interval in the lookup.")],-1),i("p",null,[s("First, set the "),i("code",null,"X"),s(" axis to be "),i("code",null,"Intervals"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," DimensionalData"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Lookups")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," set"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A, X "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.2:2.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.764895 0.101231")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.711133 0.86273 0.239921")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.883222 0.748041 0.511313")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," intervalbounds"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A_intervals, X)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"6-element Vector{Tuple{Float64, Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.0, 1.2)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.2, 1.4)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.4, 1.6)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.6, 1.8)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (1.8, 2.0)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (2.0, 2.2)")])])])],-1),i("p",null,[s("With a single value, it is like indexing with "),i("code",null,"Int")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Contains"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.245"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────┴─────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :a"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :b"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," :c"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.768488")])])])],-1),i("p",null,[i("code",null,"Contains"),s(" can also take vectors and ranges, which is like indexing with "),i("code",null,"Vector{Int}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Contains"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"0.25"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")])])])],-1)])),_:1}),l(e,{label:".."},{default:h(()=>a[3]||(a[3]=[i("p",null,[s("The "),i("code",null,".."),s(" or "),i("code",null,"IntervalSets.Interval"),s(" selector selects a range of values: "),i("code",null,".."),s(" is like indexing with a "),i("code",null,"UnitRange"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.6"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.764895 0.101231")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," IntervalSets")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"OpenInterval"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.4:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Interval{:close,:open}"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1)])),_:1}),l(e,{label:"Touches"},{default:h(()=>a[4]||(a[4]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Touches"},[i("code",null,"Touches")]),s(" selector is like "),i("code",null,".."),s(", but for "),i("code",null,"Intervals"),s(", it will include intervals touched by the selected interval, not inside it.")],-1),i("p",null,[s("This usually means including zero, one, or two cells more than "),i("code",null,".."),s(),i("code",null,"Touches"),s(" is like indexing with a "),i("code",null,"UnitRange")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Touches"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:0.2:1.4"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.27736 0.802776 0.621603")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.184738 0.226064 0.869012")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A_intervals[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.1"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," .."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," 1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.2:0.2:1.2"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :b, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.444305 0.156538 0.768488")])])])],-1)])),_:1}),l(e,{label:"Where"},{default:h(()=>a[5]||(a[5]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Where"},[i("code",null,"Where(f)")]),s(" selector filters the array axis by a function of the dimension index values. "),i("code",null,"Where"),s(" is like indexing with a "),i("code",null,"Vector{Bool}"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"->"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," x "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.6, 1.8, 2.0]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:a, :c]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :a"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :c")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.772277 0.101231")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.711133 0.239921")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.883222 0.511313")])])])],-1)])),_:1}),l(e,{label:"Not"},{default:h(()=>a[6]||(a[6]=[i("p",null,[s("The "),i("code",null,"Not(x)"),s(" selector gets all indices "),i("em",null,"not"),s(" selected by "),i("code",null,"x"),s(", which can be another selector. "),i("code",null,"Not"),s(" is like indexing with a "),i("code",null,"Vector{Bool}"),s(".")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1.3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Where"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"in"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────┴───────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"[1.0, 1.2, 1.6, 1.8, 2.0]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Symbol} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"[:b]"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," :b")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.802776")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.156538")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.764895")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.86273")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.748041")])])])],-1)])),_:1})]),_:1}),a[12]||(a[12]=k('

Lookups

Selectors find indices in the Lookup of each dimension. Lookups wrap other AbstractArray (often AbstractRange) but add additional traits to facilitate fast lookups or specifying point or interval behaviour. These are usually detected automatically.

julia
using DimensionalData.Lookups
',3)),l(t,null,{default:h(()=>[l(e,{label:"Sampled lookups"},{default:h(()=>a[7]||(a[7]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Sampled"},[i("code",null,"Sampled(x)")]),s(" lookup holds values sampled along an axis. They may be "),i("code",null,"Ordered"),s("/"),i("code",null,"Unordered"),s(", "),i("code",null,"Intervals"),s("/"),i("code",null,"Points"),s(", and "),i("code",null,"Regular"),s("/"),i("code",null,"Irregular"),s(".")],-1),i("p",null,[s("Most of these properties are usually detected automatically, but here we create a "),i("code",null,"Sampled"),s(" lookup manually:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"100.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(), span"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Regular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Float64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"10.0:10.0:100.0")])])])],-1),i("p",null,[s("To specify "),i("code",null,"Irregular"),s(),i("code",null,"Intervals"),s(", we should include the outer bounds of the lookup, as we can't determine them from the vector.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Sampled"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"13"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"8"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"5"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(), span"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Irregular"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"21"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Sampled{Int64} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Irregular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"6-element Vector{Int64}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 13")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 8")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 5")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 3")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 1")])])])],-1)])),_:1}),l(e,{label:"Categorical lookup"},{default:h(()=>a[8]||(a[8]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Categorical"},[i("code",null,"Categorical(x)")]),s(" lookup is a categorical lookup that holds categories, and may be ordered.")],-1),i("p",null,[s("Create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Categorical"},[i("code",null,"Categorical")]),s(" lookup manually")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Categorical"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(["),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"mon"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"tue"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"weds"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"thur"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"fri"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"sat"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},'"sun"'),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]; order"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Unordered"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"())")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Categorical{String} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"Unordered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"7-element Vector{String}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "mon"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "tue"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "weds"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "thur"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "fri"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "sat"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "sun"')])])])],-1)])),_:1}),l(e,{label:"Cyclic lookups"},{default:h(()=>a[9]||(a[9]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Cyclic"},[i("code",null,"Cyclic(x)")]),s(" lookup is an "),i("code",null,"AbstractSampled"),s(" lookup for cyclical values.")],-1),i("p",null,[s("Create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.Cyclic"},[i("code",null,"Cyclic")]),s(" lookup that cycles over 12 months.")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}}," using"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," Dates")]),s(` +`),i("span",{class:"line"}),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," Cyclic"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2000"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},":"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2000"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"); cycle"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Month"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"12"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), sampling"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Intervals"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Start"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Cyclic{DateTime} "),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}},"AutoOrder"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," AutoSpan"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"wrapping: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00")')])])])],-1),i("p",null,[s("There is a shorthand to make a "),i("code",null,"DimArray"),s(" from a "),i("code",null,"Dimension"),s(" with a function of the lookup values. Here we convert the values to the month names:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(monthabbr, "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"12-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{String, 1}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," monthabbr(X)"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────────────────────┴────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Cyclic{DateTime} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},'DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00")'),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Intervals{Start}")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-01-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jan"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-02-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Feb"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-03-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Mar"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-04-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Apr"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-05-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "May"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-06-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jun"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-07-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Jul"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-08-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Aug"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-09-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Sep"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-10-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Oct"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-11-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Nov"')]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2000-12-01T00:00:00"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},' "Dec"')])])])],-1),i("p",null,"Now we can select any date and get the month:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2005"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'"Apr"')])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DateTime"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"3047"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"9"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},'"Sep"')])])])],-1)])),_:1}),l(e,{label:"NoLookup"},{default:h(()=>a[10]||(a[10]=[i("p",null,[s("The "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.NoLookup"},[i("code",null,"NoLookup(x)")]),s(" lookup has no lookup values provided, so "),i("code",null,"Selector"),s("s will not work. When you create a "),i("code",null,"DimArray"),s(" without a lookup array, "),i("code",null,"NoLookup"),s(" will be used. It is also not shown in REPL printing.")],-1),i("p",null,[s("Here we create a "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/lookuparrays#DimensionalData.Dimensions.Lookups.NoLookup"},[i("code",null,"NoLookup")]),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," NoLookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"()")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," typeof"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup{AutoValues}")])])])],-1),i("p",null,"Or even fill in the axis:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," l "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," NoLookup"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(Base"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"OneTo"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"10"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," typeof"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(l)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"NoLookup{Base.OneTo{Int64}}")])])])],-1)])),_:1})]),_:1}),a[13]||(a[13]=k(`

Lookup autodetection

When we define an array, extra properties are detected:

julia
julia> A = DimArray(rand(7, 5), (X(10:10:70), Y([:a, :b, :c, :d, :e])))
╭──────────────────────────╮
+7×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:10:70 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c, :d, :e] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a         :b        :c        :d        :e
+ 10    0.71372    0.301659  0.229418  0.442111  0.680987
+ 20    0.905616   0.307762  0.228248  0.882656  0.396585
+ 30    0.0928922  0.651538  0.152068  0.683795  0.687921
+ 40    0.441181   0.314906  0.650675  0.570603  0.647225
+ 50    0.621662   0.196478  0.97293   0.929034  0.855976
+ 60    0.72217    0.791844  0.883323  0.21921   0.0575993
+ 70    0.896257   0.758149  0.679453  0.506221  0.771237

This array has a Sampled lookup with ForwardOrdered Regular Points for X, and a Categorical ForwardOrdered for Y.

Most lookup types and properties are detected automatically like this from the arrays and ranges used.

  • Arrays and ranges of String, Symbol, and Char are set to Categorical lookup.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered
  • Arrays and ranges of Number, DateTime, and other things are set to Sampled lookups.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered.

    • sampling is set to Points() unless the values are IntervalSets.Interval, then Intervals(Center()) is used.

    • span is detected as Regular(step(range)) for AbstractRange and Irregular(nothing, nothing) for other AbstractArray, where nothing, nothing are the unknown outer bounds of the lookup. They are not needed for Points as the outer values are the outer bounds. But they can be specified manually for Intervals

    • Empty dimensions or dimension types are assigned NoLookup() ranges that can't be used with selectors as they hold no values.

DimSelector

We can also index with arrays of selectors DimSelectors. These are like CartesianIndices or DimIndices, but holding the Selectors At, Near, or Contains.

julia
julia> A = rand(X(1.0:0.2:2.0), Y(10:2:20))
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 10:2:20 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12          14          16          18         20
+ 1.0   0.0775482   0.263531    0.361536    0.508614    0.89559    0.564657
+ 1.2   0.838572    0.388768    0.44818     0.0300922   0.595409   0.952489
+ 1.4   0.166221    0.0689895   0.499307    0.228081    0.473944   0.747695
+ 1.6   0.11787     0.143478    0.0831822   0.528009    0.631878   0.993001
+ 1.8   0.0905873   0.909826    0.557418    0.229792    0.29205    0.699118
+ 2.0   0.495624    0.810377    0.120845    0.574678    0.371583   0.460775

We can define another array with partly matching indices

julia
julia> B = rand(X(1.0:0.04:2.0), Y(20:-1:10))
╭────────────────────────────╮
+26×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.04:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 20:-1:10 ReverseOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   20         1912          11          10
+ 1.0    0.751498   0.988013        0.966133    0.465112    0.227865
+ 1.04   0.241791   0.34589         0.0773793   0.728852    0.462859
+ 1.08   0.412631   0.0143204       0.454134    0.0417586   0.286
+ 1.12   0.300304   0.660657        0.712342    0.806495    0.727464
+ ⋮                             ⋱               ⋮
+ 1.84   0.752331   0.491911        0.221313    0.72454     0.00869054
+ 1.88   0.296393   0.00428189      0.951789    0.142406    0.331422
+ 1.92   0.930699   0.777408        0.0661958   0.0737984   0.539197
+ 1.96   0.744107   0.360032    …   0.0699673   0.264001    0.27206
+ 2.0    0.635373   0.533041        0.574526    0.531012    0.503183

And we can simply select values from B with selectors from A:

julia
julia> B[DimSelectors(A)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.2, …, 1.8, 2.0] ForwardOrdered Irregular Points,
+Y Sampled{Int64} [10, 12, …, 18, 20] ReverseOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12         14          16         18         20
+ 1.0   0.227865    0.966133   0.40169     0.990114   0.358535   0.751498
+ 1.2   0.235356    0.675459   0.426312    0.768719   0.569347   0.399781
+ 1.4   0.508938    0.166186   0.0811277   0.342499   0.819291   0.998484
+ 1.6   0.573391    0.740107   0.817199    0.690159   0.527254   0.634257
+ 1.8   0.0255364   0.895115   0.519705    0.626382   0.171961   0.6063
+ 2.0   0.503183    0.574526   0.98981     0.450629   0.545522   0.635373

If the lookups aren't aligned, we can use Near instead of At, which is like doing a nearest neighbor interpolation:

julia
julia> C = rand(X(1.0:0.007:2.0), Y(10.0:0.9:30))
╭─────────────────────────────╮
+143×23 DimArray{Float64, 2}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.007:1.994 ForwardOrdered Regular Points,
+Y Sampled{Float64} 10.0:0.9:29.8 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       10.928.0         28.9        29.8
+ 1.0     0.341785   0.946655       0.954153     0.0821229   0.828315
+ 1.007   0.275784   0.22401        0.199364     0.485952    0.193179
+ 1.014   0.659836   0.832345       0.672556     0.0760101   0.950007
+ 1.021   0.168617   0.890377       0.258764     0.195897    0.747615
+ ⋮                             ⋱
+ 1.966   0.426134   0.713457       0.693866     0.899783    0.166822
+ 1.973   0.601787   0.904115   …   0.0670244    0.42964     0.639039
+ 1.98    0.902689   0.231483       0.18906      0.670627    0.67989
+ 1.987   0.454047   0.92977        0.493784     0.998661    0.276742
+ 1.994   0.846736   0.0923954      0.00258281   0.273104    0.562491
julia
julia> C[DimSelectors(A; selectors=Near)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.203, …, 1.798, 1.994] ForwardOrdered Irregular Points,
+Y Sampled{Float64} [10.0, 11.8, …, 18.1, 19.9] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       11.8        13.6        16.3       18.1        19.9
+ 1.0     0.341785   0.0506805   0.621422    0.775495   0.198058    0.168554
+ 1.203   0.333095   0.953651    0.943783    0.789816   0.215448    0.106973
+ 1.399   0.641266   0.694096    0.0724261   0.603258   0.994395    0.570396
+ 1.602   0.827349   0.662227    0.682734    0.432028   0.707314    0.0542529
+ 1.798   0.192274   0.243368    0.53407     0.513909   0.0154473   0.450775
+ 1.994   0.846736   0.573469    0.0410007   0.513088   0.221908    0.0135194
`,22))])}const b=p(g,[["render",y]]);export{C as __pageData,b as default}; diff --git a/previews/PR872/assets/stacks.md.Cs5P30rl.js b/previews/PR872/assets/stacks.md.Cs5P30rl.js new file mode 100644 index 000000000..6f102f57d --- /dev/null +++ b/previews/PR872/assets/stacks.md.Cs5P30rl.js @@ -0,0 +1,368 @@ +import{_ as n,c as p,a4 as t,G as h,w as l,j as i,a as s,B as d,o as r}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"DimStacks","description":"","frontmatter":{},"headers":[],"relativePath":"stacks.md","filePath":"stacks.md","lastUpdated":null}'),g={name:"stacks.md"};function y(f,a,c,o,u,E){const k=d("PluginTabsTab"),e=d("PluginTabs");return r(),p("div",null,[a[25]||(a[25]=t(`

DimStacks

An AbstractDimStack represents a collection of AbstractDimArray layers that share some or all dimensions. For any two layers, a dimension of the same name must have the identical lookup - in fact, only one is stored for all layers to enforce this consistency.

julia
julia> using DimensionalData
+
+julia> x, y = X(1.0:10.0), Y(5.0:10.0)
(X 1.0:1.0:10.0,
+Y 5.0:1.0:10.0)
julia
julia> st = DimStack((a=rand(x, y), b=rand(x, y), c=rand(y), d=rand(x)))
╭───────────────╮
+10×6 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points,
+Y Sampled{Float64} 5.0:1.0:10.0 ForwardOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: X, Y size: 10×6
+  :b eltype: Float64 dims: X, Y size: 10×6
+  :c eltype: Float64 dims: Y size: 6
+  :d eltype: Float64 dims: X size: 10
+└──────────────────────────────────────────────────────────────────────────────┘

The behavior of a DimStack is at times like a NamedTuple of DimArray and, at other times, an AbstractArray of NamedTuple.

NamedTuple-like indexing

`,8)),h(e,null,{default:l(()=>[h(k,{label:"getting layers"},{default:l(()=>a[0]||(a[0]=[i("p",null,[s("Layers can be accessed with "),i("code",null,".name"),s(" or "),i("code",null,"[:name]")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.20259 0.0328886 0.93358 0.515445 0.00387281 0.947461")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.717768 0.072176 0.474535 0.778122 0.603823 0.80023")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.651877 0.854239 0.735973 0.662632 0.203451 0.537046")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.111155 0.87656 0.0963009 0.97164 0.11311 0.781497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.386306 0.668226 0.817575 0.506181 0.775634 0.440884")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.348826 0.691687 0.214157 0.76448 0.0852624 0.52036")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.520184 0.0170682 0.389215 0.269905 0.204084 0.705701")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.451525 0.345667 0.602631 0.793532 0.842029 0.351735")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.103636 0.780424 0.0171909 0.749553 0.187655 0.669192")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.38291 0.130252 0.369225 0.518483 0.488136 0.714084")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.191224")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.943694")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.177155")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0406084")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.01576")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.104261")])])])],-1)])),_:1}),h(k,{label:"subsetting layers"},{default:l(()=>a[1]||(a[1]=[i("p",null,[s("We can subset layers with a "),i("code",null,"Tuple"),s(" of "),i("code",null,"Symbol"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"inverted subsets"},{default:l(()=>a[2]||(a[2]=[i("p",null,[i("code",null,"Not"),s(" works on "),i("code",null,"Symbol"),s(" keys just like it does on "),i("code",null,"Selector"),s(": It inverts the keys to give you a "),i("code",null,"DimStack"),s(" with all the other layers:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"merging"},{default:l(()=>a[3]||(a[3]=[i("p",null,[s("We can merge a "),i("code",null,"DimStack"),s(" with another "),i("code",null,"DimStack"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st2 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((m"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), n"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), o"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, st2)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("p",null,[s("Or merge a "),i("code",null,"DimStack"),s(" with a "),i("code",null,"NamedTuple"),s(" of "),i("code",null,"DimArray"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (; d "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y, x), e "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :e"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("p",null,"Merging only works when dimensions match:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (; d "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'a'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},":"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'n'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ERROR: DimensionMismatch: Found both lengths 6 and 14 for Y.")])])])],-1)])),_:1})]),_:1}),a[26]||(a[26]=i("h2",{id:"Array-like-indexing",tabindex:"-1"},[s("Array-like indexing "),i("a",{class:"header-anchor",href:"#Array-like-indexing","aria-label":'Permalink to "Array-like indexing {#Array-like-indexing}"'},"​")],-1)),h(e,null,{default:l(()=>[h(k,{label:"scalars"},{default:l(()=>a[4]||(a[4]=[i("p",null,[s("Indexing with a scalar returns a "),i("code",null,"NamedTuple"),s(" of values, one for each layer:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)")])])])],-1)])),_:1}),h(k,{label:"selectors"},{default:l(()=>a[5]||(a[5]=[i("p",null,[s("Selectors for single values also return a "),i("code",null,"NamedTuple")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"20"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.8002301328044032, b = 0.9982064541308482, c = 0.10426060453432562, d = 0.5943408850726459)")])])])],-1)])),_:1}),h(k,{label:"partial indexing"},{default:l(()=>a[6]||(a[6]=[i("p",null,[s("If not all dimensions are scalars, we return another "),i("code",null,"DimStack"),s(". The layers without another dimension are now zero-dimensional:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────┴─────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: ")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"linear indexing"},{default:l(()=>a[7]||(a[7]=[i("p",null,[s("If we index with "),i("code",null,":"),s(" we get a "),i("code",null,"Vector{<:NamedTuple}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[:]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"60-element Vector{@NamedTuple{a::Float64, b::Float64, c::Float64, d::Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.20258969376355607, b = 0.2641242011907946, c = 0.19122366809754, d = 0.43235163202114113)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7177678881661339, b = 0.23019965552513033, c = 0.19122366809754, d = 0.5943408850726459)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.6518774627227301, b = 0.4338946695122107, c = 0.19122366809754, d = 0.7130893612876014)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.11115487324489237, b = 0.439711995898844, c = 0.19122366809754, d = 0.3258728635315493)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.3863063388395396, b = 0.2855663183499576, c = 0.19122366809754, d = 0.15905863317294833)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.34882573131206984, b = 0.48889263023704055, c = 0.19122366809754, d = 0.8632634208267141)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5201836703588896, b = 0.48240020633837055, c = 0.19122366809754, d = 0.2504949184379115)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.45152471334016764, b = 0.8030281996030815, c = 0.19122366809754, d = 0.5434869639181522)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.10363647991272806, b = 0.226712626227074, c = 0.19122366809754, d = 0.49118673636340926)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.38290995355378155, b = 0.6793280401673898, c = 0.19122366809754, d = 0.10327768192755193)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.8002301328044032, b = 0.9982064541308482, c = 0.10426060453432562, d = 0.5943408850726459)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5370455292538254, b = 0.18201329198359628, c = 0.10426060453432562, d = 0.7130893612876014)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7814968833366662, b = 0.3475368849412708, c = 0.10426060453432562, d = 0.3258728635315493)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.4408839264303761, b = 0.6445457662038467, c = 0.10426060453432562, d = 0.15905863317294833)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5203602669427675, b = 0.4854948068259556, c = 0.10426060453432562, d = 0.8632634208267141)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7057009741792366, b = 0.13393263555318102, c = 0.10426060453432562, d = 0.2504949184379115)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.3517350991207968, b = 0.6652884461390509, c = 0.10426060453432562, d = 0.5434869639181522)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.6691920691407321, b = 0.3463451596221927, c = 0.10426060453432562, d = 0.49118673636340926)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7140841681506571, b = 0.13525245310587153, c = 0.10426060453432562, d = 0.10327768192755193)")])])])],-1)])),_:1})]),_:1}),a[27]||(a[27]=t('

Reducing functions

Base functions like mean, maximum, reverse are applied to all layers of the stack.

julia
using Statistics
',3)),h(e,null,{default:l(()=>[h(k,{label:"maximum"},{default:l(()=>a[8]||(a[8]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.97164033242648, b = 0.9982064541308482, c = 0.9436941638102098, d = 0.8632634208267141)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"minimum"},{default:l(()=>a[9]||(a[9]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.0038728108200783984, b = 0.014402783553701615, c = 0.015759978623873905, d = 0.10327768192755193)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"sum"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 29.50156726022296, b = 28.726244382496386, c = 1.4727022060041937, d = 4.476423096559625)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"prod"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," prod"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 2.1532608102742886e-28, b = 2.966475656859458e-28, c = 2.1331373610060985e-6, d = 5.662479108116419e-5)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," prod"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"mean"},{default:l(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.49169278767038266, b = 0.4787707397082731, c = 0.2454503676673656, d = 0.44764230965596247)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"std"},{default:l(()=>a[13]||(a[13]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," std"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.2834645880044695, b = 0.2845114369477759, c = 0.34922817761541347, d = 0.24303682025729376)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," std"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"var"},{default:l(()=>a[14]||(a[14]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," var"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.08035217265254364, b = 0.08094675775408827, c = 0.12196032004058277, d = 0.05906689600077611)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," var"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"reduce"},{default:l(()=>a[15]||(a[15]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reduce"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 29.50156726022296, b = 28.726244382496386, c = 1.4727022060041937, d = 4.476423096559625)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reduce"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"extrema"},{default:l(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extrema"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = (0.0038728108200783984, 0.97164033242648), b = (0.014402783553701615, 0.9982064541308482), c = (0.015759978623873905, 0.9436941638102098), d = (0.10327768192755193, 0.8632634208267141))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extrema"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"dropdims"},{default:l(()=>a[17]||(a[17]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," sum_st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dropdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(sum_st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────┴────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: ")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[28]||(a[28]=i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.broadcast_dims"},[i("code",null,"broadcast_dims")]),s(" broadcasts functions over any mix of "),i("code",null,"AbstractDimStack"),s(" and "),i("code",null,"AbstractDimArray"),s(" returning a new "),i("code",null,"AbstractDimStack"),s(" with layers the size of the largest layer in the broadcast. This will work even if dimension permutation does not match in the objects.")],-1)),h(e,null,{default:l(()=>[h(k,{label:"rotl90"},{default:l(()=>a[18]||(a[18]=[i("p",null,"Only matrix layers can be rotated",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotl90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotl90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"rotr90"},{default:l(()=>a[19]||(a[19]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotr90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotr90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"rot180"},{default:l(()=>a[20]||(a[20]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rot180"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rot180"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"permutedims"},{default:l(()=>a[21]||(a[21]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"transpose"},{default:l(()=>a[22]||(a[22]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," transpose"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"adjoint"},{default:l(()=>a[23]||(a[23]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," adjoint"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"'")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"PermutedDimsArray"},{default:l(()=>a[24]||(a[24]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," PermutedDimsArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," PermutedDimsArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[29]||(a[29]=t(`

Performance

Indexing a stack is fast - indexing a single value and returning a NamedTuple from all layers is usually measured in nanoseconds, and no slower than manually indexing into each parent array directly.

There are some compilation overheads to this though, and stacks with very many layers can take a long time to compile.

julia
julia> using BenchmarkTools
+
+julia> @btime $st[X=1, Y=4]
  4.038 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
julia
julia> @btime $st[1, 4]
  4.047 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
`,7))])}const F=n(g,[["render",y]]);export{b as __pageData,F as default}; diff --git a/previews/PR872/assets/stacks.md.Cs5P30rl.lean.js b/previews/PR872/assets/stacks.md.Cs5P30rl.lean.js new file mode 100644 index 000000000..6f102f57d --- /dev/null +++ b/previews/PR872/assets/stacks.md.Cs5P30rl.lean.js @@ -0,0 +1,368 @@ +import{_ as n,c as p,a4 as t,G as h,w as l,j as i,a as s,B as d,o as r}from"./chunks/framework.ByNLHi2E.js";const b=JSON.parse('{"title":"DimStacks","description":"","frontmatter":{},"headers":[],"relativePath":"stacks.md","filePath":"stacks.md","lastUpdated":null}'),g={name:"stacks.md"};function y(f,a,c,o,u,E){const k=d("PluginTabsTab"),e=d("PluginTabs");return r(),p("div",null,[a[25]||(a[25]=t(`

DimStacks

An AbstractDimStack represents a collection of AbstractDimArray layers that share some or all dimensions. For any two layers, a dimension of the same name must have the identical lookup - in fact, only one is stored for all layers to enforce this consistency.

julia
julia> using DimensionalData
+
+julia> x, y = X(1.0:10.0), Y(5.0:10.0)
(X 1.0:1.0:10.0,
+Y 5.0:1.0:10.0)
julia
julia> st = DimStack((a=rand(x, y), b=rand(x, y), c=rand(y), d=rand(x)))
╭───────────────╮
+10×6 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points,
+Y Sampled{Float64} 5.0:1.0:10.0 ForwardOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: X, Y size: 10×6
+  :b eltype: Float64 dims: X, Y size: 10×6
+  :c eltype: Float64 dims: Y size: 6
+  :d eltype: Float64 dims: X size: 10
+└──────────────────────────────────────────────────────────────────────────────┘

The behavior of a DimStack is at times like a NamedTuple of DimArray and, at other times, an AbstractArray of NamedTuple.

NamedTuple-like indexing

`,8)),h(e,null,{default:l(()=>[h(k,{label:"getting layers"},{default:l(()=>a[0]||(a[0]=[i("p",null,[s("Layers can be accessed with "),i("code",null,".name"),s(" or "),i("code",null,"[:name]")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"."),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"a")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 2}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────────────┴────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 5.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 6.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 7.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 8.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9.0"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10.0")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.20259 0.0328886 0.93358 0.515445 0.00387281 0.947461")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.717768 0.072176 0.474535 0.778122 0.603823 0.80023")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.651877 0.854239 0.735973 0.662632 0.203451 0.537046")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.111155 0.87656 0.0963009 0.97164 0.11311 0.781497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.386306 0.668226 0.817575 0.506181 0.775634 0.440884")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.348826 0.691687 0.214157 0.76448 0.0852624 0.52036")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.520184 0.0170682 0.389215 0.269905 0.204084 0.705701")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.451525 0.345667 0.602631 0.793532 0.842029 0.351735")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.103636 0.780424 0.0171909 0.749553 0.187655 0.669192")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.38291 0.130252 0.369225 0.518483 0.488136 0.714084")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭──────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimArray{Float64, 1}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├──────────────────────────────────┴───────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 5.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.191224")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 6.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.943694")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.177155")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.0406084")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.01576")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10.0"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.104261")])])])],-1)])),_:1}),h(k,{label:"subsetting layers"},{default:l(()=>a[1]||(a[1]=[i("p",null,[s("We can subset layers with a "),i("code",null,"Tuple"),s(" of "),i("code",null,"Symbol"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"inverted subsets"},{default:l(()=>a[2]||(a[2]=[i("p",null,[i("code",null,"Not"),s(" works on "),i("code",null,"Symbol"),s(" keys just like it does on "),i("code",null,"Selector"),s(": It inverts the keys to give you a "),i("code",null,"DimStack"),s(" with all the other layers:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st["),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Not"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":c"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"merging"},{default:l(()=>a[3]||(a[3]=[i("p",null,[s("We can merge a "),i("code",null,"DimStack"),s(" with another "),i("code",null,"DimStack"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st2 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((m"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), n"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), o"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, st2)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("p",null,[s("Or merge a "),i("code",null,"DimStack"),s(" with a "),i("code",null,"NamedTuple"),s(" of "),i("code",null,"DimArray"),s(":")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (; d "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y, x), e "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(y)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :e"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("p",null,"Merging only works when dimensions match:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," merge"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (; d "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'a'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},":"),i("span",{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"}},"'n'"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"ERROR: DimensionMismatch: Found both lengths 6 and 14 for Y.")])])])],-1)])),_:1})]),_:1}),a[26]||(a[26]=i("h2",{id:"Array-like-indexing",tabindex:"-1"},[s("Array-like indexing "),i("a",{class:"header-anchor",href:"#Array-like-indexing","aria-label":'Permalink to "Array-like indexing {#Array-like-indexing}"'},"​")],-1)),h(e,null,{default:l(()=>[h(k,{label:"scalars"},{default:l(()=>a[4]||(a[4]=[i("p",null,[s("Indexing with a scalar returns a "),i("code",null,"NamedTuple"),s(" of values, one for each layer:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"4"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)")])])])],-1)])),_:1}),h(k,{label:"selectors"},{default:l(()=>a[5]||(a[5]=[i("p",null,[s("Selectors for single values also return a "),i("code",null,"NamedTuple")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"), Y"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"Near"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"20"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.8002301328044032, b = 0.9982064541308482, c = 0.10426060453432562, d = 0.5943408850726459)")])])])],-1)])),_:1}),h(k,{label:"partial indexing"},{default:l(()=>a[6]||(a[6]=[i("p",null,[s("If not all dimensions are scalars, we return another "),i("code",null,"DimStack"),s(". The layers without another dimension are now zero-dimensional:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[X"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"At"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2.0"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────┴─────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: ")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"linear indexing"},{default:l(()=>a[7]||(a[7]=[i("p",null,[s("If we index with "),i("code",null,":"),s(" we get a "),i("code",null,"Vector{<:NamedTuple}")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st[:]")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"60-element Vector{@NamedTuple{a::Float64, b::Float64, c::Float64, d::Float64}}:")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.20258969376355607, b = 0.2641242011907946, c = 0.19122366809754, d = 0.43235163202114113)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7177678881661339, b = 0.23019965552513033, c = 0.19122366809754, d = 0.5943408850726459)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.6518774627227301, b = 0.4338946695122107, c = 0.19122366809754, d = 0.7130893612876014)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.11115487324489237, b = 0.439711995898844, c = 0.19122366809754, d = 0.3258728635315493)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.3863063388395396, b = 0.2855663183499576, c = 0.19122366809754, d = 0.15905863317294833)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.34882573131206984, b = 0.48889263023704055, c = 0.19122366809754, d = 0.8632634208267141)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5201836703588896, b = 0.48240020633837055, c = 0.19122366809754, d = 0.2504949184379115)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.45152471334016764, b = 0.8030281996030815, c = 0.19122366809754, d = 0.5434869639181522)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.10363647991272806, b = 0.226712626227074, c = 0.19122366809754, d = 0.49118673636340926)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.38290995355378155, b = 0.6793280401673898, c = 0.19122366809754, d = 0.10327768192755193)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.8002301328044032, b = 0.9982064541308482, c = 0.10426060453432562, d = 0.5943408850726459)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5370455292538254, b = 0.18201329198359628, c = 0.10426060453432562, d = 0.7130893612876014)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7814968833366662, b = 0.3475368849412708, c = 0.10426060453432562, d = 0.3258728635315493)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.4408839264303761, b = 0.6445457662038467, c = 0.10426060453432562, d = 0.15905863317294833)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.5203602669427675, b = 0.4854948068259556, c = 0.10426060453432562, d = 0.8632634208267141)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7057009741792366, b = 0.13393263555318102, c = 0.10426060453432562, d = 0.2504949184379115)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.3517350991207968, b = 0.6652884461390509, c = 0.10426060453432562, d = 0.5434869639181522)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.6691920691407321, b = 0.3463451596221927, c = 0.10426060453432562, d = 0.49118673636340926)")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," (a = 0.7140841681506571, b = 0.13525245310587153, c = 0.10426060453432562, d = 0.10327768192755193)")])])])],-1)])),_:1})]),_:1}),a[27]||(a[27]=t('

Reducing functions

Base functions like mean, maximum, reverse are applied to all layers of the stack.

julia
using Statistics
',3)),h(e,null,{default:l(()=>[h(k,{label:"maximum"},{default:l(()=>a[8]||(a[8]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.97164033242648, b = 0.9982064541308482, c = 0.9436941638102098, d = 0.8632634208267141)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," maximum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"minimum"},{default:l(()=>a[9]||(a[9]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.0038728108200783984, b = 0.014402783553701615, c = 0.015759978623873905, d = 0.10327768192755193)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," minimum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"sum"},{default:l(()=>a[10]||(a[10]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 29.50156726022296, b = 28.726244382496386, c = 1.4727022060041937, d = 4.476423096559625)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"prod"},{default:l(()=>a[11]||(a[11]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," prod"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 2.1532608102742886e-28, b = 2.966475656859458e-28, c = 2.1331373610060985e-6, d = 5.662479108116419e-5)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," prod"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"mean"},{default:l(()=>a[12]||(a[12]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.49169278767038266, b = 0.4787707397082731, c = 0.2454503676673656, d = 0.44764230965596247)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," mean"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"std"},{default:l(()=>a[13]||(a[13]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," std"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.2834645880044695, b = 0.2845114369477759, c = 0.34922817761541347, d = 0.24303682025729376)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," std"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"var"},{default:l(()=>a[14]||(a[14]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," var"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 0.08035217265254364, b = 0.08094675775408827, c = 0.12196032004058277, d = 0.05906689600077611)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," var"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"reduce"},{default:l(()=>a[15]||(a[15]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reduce"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = 29.50156726022296, b = 28.726244382496386, c = 1.4727022060041937, d = 4.476423096559625)")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," reduce"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"+"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"extrema"},{default:l(()=>a[16]||(a[16]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extrema"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"(a = (0.0038728108200783984, 0.97164033242648), b = (0.014402783553701615, 0.9982064541308482), c = (0.015759978623873905, 0.9436941638102098), d = (0.10327768192755193, 0.8632634208267141))")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," extrema"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Tuple{Float64, Float64}"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"dropdims"},{default:l(()=>a[17]||(a[17]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," sum_st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," sum"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"7.5:6.0:7.5"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," dropdims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(sum_st; dims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"Y)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭─────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10-element "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├─────────────────────┴────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: ")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[28]||(a[28]=i("p",null,[i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.broadcast_dims"},[i("code",null,"broadcast_dims")]),s(" broadcasts functions over any mix of "),i("code",null,"AbstractDimStack"),s(" and "),i("code",null,"AbstractDimArray"),s(" returning a new "),i("code",null,"AbstractDimStack"),s(" with layers the size of the largest layer in the broadcast. This will work even if dimension permutation does not match in the objects.")],-1)),h(e,null,{default:l(()=>[h(k,{label:"rotl90"},{default:l(()=>a[18]||(a[18]=[i("p",null,"Only matrix layers can be rotated",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotl90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotl90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"rotr90"},{default:l(()=>a[19]||(a[19]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotr90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rotr90"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"rot180"},{default:l(()=>a[20]||(a[20]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rot180"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")])")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10.0:-1.0:1.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10.0:-1.0:5.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ReverseOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rot180"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st[("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":a"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":b"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")], "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"permutedims"},{default:l(()=>a[21]||(a[21]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," permutedims"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"transpose"},{default:l(()=>a[22]||(a[22]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," transpose"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"adjoint"},{default:l(()=>a[23]||(a[23]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," adjoint"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"'")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(k,{label:"PermutedDimsArray"},{default:l(()=>a[24]||(a[24]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," PermutedDimsArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, ("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"2"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"1"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," PermutedDimsArray"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st, (Y, X))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────┴──────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"5.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Float64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1.0:1.0:10.0"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"6")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"X"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[29]||(a[29]=t(`

Performance

Indexing a stack is fast - indexing a single value and returning a NamedTuple from all layers is usually measured in nanoseconds, and no slower than manually indexing into each parent array directly.

There are some compilation overheads to this though, and stacks with very many layers can take a long time to compile.

julia
julia> using BenchmarkTools
+
+julia> @btime $st[X=1, Y=4]
  4.038 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
julia
julia> @btime $st[1, 4]
  4.047 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
`,7))])}const F=n(g,[["render",y]]);export{b as __pageData,F as default}; diff --git a/previews/PR872/assets/style.DZKCdru5.css b/previews/PR872/assets/style.DZKCdru5.css new file mode 100644 index 000000000..6d901f292 --- /dev/null +++ b/previews/PR872/assets/style.DZKCdru5.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css?family=Space+Mono:regular,italic,700,700italic";@import"https://fonts.googleapis.com/css?family=Space+Grotesk:regular,italic,700,700italic";@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/DimensionalData.jl/previews/PR872/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{overflow-x:auto}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc h4{margin:24px 0 0;letter-spacing:-.01em;line-height:24px;font-size:18px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s;color:var(--vp-c-text-2)}.vp-doc blockquote>p{margin:0;font-size:16px;transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code,.vp-doc h4>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;-webkit-user-select:none;user-select:none;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-b06cdb19]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-b06cdb19],.VPBackdrop.fade-leave-to[data-v-b06cdb19]{opacity:0}.VPBackdrop.fade-leave-active[data-v-b06cdb19]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-b06cdb19]{display:none}}.NotFound[data-v-951cab6c]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-951cab6c]{padding:96px 32px 168px}}.code[data-v-951cab6c]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-951cab6c]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-951cab6c]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-951cab6c]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-951cab6c]{padding-top:20px}.link[data-v-951cab6c]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-951cab6c]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-3f927ebe]{position:relative;z-index:1}.nested[data-v-3f927ebe]{padding-right:16px;padding-left:16px}.outline-link[data-v-3f927ebe]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-3f927ebe]:hover,.outline-link.active[data-v-3f927ebe]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-3f927ebe]{padding-left:13px}.VPDocAsideOutline[data-v-b38bf2ff]{display:none}.VPDocAsideOutline.has-outline[data-v-b38bf2ff]{display:block}.content[data-v-b38bf2ff]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-b38bf2ff]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-b38bf2ff]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-6d7b3c46]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-6d7b3c46]{flex-grow:1}.VPDocAside[data-v-6d7b3c46] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-6d7b3c46] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-6d7b3c46] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-475f71b8]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-475f71b8]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-4f9813fa]{margin-top:64px}.edit-info[data-v-4f9813fa]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-4f9813fa]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-4f9813fa]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-4f9813fa]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-4f9813fa]{margin-right:8px}.prev-next[data-v-4f9813fa]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-4f9813fa]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-4f9813fa]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-4f9813fa]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-4f9813fa]{margin-left:auto;text-align:right}.desc[data-v-4f9813fa]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-4f9813fa]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-83890dd9]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-83890dd9]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-83890dd9]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-83890dd9]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-83890dd9]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-83890dd9]{display:flex;justify-content:center}.VPDoc .aside[data-v-83890dd9]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-83890dd9]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-83890dd9]{max-width:1104px}}.container[data-v-83890dd9]{margin:0 auto;width:100%}.aside[data-v-83890dd9]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-83890dd9]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-83890dd9]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-83890dd9]::-webkit-scrollbar{display:none}.aside-curtain[data-v-83890dd9]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-83890dd9]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-83890dd9]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-83890dd9]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-83890dd9]{order:1;margin:0;min-width:640px}}.content-container[data-v-83890dd9]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-83890dd9]{max-width:688px}.VPButton[data-v-906d7fb4]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-906d7fb4]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-906d7fb4]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-906d7fb4]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-906d7fb4]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-906d7fb4]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-906d7fb4]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-906d7fb4]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-906d7fb4]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-906d7fb4]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-906d7fb4]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-906d7fb4]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-906d7fb4]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-35a7d0b8]{display:none}.dark .VPImage.light[data-v-35a7d0b8]{display:none}.VPHero[data-v-955009fc]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-955009fc]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-955009fc]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-955009fc]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-955009fc]{flex-direction:row}}.main[data-v-955009fc]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-955009fc]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-955009fc]{text-align:left}}@media (min-width: 960px){.main[data-v-955009fc]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-955009fc]{max-width:592px}}.name[data-v-955009fc],.text[data-v-955009fc]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-955009fc],.VPHero.has-image .text[data-v-955009fc]{margin:0 auto}.name[data-v-955009fc]{color:var(--vp-home-hero-name-color)}.clip[data-v-955009fc]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-955009fc],.text[data-v-955009fc]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-955009fc],.text[data-v-955009fc]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-955009fc],.VPHero.has-image .text[data-v-955009fc]{margin:0}}.tagline[data-v-955009fc]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-955009fc]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-955009fc]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-955009fc]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-955009fc]{margin:0}}.actions[data-v-955009fc]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-955009fc]{justify-content:center}@media (min-width: 640px){.actions[data-v-955009fc]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-955009fc]{justify-content:flex-start}}.action[data-v-955009fc]{flex-shrink:0;padding:6px}.image[data-v-955009fc]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-955009fc]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-955009fc]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-955009fc]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-955009fc]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-955009fc]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-955009fc]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-955009fc]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-955009fc]{width:320px;height:320px}}[data-v-955009fc] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-955009fc] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-955009fc] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-f5e9645b]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-f5e9645b]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-f5e9645b]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-f5e9645b]>.VPImage{margin-bottom:20px}.icon[data-v-f5e9645b]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-f5e9645b]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-f5e9645b]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-f5e9645b]{padding-top:8px}.link-text-value[data-v-f5e9645b]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-f5e9645b]{margin-left:6px}.VPFeatures[data-v-d0a190d7]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-d0a190d7]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-d0a190d7]{padding:0 64px}}.container[data-v-d0a190d7]{margin:0 auto;max-width:1152px}.items[data-v-d0a190d7]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-d0a190d7]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-d0a190d7],.item.grid-4[data-v-d0a190d7],.item.grid-6[data-v-d0a190d7]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-d0a190d7],.item.grid-4[data-v-d0a190d7]{width:50%}.item.grid-3[data-v-d0a190d7],.item.grid-6[data-v-d0a190d7]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-d0a190d7]{width:25%}}.container[data-v-7a48a447]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-7a48a447]{padding:0 48px}}@media (min-width: 960px){.container[data-v-7a48a447]{width:100%;padding:0 64px}}.vp-doc[data-v-7a48a447] .VPHomeSponsors,.vp-doc[data-v-7a48a447] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-7a48a447] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-7a48a447] .VPHomeSponsors a,.vp-doc[data-v-7a48a447] .VPTeamPage a{text-decoration:none}.VPHome[data-v-cbb6ec48]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-cbb6ec48]{margin-bottom:128px}}.VPContent[data-v-91765379]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-91765379]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-91765379]{margin:0}@media (min-width: 960px){.VPContent[data-v-91765379]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-91765379]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-91765379]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-c970a860]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-c970a860]{display:none}.VPFooter[data-v-c970a860] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-c970a860] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-c970a860]{padding:32px}}.container[data-v-c970a860]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-c970a860],.copyright[data-v-c970a860]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-bc9dc845]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-bc9dc845]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-bc9dc845]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-bc9dc845]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-bc9dc845]{color:var(--vp-c-text-1)}.icon[data-v-bc9dc845]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-bc9dc845]{font-size:14px}.icon[data-v-bc9dc845]{font-size:16px}}.open>.icon[data-v-bc9dc845]{transform:rotate(90deg)}.items[data-v-bc9dc845]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-bc9dc845]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-bc9dc845]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-bc9dc845]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-bc9dc845]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-bc9dc845]{transition:all .2s ease-out}.flyout-leave-active[data-v-bc9dc845]{transition:all .15s ease-in}.flyout-enter-from[data-v-bc9dc845],.flyout-leave-to[data-v-bc9dc845]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-070ab83d]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-070ab83d]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-070ab83d]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-070ab83d]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-070ab83d]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-070ab83d]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-070ab83d]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-070ab83d]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-070ab83d]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-070ab83d]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-070ab83d]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-070ab83d]{display:none}}.menu-icon[data-v-070ab83d]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-070ab83d]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-070ab83d]{padding:12px 32px 11px}}.VPSwitch[data-v-4a1c76db]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-4a1c76db]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-4a1c76db]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-4a1c76db]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-4a1c76db] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-4a1c76db] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-e40a8bb6]{opacity:1}.moon[data-v-e40a8bb6],.dark .sun[data-v-e40a8bb6]{opacity:0}.dark .moon[data-v-e40a8bb6]{opacity:1}.dark .VPSwitchAppearance[data-v-e40a8bb6] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-af096f4a]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-af096f4a]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-acbfed09]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-acbfed09]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-acbfed09]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-acbfed09]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-48c802d0]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-48c802d0]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-48c802d0]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-48c802d0]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-7dd3104a]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-7dd3104a] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-7dd3104a] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-7dd3104a] .group:last-child{padding-bottom:0}.VPMenu[data-v-7dd3104a] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-7dd3104a] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-7dd3104a] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-7dd3104a] .action{padding-left:24px}.VPFlyout[data-v-04f5c5e9]{position:relative}.VPFlyout[data-v-04f5c5e9]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-04f5c5e9]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-04f5c5e9]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-04f5c5e9]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-04f5c5e9]{color:var(--vp-c-brand-2)}.button[aria-expanded=false]+.menu[data-v-04f5c5e9]{opacity:0;visibility:hidden;transform:translateY(0)}.VPFlyout:hover .menu[data-v-04f5c5e9],.button[aria-expanded=true]+.menu[data-v-04f5c5e9]{opacity:1;visibility:visible;transform:translateY(0)}.button[data-v-04f5c5e9]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-04f5c5e9]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-04f5c5e9]{margin-right:0;font-size:16px}.text-icon[data-v-04f5c5e9]{margin-left:4px;font-size:14px}.icon[data-v-04f5c5e9]{font-size:20px;transition:fill .25s}.menu[data-v-04f5c5e9]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-d26d30cb]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-d26d30cb]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-d26d30cb]>svg,.VPSocialLink[data-v-d26d30cb]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-ee7a9424]{display:flex;justify-content:center}.VPNavBarExtra[data-v-925effce]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-925effce]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-925effce]{display:none}}.trans-title[data-v-925effce]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-925effce],.item.social-links[data-v-925effce]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-925effce]{min-width:176px}.appearance-action[data-v-925effce]{margin-right:-2px}.social-links-list[data-v-925effce]{margin:-4px -8px}.VPNavBarHamburger[data-v-5dea55bf]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-5dea55bf]{display:none}}.container[data-v-5dea55bf]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-5dea55bf]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-5dea55bf]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-5dea55bf]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-5dea55bf]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-5dea55bf]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-5dea55bf]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-5dea55bf],.VPNavBarHamburger.active:hover .middle[data-v-5dea55bf],.VPNavBarHamburger.active:hover .bottom[data-v-5dea55bf]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-5dea55bf],.middle[data-v-5dea55bf],.bottom[data-v-5dea55bf]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-5dea55bf]{top:0;left:0;transform:translate(0)}.middle[data-v-5dea55bf]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-5dea55bf]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-956ec74c]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-956ec74c],.VPNavBarMenuLink[data-v-956ec74c]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-e6d46098]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-e6d46098]{display:flex}}/*! @docsearch/css 3.8.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 #0304094d;--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 2px;position:relative;top:-1px;width:20px}.DocSearch-Button-Key--pressed{box-shadow:var(--docsearch-key-pressed-shadow);transform:translate3d(0,1px,0)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:2px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-164c457f]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-164c457f]{display:flex;align-items:center}}.title[data-v-0f4f798b]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-0f4f798b]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-0f4f798b]{border-bottom-color:var(--vp-c-divider)}}[data-v-0f4f798b] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-c80d9ad0]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-c80d9ad0]{display:flex;align-items:center}}.title[data-v-c80d9ad0]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-822684d1]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .25s}.VPNavBar.screen-open[data-v-822684d1]{transition:none;background-color:var(--vp-nav-bg-color);border-bottom:1px solid var(--vp-c-divider)}.VPNavBar[data-v-822684d1]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-822684d1]:not(.home){background-color:transparent}.VPNavBar[data-v-822684d1]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-822684d1]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-822684d1]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-822684d1]{padding:0}}.container[data-v-822684d1]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-822684d1],.container>.content[data-v-822684d1]{pointer-events:none}.container[data-v-822684d1] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-822684d1]{max-width:100%}}.title[data-v-822684d1]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-822684d1]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-822684d1]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-822684d1]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-822684d1]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-822684d1]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-822684d1]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-822684d1]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-822684d1]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-822684d1]{column-gap:.5rem}}.menu+.translations[data-v-822684d1]:before,.menu+.appearance[data-v-822684d1]:before,.menu+.social-links[data-v-822684d1]:before,.translations+.appearance[data-v-822684d1]:before,.appearance+.social-links[data-v-822684d1]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-822684d1]:before,.translations+.appearance[data-v-822684d1]:before{margin-right:16px}.appearance+.social-links[data-v-822684d1]:before{margin-left:16px}.social-links[data-v-822684d1]{margin-right:-8px}.divider[data-v-822684d1]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-822684d1]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-822684d1]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-822684d1]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-822684d1]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-822684d1]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-822684d1]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-ffb44008]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-ffb44008]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-735512b8]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-735512b8]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-372ae7c0]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-372ae7c0]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-4b8941ac]{display:block}.title[data-v-4b8941ac]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-875057a5]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-875057a5]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-875057a5]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-875057a5]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-875057a5]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-875057a5]{transform:rotate(45deg)}.button[data-v-875057a5]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-875057a5]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-875057a5]{transition:transform .25s}.group[data-v-875057a5]:first-child{padding-top:0}.group+.group[data-v-875057a5],.group+.item[data-v-875057a5]{padding-top:4px}.VPNavScreenTranslations[data-v-362991c2]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-362991c2]{height:auto}.title[data-v-362991c2]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-362991c2]{font-size:16px}.icon.lang[data-v-362991c2]{margin-right:8px}.icon.chevron[data-v-362991c2]{margin-left:4px}.list[data-v-362991c2]{padding:4px 0 0 24px}.link[data-v-362991c2]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-833aabba]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .25s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-833aabba],.VPNavScreen.fade-leave-active[data-v-833aabba]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-833aabba],.VPNavScreen.fade-leave-active .container[data-v-833aabba]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-833aabba],.VPNavScreen.fade-leave-to[data-v-833aabba]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-833aabba],.VPNavScreen.fade-leave-to .container[data-v-833aabba]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-833aabba]{display:none}}.container[data-v-833aabba]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-833aabba],.menu+.appearance[data-v-833aabba],.translations+.appearance[data-v-833aabba]{margin-top:24px}.menu+.social-links[data-v-833aabba]{margin-top:16px}.appearance+.social-links[data-v-833aabba]{margin-top:16px}.VPNav[data-v-f1e365da]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-f1e365da]{position:fixed}}.VPSidebarItem.level-0[data-v-196b2e5f]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-196b2e5f]{padding-bottom:10px}.item[data-v-196b2e5f]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-196b2e5f]{cursor:pointer}.indicator[data-v-196b2e5f]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-196b2e5f],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-196b2e5f],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-196b2e5f],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-196b2e5f]{background-color:var(--vp-c-brand-1)}.link[data-v-196b2e5f]{display:flex;align-items:center;flex-grow:1}.text[data-v-196b2e5f]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-196b2e5f]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-196b2e5f],.VPSidebarItem.level-2 .text[data-v-196b2e5f],.VPSidebarItem.level-3 .text[data-v-196b2e5f],.VPSidebarItem.level-4 .text[data-v-196b2e5f],.VPSidebarItem.level-5 .text[data-v-196b2e5f]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-196b2e5f],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-196b2e5f],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-196b2e5f],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-196b2e5f],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-196b2e5f],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-196b2e5f]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-1.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-2.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-3.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-4.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-5.has-active>.item>.text[data-v-196b2e5f],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-196b2e5f],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-196b2e5f],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-196b2e5f],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-196b2e5f],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-196b2e5f],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-196b2e5f]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-196b2e5f],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-196b2e5f],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-196b2e5f],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-196b2e5f],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-196b2e5f],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-196b2e5f]{color:var(--vp-c-brand-1)}.caret[data-v-196b2e5f]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-196b2e5f]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-196b2e5f]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-196b2e5f]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-196b2e5f]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-196b2e5f],.VPSidebarItem.level-2 .items[data-v-196b2e5f],.VPSidebarItem.level-3 .items[data-v-196b2e5f],.VPSidebarItem.level-4 .items[data-v-196b2e5f],.VPSidebarItem.level-5 .items[data-v-196b2e5f]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-196b2e5f]{display:none}.no-transition[data-v-9e426adc] .caret-icon{transition:none}.group+.group[data-v-9e426adc]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-9e426adc]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSidebar[data-v-18756405]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-18756405]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-18756405]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-18756405]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-18756405]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-18756405]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-18756405]{outline:0}.VPSkipLink[data-v-c3508ec8]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-c3508ec8]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-c3508ec8]{top:14px;left:16px}}.Layout[data-v-a9a9e638]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-db81191c]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-db81191c]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-db81191c]{margin:128px 0}}.VPHomeSponsors[data-v-db81191c]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-db81191c]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-db81191c]{padding:0 64px}}.container[data-v-db81191c]{margin:0 auto;max-width:1152px}.love[data-v-db81191c]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-db81191c]{display:inline-block}.message[data-v-db81191c]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-db81191c]{padding-top:32px}.action[data-v-db81191c]{padding-top:40px;text-align:center}.VPTeamPage[data-v-c2f8e101]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-c2f8e101]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-c2f8e101-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-c2f8e101-s],.VPTeamMembers+.VPTeamPageSection[data-v-c2f8e101-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-c2f8e101-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-c2f8e101-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-c2f8e101-s],.VPTeamMembers+.VPTeamPageSection[data-v-c2f8e101-s]{margin-top:96px}}.VPTeamMembers[data-v-c2f8e101-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-c2f8e101-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-c2f8e101-s]{padding:0 64px}}.VPTeamPageTitle[data-v-e277e15c]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-e277e15c]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-e277e15c]{padding:80px 64px 48px}}.title[data-v-e277e15c]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-e277e15c]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-e277e15c]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-e277e15c]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-d43bc49d]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-d43bc49d]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-d43bc49d]{padding:0 64px}}.title[data-v-d43bc49d]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-d43bc49d]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-d43bc49d]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-d43bc49d]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-d43bc49d]{padding-top:40px}.VPTeamMembersItem[data-v-f9987cb6]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-f9987cb6]{padding:32px}.VPTeamMembersItem.small .data[data-v-f9987cb6]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-f9987cb6]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-f9987cb6]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-f9987cb6]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-f9987cb6]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-f9987cb6]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-f9987cb6]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-f9987cb6]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-f9987cb6]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-f9987cb6]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-f9987cb6]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-f9987cb6]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-f9987cb6]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-f9987cb6]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-f9987cb6]{text-align:center}.avatar[data-v-f9987cb6]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-f9987cb6]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-f9987cb6]{margin:0;font-weight:600}.affiliation[data-v-f9987cb6]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-f9987cb6]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-f9987cb6]:hover{color:var(--vp-c-brand-1)}.desc[data-v-f9987cb6]{margin:0 auto}.desc[data-v-f9987cb6] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-f9987cb6]{display:flex;justify-content:center;height:56px}.sp-link[data-v-f9987cb6]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-f9987cb6]:hover,.sp .sp-link.link[data-v-f9987cb6]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-f9987cb6]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-fba19bad]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-fba19bad]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-fba19bad]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-fba19bad]{max-width:876px}.VPTeamMembers.medium .container[data-v-fba19bad]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-fba19bad]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-fba19bad]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-fba19bad]{max-width:760px}.container[data-v-fba19bad]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-plugin-tabs-tab-text-color: var(--vp-c-text-2);--vp-plugin-tabs-tab-active-text-color: var(--vp-c-text-1);--vp-plugin-tabs-tab-hover-text-color: var(--vp-c-text-1);--vp-plugin-tabs-tab-bg: var(--vp-c-bg-soft);--vp-plugin-tabs-tab-divider: var(--vp-c-divider);--vp-plugin-tabs-tab-active-bar-color: var(--vp-c-brand-1)}.plugin-tabs{margin:16px 0;background-color:var(--vp-plugin-tabs-tab-bg);border-radius:8px}.plugin-tabs--tab-list{position:relative;padding:0 12px;overflow-x:auto;overflow-y:hidden}.plugin-tabs--tab-list:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background-color:var(--vp-plugin-tabs-tab-divider)}.plugin-tabs--tab{position:relative;padding:0 12px;line-height:48px;border-bottom:2px solid transparent;color:var(--vp-plugin-tabs-tab-text-color);font-size:14px;font-weight:500;white-space:nowrap;transition:color .25s}.plugin-tabs--tab[aria-selected=true]{color:var(--vp-plugin-tabs-tab-active-text-color)}.plugin-tabs--tab:hover{color:var(--vp-plugin-tabs-tab-hover-text-color)}.plugin-tabs--tab:after{content:"";position:absolute;bottom:-2px;left:8px;right:8px;height:2px;background-color:transparent;transition:background-color .25s;z-index:1}.plugin-tabs--tab[aria-selected=true]:after{background-color:var(--vp-plugin-tabs-tab-active-bar-color)}.plugin-tabs--content[data-v-9b0d03d2]{padding:16px}.plugin-tabs--content[data-v-9b0d03d2]>:first-child:first-child{margin-top:0}.plugin-tabs--content[data-v-9b0d03d2]>:last-child:last-child{margin-bottom:0}.plugin-tabs--content[data-v-9b0d03d2]>div[class*=language-]{border-radius:8px;margin:16px 0}:root:not(.dark) .plugin-tabs--content[data-v-9b0d03d2] div[class*=language-]{background-color:var(--vp-c-bg)}.VPVersionPicker[data-v-f465cb49] button .text{color:var(--vp-c-text-1)!important}.VPVersionPicker[data-v-f465cb49]:hover button .text{color:var(--vp-c-text-2)!important}.VPHero .clip{white-space:pre;max-width:500px}:root{--vp-font-family-base: "Barlow", "Inter var experimental", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--vp-font-family-mono: "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace}:root{--julia-blue: #5fd7ff ;--julia-purple: #5fd7ff;--julia-red: #CB3C33;--julia-green: #0087d7;--vp-c-brand: #0087d7;--vp-c-brand-light: #0087d7;--vp-c-brand-lighter: #5fd7ff ;--vp-c-brand-lightest: #5fd7ff ;--vp-c-brand-dark: #5fd7ff;--vp-c-brand-darker: #5fd7ff ;--vp-c-brand-dimm: #212425}:root{--vp-button-brand-border: var(--vp-c-brand-light);--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand);--vp-button-brand-hover-border: var(--vp-c-brand-light);--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-light);--vp-button-brand-active-border: var(--vp-c-brand-light);--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-button-brand-bg)}:root{--vp-home-hero-name-color: transparent;--vp-home-hero-name-background: -webkit-linear-gradient( 120deg, #ff875f 30%, #0087d7 );--vp-home-hero-image-background-image: linear-gradient( -45deg, #0087d7 35%, #0087d7 35%, #ff875f );--vp-home-hero-image-filter: blur(40px)}@media (min-width: 640px){:root{--vp-home-hero-image-filter: blur(56px)}}@media (min-width: 960px){:root{--vp-home-hero-image-filter: blur(72px)}}:root.dark{--vp-custom-block-tip-border: var(--vp-c-brand);--vp-custom-block-tip-text: var(--vp-c-brand-lightest);--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);--vp-c-black: hsl(220 20% 9%);--vp-c-black-pure: hsl(220, 24%, 4%);--vp-c-black-soft: hsl(220 16% 13%);--vp-c-black-mute: hsl(220 14% 17%);--vp-c-gray: hsl(220 8% 56%);--vp-c-gray-dark-1: hsl(220 10% 39%);--vp-c-gray-dark-2: hsl(220 12% 28%);--vp-c-gray-dark-3: hsl(220 12% 23%);--vp-c-gray-dark-4: hsl(220 14% 17%);--vp-c-gray-dark-5: hsl(220 16% 13%);--vp-c-bg: hsl(240, 2%, 11%);--vp-custom-block-info-bg: hsl(220 14% 17%);--vp-c-gutter: hsl(220 20% 9%);--vp-c-bg-alt: hsl(220 20% 9%);--vp-c-bg-soft: hsl(220 14% 17%);--vp-c-bg-mute: hsl(220 12% 23%)}.DocSearch{--docsearch-primary-color: var(--vp-c-brand) !important}mjx-container>svg{display:block;margin:auto}mjx-container{padding:.5rem 0}mjx-container{display:inline-block;margin:auto 2px -2px}mjx-container>svg{margin:auto;display:inline-block}:root{--vp-c-brand-1: #ff875f;--vp-c-brand-2: #ff875f;--vp-c-brand-3: #ff875f;--vp-c-sponsor: #ca2971;--vitest-c-sponsor-hover: #c13071}.dark{--vp-c-brand-1: #0087d7;--vp-c-brand-2: #0087d7;--vp-c-brand-3: #0087d7;--vp-c-sponsor: #ee4e95;--vitest-c-sponsor-hover: #e51370}.VPDoc.has-aside .content-container{max-width:100%!important}.aside{max-width:200px!important;padding-left:0!important}.VPDoc{padding-top:15px!important;padding-left:5px!important}.VPDocOutlineItem li{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:200px}.VPNavBar .title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}@media (max-width: 960px){.VPDoc{padding-left:25px!important}}.VPLocalSearchBox[data-v-42e65fb9]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-42e65fb9]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-42e65fb9]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-42e65fb9]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-42e65fb9]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-42e65fb9]{padding:0 8px}}.search-bar[data-v-42e65fb9]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-42e65fb9]{display:block;font-size:18px}.navigate-icon[data-v-42e65fb9]{display:block;font-size:14px}.search-icon[data-v-42e65fb9]{margin:8px}@media (max-width: 767px){.search-icon[data-v-42e65fb9]{display:none}}.search-input[data-v-42e65fb9]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-42e65fb9]{padding:6px 4px}}.search-actions[data-v-42e65fb9]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-42e65fb9]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-42e65fb9]{display:none}}.search-actions button[data-v-42e65fb9]{padding:8px}.search-actions button[data-v-42e65fb9]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-42e65fb9]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-42e65fb9]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-42e65fb9]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-42e65fb9]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-42e65fb9]{display:none}}.search-keyboard-shortcuts kbd[data-v-42e65fb9]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-42e65fb9]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-42e65fb9]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-42e65fb9]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-42e65fb9]{margin:8px}}.titles[data-v-42e65fb9]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-42e65fb9]{display:flex;align-items:center;gap:4px}.title.main[data-v-42e65fb9]{font-weight:500}.title-icon[data-v-42e65fb9]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-42e65fb9]{opacity:.5}.result.selected[data-v-42e65fb9]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-42e65fb9]{position:relative}.excerpt[data-v-42e65fb9]{opacity:50%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;margin-top:4px}.result.selected .excerpt[data-v-42e65fb9]{opacity:1}.excerpt[data-v-42e65fb9] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-42e65fb9] mark,.excerpt[data-v-42e65fb9] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-42e65fb9] .vp-code-group .tabs{display:none}.excerpt[data-v-42e65fb9] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-42e65fb9]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-42e65fb9]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-42e65fb9],.result.selected .title-icon[data-v-42e65fb9]{color:var(--vp-c-brand-1)!important}.no-results[data-v-42e65fb9]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-42e65fb9]{flex:none} diff --git a/previews/PR872/assets/sxuybmz.D5bwtKy3.svg b/previews/PR872/assets/sxuybmz.D5bwtKy3.svg new file mode 100644 index 000000000..db4d909f1 --- /dev/null +++ b/previews/PR872/assets/sxuybmz.D5bwtKy3.svg @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/assets/tables.md.BVWkIzEo.js b/previews/PR872/assets/tables.md.BVWkIzEo.js new file mode 100644 index 000000000..085159c47 --- /dev/null +++ b/previews/PR872/assets/tables.md.BVWkIzEo.js @@ -0,0 +1,165 @@ +import{_ as n,c as g,a4 as e,G as h,w as t,j as i,a as s,B as d,o as p}from"./chunks/framework.ByNLHi2E.js";const m=JSON.parse('{"title":"Tables and DataFrames","description":"","frontmatter":{},"headers":[],"relativePath":"tables.md","filePath":"tables.md","lastUpdated":null}'),r={name:"tables.md"};function f(o,a,y,c,b,w){const l=d("PluginTabsTab"),k=d("PluginTabs");return p(),g("div",null,[a[6]||(a[6]=e(`

Tables and DataFrames

Tables.jl provides an ecosystem-wide interface to tabular data in Julia, ensuring interoperability with DataFrames.jl, CSV.jl, and hundreds of other packages that implement the standard.

DimensionalData.jl implements the Tables.jl interface for AbstractDimArray and AbstractDimStack. DimStack layers are unrolled so they are all the same size, and dimensions loop to match the length of the largest layer.

Columns are given the name of the array or stack layer, and the result of DD.name(dimension) for Dimension columns.

Looping of dimensions and stack layers is done lazily, and does not allocate unless collected.

Example

julia
using DimensionalData
+using Dates
+using DataFrames

Define some dimensions:

julia
julia> x, y, c = X(1:10), Y(1:10), Dim{:category}('a':'z')
(X        1:10,
+Y        1:10,
+category 'a':1:'z')
`,10)),h(k,null,{default:t(()=>[h(l,{label:"Create a `DimArray`"},{default:t(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y, c; name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":data"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 3}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," data"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴─────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}}," ↗ "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"'a':1:'z'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"["),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},":"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},":"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.599241 0.518938 0.341133 0.486559 0.162516 0.934189")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.192192 0.336376 0.636476 0.840593 0.687569 0.294486")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.607291 0.963657 0.353968 0.120955 0.434286 0.887294")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921958 0.128827 0.517175 0.101305 0.743407 0.0120967")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.194849 0.975511 0.612828 0.888721 0.890574 0.436622")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.364097 0.163103 0.142055 0.049689 0.259847 0.570725")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.394448 0.755939 0.54624 0.156388 0.210664 0.966517")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.828604 0.359421 0.51621 … 0.828161 0.107233 0.74172")])])])],-1)])),_:1}),h(l,{label:"Create a `DimStack`"},{default:t(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((data1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), data2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y, c)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────┴──────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}}," ↗ "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"'a':1:'z'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :data1"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :data2"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[7]||(a[7]=i("h2",{id:"Converting-to-DataFrame",tabindex:"-1"},[s("Converting to DataFrame "),i("a",{class:"header-anchor",href:"#Converting-to-DataFrame","aria-label":'Permalink to "Converting to DataFrame {#Converting-to-DataFrame}"'},"​")],-1)),h(k,null,{default:t(()=>[h(l,{label:"Array Default"},{default:t(()=>a[2]||(a[2]=[i("p",null,"Arrays will have columns for each dimension, and only one data column",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×4 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 a 0.599241")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 a 0.192192")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 a 0.607291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 a 0.921958")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 a 0.449491")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 a 0.581131")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 a 0.194849")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 a 0.364097")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ 4 10 z 0.852872")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ 5 10 z 0.0958843")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ 6 10 z 0.315302")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ 7 10 z 0.236866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ 8 10 z 0.894053")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ 9 10 z 0.350024")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ 10 10 z 0.417756")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1}),h(l,{label:"Stack Default"},{default:t(()=>a[3]||(a[3]=[i("p",null,"Stacks will become a table with a column for each dimension, and one for each layer:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×5 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data1 "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 a 0.555606 0.845201")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 a 0.102767 0.910424")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 a 0.222371 0.826802")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 a 0.550148 0.944751")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 a 0.0930075 0.159458")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 a 0.489525 0.614656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 a 0.793832 0.977066")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 a 0.00191986 0.798656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ 4 10 z 0.305367 0.4497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ 5 10 z 0.814612 0.945291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ 6 10 z 0.381676 0.245243")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ 7 10 z 0.17978 0.19857")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ 8 10 z 0.704466 0.694279")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ 9 10 z 0.56974 0.206362")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ 10 10 z 0.856091 0.842866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1}),h(l,{label:"layersfrom"},{default:t(()=>a[4]||(a[4]=[i("p",null,[s("Using "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimTable"},[i("code",null,"DimTable")]),s(" we can specify that a "),i("code",null,"DimArray"),s(" should take columns from one of the dimensions:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimTable"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; layersfrom"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":category"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"100×28 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_a "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_b "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_c "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_d "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_ ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"─────┼──────────────────────────────────────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 0.599241 0.819605 0.402083 0.960726 0.029602 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 0.192192 0.457841 0.290409 0.488473 0.367212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 0.607291 0.670607 0.881528 0.227082 0.302073")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 0.921958 0.713814 0.884385 0.186811 0.256817")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 0.449491 0.610193 0.195938 0.234767 0.738445 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 0.581131 0.956417 0.182707 0.145037 0.061892")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 0.194849 0.510587 0.493065 0.619787 0.936495")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 0.364097 0.0445446 0.849707 0.153753 0.64534")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 94 │ 4 10 0.0120967 0.739936 0.0309852 0.0216477 0.645529 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 95 │ 5 10 0.266342 0.800929 0.843637 0.817821 0.97954")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 96 │ 6 10 0.620473 0.669153 0.445218 0.516396 0.084109")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 97 │ 7 10 0.436622 0.789667 0.76511 0.622735 0.713941")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 98 │ 8 10 0.570725 0.921567 0.0970658 0.233997 0.067300 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 99 │ 9 10 0.966517 0.114915 0.439371 0.679632 0.9409")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 100 │ 10 10 0.74172 0.98893 0.456688 0.270915 0.86112")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 22 columns and 85 rows omitted")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; layersfrom"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":category"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────┴─────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :e"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :f"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :g"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :h"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :i"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :j"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :k"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :l"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :p"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :q"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :r"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :s"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :t"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :u"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :v"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :w"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :x"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :z"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(l,{label:"mergedims"},{default:t(()=>a[5]||(a[5]=[i("p",null,[s("Using "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimTable"},[i("code",null,"DimTable")]),s(" we can merge the spatial dimensions so the column is a tuple:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimTable"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; mergedims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":XY"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×4 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," XY "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data1 "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Tuple… "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ (1, 1) a 0.555606 0.845201")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ (2, 1) a 0.102767 0.910424")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ (3, 1) a 0.222371 0.826802")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ (4, 1) a 0.550148 0.944751")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ (5, 1) a 0.0930075 0.159458")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ (6, 1) a 0.489525 0.614656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ (7, 1) a 0.793832 0.977066")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ (8, 1) a 0.00191986 0.798656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ (4, 10) z 0.305367 0.4497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ (5, 10) z 0.814612 0.945291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ (6, 10) z 0.381676 0.245243")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ (7, 10) z 0.17978 0.19857")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ (8, 10) z 0.704466 0.694279")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ (9, 10) z 0.56974 0.206362")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ (10, 10) z 0.856091 0.842866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1})]),_:1}),a[8]||(a[8]=e(`

Converting to CSV

We can also write arrays and stacks directly to CSV.jl, or any other data type supporting the Tables.jl interface.

julia
using CSV
+CSV.write("dimstack.csv", st)
+readlines("dimstack.csv")
2601-element Vector{String}:
+ "X,Y,category,data1,data2"
+ "1,1,a,0.55560637324799,0.845200516911609"
+ "2,1,a,0.10276733254788795,0.9104238640380062"
+ "3,1,a,0.22237128922242078,0.8268020755919178"
+ "4,1,a,0.5501481631111826,0.9447511416331498"
+ "5,1,a,0.09300753748828394,0.15945803739833375"
+ "6,1,a,0.48952511607945026,0.6146564273146751"
+ "7,1,a,0.7938317326707394,0.9770663775826343"
+ "8,1,a,0.0019198597596568057,0.798655984630017"
+ "9,1,a,0.44833963865079907,0.40268027828179853"
+
+ "2,10,z,0.9675326879984427,0.41940525122635797"
+ "3,10,z,0.5099922507050859,0.07986058669268159"
+ "4,10,z,0.3053673139967894,0.4496996354823414"
+ "5,10,z,0.8146121812750928,0.9452913850518949"
+ "6,10,z,0.38167574879167476,0.24524306337289326"
+ "7,10,z,0.17977958441149666,0.1985699519321249"
+ "8,10,z,0.7044663405368152,0.694278906020718"
+ "9,10,z,0.5697400488168892,0.20636222545147498"
+ "10,10,z,0.8560905731682101,0.8428656510212863"
`,4))])}const E=n(r,[["render",f]]);export{m as __pageData,E as default}; diff --git a/previews/PR872/assets/tables.md.BVWkIzEo.lean.js b/previews/PR872/assets/tables.md.BVWkIzEo.lean.js new file mode 100644 index 000000000..085159c47 --- /dev/null +++ b/previews/PR872/assets/tables.md.BVWkIzEo.lean.js @@ -0,0 +1,165 @@ +import{_ as n,c as g,a4 as e,G as h,w as t,j as i,a as s,B as d,o as p}from"./chunks/framework.ByNLHi2E.js";const m=JSON.parse('{"title":"Tables and DataFrames","description":"","frontmatter":{},"headers":[],"relativePath":"tables.md","filePath":"tables.md","lastUpdated":null}'),r={name:"tables.md"};function f(o,a,y,c,b,w){const l=d("PluginTabsTab"),k=d("PluginTabs");return p(),g("div",null,[a[6]||(a[6]=e(`

Tables and DataFrames

Tables.jl provides an ecosystem-wide interface to tabular data in Julia, ensuring interoperability with DataFrames.jl, CSV.jl, and hundreds of other packages that implement the standard.

DimensionalData.jl implements the Tables.jl interface for AbstractDimArray and AbstractDimStack. DimStack layers are unrolled so they are all the same size, and dimensions loop to match the length of the largest layer.

Columns are given the name of the array or stack layer, and the result of DD.name(dimension) for Dimension columns.

Looping of dimensions and stack layers is done lazily, and does not allocate unless collected.

Example

julia
using DimensionalData
+using Dates
+using DataFrames

Define some dimensions:

julia
julia> x, y, c = X(1:10), Y(1:10), Dim{:category}('a':'z')
(X        1:10,
+Y        1:10,
+category 'a':1:'z')
`,10)),h(k,null,{default:t(()=>[h(l,{label:"Create a `DimArray`"},{default:t(()=>a[0]||(a[0]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," A "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y, c; name"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":data"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────────────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimArray{Float64, 3}"),i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," data"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────┴─────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}}," ↗ "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"'a':1:'z'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"["),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},":"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},":"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"]")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," →"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 1"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 2"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," … "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"8"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 9"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," 10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 1"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.599241 0.518938 0.341133 0.486559 0.162516 0.934189")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 2"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.192192 0.336376 0.636476 0.840593 0.687569 0.294486")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 3"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.607291 0.963657 0.353968 0.120955 0.434286 0.887294")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 4"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.921958 0.128827 0.517175 0.101305 0.743407 0.0120967")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," ⋮ ⋱ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 7"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.194849 0.975511 0.612828 0.888721 0.890574 0.436622")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 8"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.364097 0.163103 0.142055 0.049689 0.259847 0.570725")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 9"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.394448 0.755939 0.54624 0.156388 0.210664 0.966517")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," 10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," 0.828604 0.359421 0.51621 … 0.828161 0.107233 0.74172")])])])],-1)])),_:1}),h(l,{label:"Create a `DimStack`"},{default:t(()=>a[1]||(a[1]=[i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}}," st "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"((data1 "),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y), data2"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"rand"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(x, y, c)))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭───────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├───────────────────┴──────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}}," ↗ "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Categorical{Char} "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"'a':1:'z'"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :data1"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :data2"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"category"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#5fd7ff","--shiki-dark":"#5fd7ff"}},"26")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1})]),_:1}),a[7]||(a[7]=i("h2",{id:"Converting-to-DataFrame",tabindex:"-1"},[s("Converting to DataFrame "),i("a",{class:"header-anchor",href:"#Converting-to-DataFrame","aria-label":'Permalink to "Converting to DataFrame {#Converting-to-DataFrame}"'},"​")],-1)),h(k,null,{default:t(()=>[h(l,{label:"Array Default"},{default:t(()=>a[2]||(a[2]=[i("p",null,"Arrays will have columns for each dimension, and only one data column",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×4 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 a 0.599241")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 a 0.192192")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 a 0.607291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 a 0.921958")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 a 0.449491")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 a 0.581131")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 a 0.194849")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 a 0.364097")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ 4 10 z 0.852872")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ 5 10 z 0.0958843")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ 6 10 z 0.315302")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ 7 10 z 0.236866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ 8 10 z 0.894053")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ 9 10 z 0.350024")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ 10 10 z 0.417756")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1}),h(l,{label:"Stack Default"},{default:t(()=>a[3]||(a[3]=[i("p",null,"Stacks will become a table with a column for each dimension, and one for each layer:",-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st)")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×5 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data1 "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 a 0.555606 0.845201")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 a 0.102767 0.910424")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 a 0.222371 0.826802")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 a 0.550148 0.944751")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 a 0.0930075 0.159458")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 a 0.489525 0.614656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 a 0.793832 0.977066")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 a 0.00191986 0.798656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ 4 10 z 0.305367 0.4497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ 5 10 z 0.814612 0.945291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ 6 10 z 0.381676 0.245243")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ 7 10 z 0.17978 0.19857")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ 8 10 z 0.704466 0.694279")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ 9 10 z 0.56974 0.206362")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ 10 10 z 0.856091 0.842866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1}),h(l,{label:"layersfrom"},{default:t(()=>a[4]||(a[4]=[i("p",null,[s("Using "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimTable"},[i("code",null,"DimTable")]),s(" we can specify that a "),i("code",null,"DimArray"),s(" should take columns from one of the dimensions:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimTable"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; layersfrom"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":category"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"100×28 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," X "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Y "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_a "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_b "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_c "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_d "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category_ ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Int64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"─────┼──────────────────────────────────────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ 1 1 0.599241 0.819605 0.402083 0.960726 0.029602 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ 2 1 0.192192 0.457841 0.290409 0.488473 0.367212")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ 3 1 0.607291 0.670607 0.881528 0.227082 0.302073")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ 4 1 0.921958 0.713814 0.884385 0.186811 0.256817")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ 5 1 0.449491 0.610193 0.195938 0.234767 0.738445 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ 6 1 0.581131 0.956417 0.182707 0.145037 0.061892")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ 7 1 0.194849 0.510587 0.493065 0.619787 0.936495")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ 8 1 0.364097 0.0445446 0.849707 0.153753 0.64534")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋱")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 94 │ 4 10 0.0120967 0.739936 0.0309852 0.0216477 0.645529 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 95 │ 5 10 0.266342 0.800929 0.843637 0.817821 0.97954")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 96 │ 6 10 0.620473 0.669153 0.445218 0.516396 0.084109")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 97 │ 7 10 0.436622 0.789667 0.76511 0.622735 0.713941")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 98 │ 8 10 0.570725 0.921567 0.0970658 0.233997 0.067300 ⋯")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 99 │ 9 10 0.966517 0.114915 0.439371 0.679632 0.9409")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 100 │ 10 10 0.74172 0.98893 0.456688 0.270915 0.86112")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 22 columns and 85 rows omitted")])])])],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DimStack"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(A; layersfrom"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":category"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"╭────────────────╮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"│ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," DimStack"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," │")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────┴─────────────────────────────────────────────────────── dims ┐")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}}," ↓ "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},",")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}}," → "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}}," Sampled{Int64} "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"1:10"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," ForwardOrdered"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Regular"),i("span",{style:{"--shiki-light":"#808080","--shiki-dark":"#808080"}}," Points")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"├────────────────────────────────────────────────────────────────────── layers ┤")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :a"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :b"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :c"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :d"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :e"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :f"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :g"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :h"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :i"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :j"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :k"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :l"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :m"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :n"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :o"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :p"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :q"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :r"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :s"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :t"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :u"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :v"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :w"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :x"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#00afaf","--shiki-dark":"#00afaf"}}," :z"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," eltype: "),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"Float64"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," dims: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"X"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},", "),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"Y"),i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}}," size: "),i("span",{style:{"--shiki-light":"#ff875f","--shiki-dark":"#ff875f"}},"10"),i("span",{style:{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8"}},"×"),i("span",{style:{"--shiki-light":"#0087d7","--shiki-dark":"#0087d7"}},"10")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-dark":"#959da5"}},"└──────────────────────────────────────────────────────────────────────────────┘")])])])],-1)])),_:1}),h(l,{label:"mergedims"},{default:t(()=>a[5]||(a[5]=[i("p",null,[s("Using "),i("a",{href:"/DimensionalData.jl/previews/PR872/api/reference#DimensionalData.DimTable"},[i("code",null,"DimTable")]),s(" we can merge the spatial dimensions so the column is a tuple:")],-1),i("div",{class:"language-julia vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"},"julia"),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"julia"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},">"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}}," DataFrame"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},"DimTable"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"(st; mergedims"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"="),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"("),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":X"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},", "),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":Y"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},")"),i("span",{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"}},"=>"),i("span",{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"}},":XY"),i("span",{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"}},"))")])])])],-1),i("div",{class:"language- vp-adaptive-theme"},[i("button",{title:"Copy Code",class:"copy"}),i("span",{class:"lang"}),i("pre",{class:"shiki shiki-themes github-light github-dark vp-code",tabindex:"0"},[i("code",null,[i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}},"2600×4 DataFrame")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," Row │"),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," XY "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," category "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data1 "),i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," data2")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#24292e","--shiki-light-font-weight":"bold","--shiki-dark":"#e1e4e8","--shiki-dark-font-weight":"bold"}}," │"),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Tuple… "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Char "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64 "),i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," Float64")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}},"──────┼───────────────────────────────────────────")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 1 │ (1, 1) a 0.555606 0.845201")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2 │ (2, 1) a 0.102767 0.910424")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 3 │ (3, 1) a 0.222371 0.826802")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 4 │ (4, 1) a 0.550148 0.944751")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 5 │ (5, 1) a 0.0930075 0.159458")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 6 │ (6, 1) a 0.489525 0.614656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 7 │ (7, 1) a 0.793832 0.977066")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 8 │ (8, 1) a 0.00191986 0.798656")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," ⋮ │ ⋮ ⋮ ⋮ ⋮")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2594 │ (4, 10) z 0.305367 0.4497")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2595 │ (5, 10) z 0.814612 0.945291")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2596 │ (6, 10) z 0.381676 0.245243")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2597 │ (7, 10) z 0.17978 0.19857")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2598 │ (8, 10) z 0.704466 0.694279")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2599 │ (9, 10) z 0.56974 0.206362")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#959da5","--shiki-light-font-weight":"bold","--shiki-dark":"#959da5","--shiki-dark-font-weight":"bold"}}," 2600 │ (10, 10) z 0.856091 0.842866")]),s(` +`),i("span",{class:"line"},[i("span",{style:{"--shiki-light":"#1b7c83","--shiki-light-font-weight":"bold","--shiki-dark":"#39c5cf","--shiki-dark-font-weight":"bold"}}," 2585 rows omitted")])])])],-1)])),_:1})]),_:1}),a[8]||(a[8]=e(`

Converting to CSV

We can also write arrays and stacks directly to CSV.jl, or any other data type supporting the Tables.jl interface.

julia
using CSV
+CSV.write("dimstack.csv", st)
+readlines("dimstack.csv")
2601-element Vector{String}:
+ "X,Y,category,data1,data2"
+ "1,1,a,0.55560637324799,0.845200516911609"
+ "2,1,a,0.10276733254788795,0.9104238640380062"
+ "3,1,a,0.22237128922242078,0.8268020755919178"
+ "4,1,a,0.5501481631111826,0.9447511416331498"
+ "5,1,a,0.09300753748828394,0.15945803739833375"
+ "6,1,a,0.48952511607945026,0.6146564273146751"
+ "7,1,a,0.7938317326707394,0.9770663775826343"
+ "8,1,a,0.0019198597596568057,0.798655984630017"
+ "9,1,a,0.44833963865079907,0.40268027828179853"
+
+ "2,10,z,0.9675326879984427,0.41940525122635797"
+ "3,10,z,0.5099922507050859,0.07986058669268159"
+ "4,10,z,0.3053673139967894,0.4496996354823414"
+ "5,10,z,0.8146121812750928,0.9452913850518949"
+ "6,10,z,0.38167574879167476,0.24524306337289326"
+ "7,10,z,0.17977958441149666,0.1985699519321249"
+ "8,10,z,0.7044663405368152,0.694278906020718"
+ "9,10,z,0.5697400488168892,0.20636222545147498"
+ "10,10,z,0.8560905731682101,0.8428656510212863"
`,4))])}const E=n(r,[["render",f]]);export{m as __pageData,E as default}; diff --git a/previews/PR872/assets/yqlixmh.DNNBmrjN.svg b/previews/PR872/assets/yqlixmh.DNNBmrjN.svg new file mode 100644 index 000000000..d34816d2f --- /dev/null +++ b/previews/PR872/assets/yqlixmh.DNNBmrjN.svg @@ -0,0 +1,340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/basics.html b/previews/PR872/basics.html new file mode 100644 index 000000000..b196c6c2c --- /dev/null +++ b/previews/PR872/basics.html @@ -0,0 +1,76 @@ + + + + + + DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Installation

If you want to use this package you need to install it first. You can do it using the following commands:

julia
julia> ] # ']' should be pressed
+pkg> add DimensionalData

or

julia
julia> using Pkg
+julia> Pkg.add("DimensionalData")

Additionally, it is recommended to check the version that you have installed with the status command.

julia
julia> ]
+pkg> status DimensionalData

Basics

Start using the package:

julia
using DimensionalData

and create your first DimArray

julia
julia> A = DimArray(rand(4,5), (a=1:4, b=1:5))
╭──────────────────────────╮
+4×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+a Sampled{Int64} 1:4 ForwardOrdered Regular Points,
+b Sampled{Int64} 1:5 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  1          2         3          4          5
+ 1    0.0333106  0.758203  0.973154   0.0710221  0.868064
+ 2    0.52849    0.571821  0.920182   0.545156   0.106593
+ 3    0.70366    0.539028  0.0670111  0.404635   0.799977
+ 4    0.68316    0.965008  0.0781957  0.130775   0.570914

or

julia
julia> C = DimArray(rand(Int8, 10), (alpha='a':'j',))
╭──────────────────────────────╮
+10-element DimArray{Int8, 1}
+├──────────────────────────────┴───────────────────────────────────────── dims ┐
+alpha Categorical{Char} 'a':1:'j' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+ 'a'  -21
+ 'b'  101
+ 'c'   51
+ 'd'  -35
+ 'e'  106
+ 'f'   88
+ 'g'  -98
+ 'h'   14
+ 'i'  -73
+ 'j'  -54

or something a little bit more complicated:

julia
julia> data = rand(Int8, 2, 10, 3) .|> abs
2×10×3 Array{Int8, 3}:
+[:, :, 1] =
+ 46  76  38  32  120  122  29  57   9  23
+ 78  26   6  50   16  125  11  98  39  95
+
+[:, :, 2] =
+  50  101  46  48  76  17    1   69  11  112
+ 105   15  50  90   5  70  107  120  86   15
+
+[:, :, 3] =
+ 38  59   41  47  41   11  117   82   74   61
+ 76  72  112  89  39  109   86  117  117  120
julia
julia> B = DimArray(data, (channel=[:left, :right], time=1:10, iter=1:3))
╭──────────────────────────╮
+2×10×3 DimArray{Int8, 3}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+channel Categorical{Symbol} [:left, :right] ForwardOrdered,
+time    Sampled{Int64} 1:10 ForwardOrdered Regular Points,
+iter    Sampled{Int64} 1:3 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+       1   2   3   4    5    6   7   8   9  10
+  :left   46  76  38  32  120  122  29  57   9  23
+  :right  78  26   6  50   16  125  11  98  39  95
+ + + + \ No newline at end of file diff --git a/previews/PR872/broadcasts.html b/previews/PR872/broadcasts.html new file mode 100644 index 000000000..79cd2b645 --- /dev/null +++ b/previews/PR872/broadcasts.html @@ -0,0 +1,165 @@ + + + + + + Dimensional broadcasts with @d and broadcast_dims | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Dimensional broadcasts with @d and broadcast_dims

Broadcasting over AbstractDimArray works as usual with Base Julia broadcasts, except that dimensions are checked for compatibility with each other, and that values match. Strict checks can be turned off globally with strict_broadcast!(false). To avoid even dimension name checks, broadcast over parent(dimarray).

The @d macro is a dimension-aware extension to regular dot broadcasting. broadcast_dims is analogous to Base Julia's broadcast.

Because we know the names of the dimensions, there is no ambiguity in which ones we mean to broadcast together. This means we can permute and reshape dims so that broadcasts that would fail with a regular Array just work with a DimArray.

As an added bonus, broadcast_dims even works on DimStacks. Currently, @d does not work on DimStack.

Example: scaling along the time dimension

Define some dimensions:

julia
using DimensionalData
+using Dates
+using Statistics
julia
julia> x, y, t = X(1:100), Y(1:25), Ti(DateTime(2000):Month(1):DateTime(2000, 12))
(X  1:100,
+Y  1:25,
+Ti DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00"))

A DimArray from 1:12 to scale with:

julia
julia> month_scalars = DimArray(month, t)
╭─────────────────────────────────────────╮
+12-element DimArray{Int64, 1} month(Ti)
+├─────────────────────────────────────────┴────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00   1
+ 2000-02-01T00:00:00   2
+ 2000-03-01T00:00:00   3
+ 2000-04-01T00:00:00   4
+ 2000-05-01T00:00:00   5
+ 2000-06-01T00:00:00   6
+ 2000-07-01T00:00:00   7
+ 2000-08-01T00:00:00   8
+ 2000-09-01T00:00:00   9
+ 2000-10-01T00:00:00  10
+ 2000-11-01T00:00:00  11
+ 2000-12-01T00:00:00  12

And a larger DimArray for example data:

julia
julia> data = rand(x, y, t)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

A regular broadcast fails:

julia
julia> scaled = data .* month_scalars
ERROR: DimensionMismatch: arrays could not be broadcast to a common size: a has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(100), X{Sampled{Int64, UnitRange{Int64}, ForwardOrdered, Regular{Int64}, Points, NoMetadata}}([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100])) and b has axes DimensionalData.Dimensions.DimUnitRange(Base.OneTo(12), Ti{Sampled{DateTime, StepRange{DateTime, Month}, ForwardOrdered, Regular{Month}, Points, NoMetadata}}([DateTime("2000-01-01T00:00:00"), DateTime("2000-02-01T00:00:00"), DateTime("2000-03-01T00:00:00"), DateTime("2000-04-01T00:00:00"), DateTime("2000-05-01T00:00:00"), DateTime("2000-06-01T00:00:00"), DateTime("2000-07-01T00:00:00"), DateTime("2000-08-01T00:00:00"), DateTime("2000-09-01T00:00:00"), DateTime("2000-10-01T00:00:00"), DateTime("2000-11-01T00:00:00"), DateTime("2000-12-01T00:00:00")]))

But @d knows to broadcast over the Ti dimension:

julia
julia> scaled = @d data .* month_scalars
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

We can see the means of each month are scaled by the broadcast :

julia
julia> mean(eachslice(data; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.499674
+ 2000-03-01T00:00:00  0.510863
+ 2000-04-01T00:00:00  0.500818
+ 2000-05-01T00:00:00  0.501124
+ 2000-06-01T00:00:00  0.495215
+ 2000-07-01T00:00:00  0.489497
+ 2000-08-01T00:00:00  0.500495
+ 2000-09-01T00:00:00  0.491479
+ 2000-10-01T00:00:00  0.499282
+ 2000-11-01T00:00:00  0.491202
+ 2000-12-01T00:00:00  0.485718
julia
julia> mean(eachslice(scaled; dims=(X, Y)))
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  0.50854
+ 2000-02-01T00:00:00  0.999348
+ 2000-03-01T00:00:00  1.53259
+ 2000-04-01T00:00:00  2.00327
+ 2000-05-01T00:00:00  2.50562
+ 2000-06-01T00:00:00  2.97129
+ 2000-07-01T00:00:00  3.42648
+ 2000-08-01T00:00:00  4.00396
+ 2000-09-01T00:00:00  4.42331
+ 2000-10-01T00:00:00  4.99282
+ 2000-11-01T00:00:00  5.40322
+ 2000-12-01T00:00:00  5.82862

You can also use broadcast_dims the same way:

julia
julia> broadcast_dims(*, data, month_scalars)
╭────────────────────────────────╮
+100×25×12 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1          2         323          24         25
+   1    0.624685   0.909533  0.43314        0.0541549   0.721101   0.600306
+   2    0.546357   0.621601  0.960677       0.129382    0.434374   0.438592
+   3    0.407207   0.861652  0.0837074      0.0725917   0.800084   0.749829
+   4    0.67539    0.637399  0.416444       0.853879    0.988957   0.44724
+   ⋮                                    ⋱                          ⋮
+  97    0.474087   0.475786  0.759047       0.704613    0.706165   0.1279
+  98    0.844262   0.668594  0.431398       0.746465    0.919534   0.398776
+  99    0.0471885  0.788358  0.0145691      0.647328    0.517971   0.910412
+ 100    0.0442448  0.702787  0.585658   …   0.68326     0.774131   0.403955

And with the @d macro you can set the dimension order and other properties of the output array, by passing a single assignment or a NamedTuple argument to @d after the broadcast:

julia
julia> @d data .* month_scalars dims=(Ti, X, Y)
╭────────────────────────────────╮
+12×100×25 DimArray{Float64, 3}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415

Or

julia
julia> @d data .* month_scalars (dims=(Ti, X, Y), name=:scaled)
╭───────────────────────────────────────╮
+12×100×25 DimArray{Float64, 3} scaled
+├───────────────────────────────────────┴──────────────────────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Month(1):DateTime("2000-12-01T00:00:00") ForwardOrdered Regular Points,
+X  Sampled{Int64} 1:100 ForwardOrdered Regular Points,
+Y  Sampled{Int64} 1:25 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+                   198         99          100
+  2000-01-01T00:00:00  0.624685      0.844262   0.0471885    0.0442448
+  2000-02-01T00:00:00  0.547848      1.79785    0.187495     0.441762
+  2000-03-01T00:00:00  2.49232       1.15489    2.82356      0.921936
+  2000-04-01T00:00:00  0.439142      2.61341    1.59542      2.24247
+ ⋮                               ⋱                           ⋮
+  2000-09-01T00:00:00  3.27042       6.61858    3.10246      5.93972
+  2000-10-01T00:00:00  0.12404   …   2.53632    7.83904      6.55713
+  2000-11-01T00:00:00  1.79388       2.5891     2.14203      5.52389
+  2000-12-01T00:00:00  8.84219       6.15004    5.04169      6.10415
+ + + + \ No newline at end of file diff --git a/previews/PR872/cuda.html b/previews/PR872/cuda.html new file mode 100644 index 000000000..a655ace68 --- /dev/null +++ b/previews/PR872/cuda.html @@ -0,0 +1,55 @@ + + + + + + CUDA & GPUs | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

CUDA & GPUs

Running regular julia code on GPUs is one of the most amazing things about the language. DimensionalData.jl leans into this as much as possible.

julia
using DimensionalData, CUDA
+
+# Create a Float32 array to use on the GPU
+A = rand(Float32, X(1.0:1000.0), Y(1.0:2000.0))
+
+# Move the parent data to the GPU with `modify` and the `CuArray` constructor:
+cuA = modify(CuArray, A)

The result of a GPU broadcast is still a DimArray:

julia
julia> cuA2 = cuA .* 2
+╭───────────────────────────────╮
+1000×2000 DimArray{Float32,2} │
+├───────────────────────────────┴────────────────────────────── dims ┐
+ X Sampled{Float64} 1.0:1.0:1000.0 ForwardOrdered Regular Points,
+ Y Sampled{Float64} 1.0:1.0:2000.0 ForwardOrdered Regular Points
+└────────────────────────────────────────────────────────────────────┘
+  1.0       2.0        3.0        4.0  1998.0        1999.0        2000.0
+    1.0  1.69506   1.28405    0.989952   0.900394        1.73623       1.30427       1.98193
+    2.0  1.73591   0.929995   0.665742   0.345501        0.162919      1.81708       0.702944
+    3.0  1.24575   1.80455    1.78028    1.49097         0.45804       0.224375      0.0197492
+    4.0  0.374026  1.91495    1.17645    0.995683        0.835288      1.54822       0.487601
+    5.0  1.17673   0.0557598  0.183637   1.90645     0.88058       1.23788       1.59705
+    6.0  1.57019   0.215049   1.9155     0.982762        0.906838      0.1076        0.390081
+                              
+  995.0  1.48275   0.40409    1.37963    1.66622         0.462981      1.4492        1.26917
+  996.0  1.88869   1.86174    0.298383   0.854739     0.778222      1.42151       1.75568
+  997.0  1.88092   1.87436    0.285965   0.304688        1.32669       0.0599431     0.134186
+  998.0  1.18035   1.61025    0.352614   1.75847         0.464554      1.90309       1.30923
+  999.0  1.40584   1.83056    0.0804518  0.177423        1.20779       1.95217       0.881149
+ 1000.0  1.41334   0.719974   0.479126   1.92721         0.0649391     0.642908      1.07277

But the data is on the GPU:

julia
julia> typeof(parent(cuA2))
+CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}

GPU Integration goals

DimensionalData.jl has two GPU-related goals:

  1. Work seamlessly with Base Julia broadcasts and other operations that already work on GPU.

  2. Work as arguments to custom GPU kernel functions.

This means any AbstractDimArray must be automatically moved to the GPU and its fields converted to GPU-friendly forms whenever required, using Adapt.jl.

  • The array data must convert to the correct GPU array backend when Adapt.adapt(dimarray) is called.

  • All DimensionalData.jl objects, except the actual parent array, need to be immutable isbits or convertible to them. This is one reason DimensionalData.jl uses rebuild and a functional style, rather than in-place modification of fields.

  • Symbols need to be moved to the type system, so Name{:layer_name}() replaces :layer_name.

  • Metadata dictionaries need to be stripped, as they are often too difficult to convert and not needed on GPU.

As an example, DynamicGrids.jl uses AbstractDimArray for auxiliary model data that are passed into KernelAbstractions.jl/ CUDA.jl kernels.

+ + + + \ No newline at end of file diff --git a/previews/PR872/dimarrays.html b/previews/PR872/dimarrays.html new file mode 100644 index 000000000..7ccf554ac --- /dev/null +++ b/previews/PR872/dimarrays.html @@ -0,0 +1,206 @@ + + + + + + DimArrays | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

DimArrays

DimArrays are wrappers for other kinds of AbstractArray that add named dimension lookups.

Here we define a Matrix of Float64, and give it X and Y dimensions

julia
julia> using DimensionalData
+
+julia> A = rand(5, 10)
5×10 Matrix{Float64}:
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077
julia
julia> da = DimArray(A, (X, Y))
╭───────────────────────────╮
+5×10 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0.827655   0.0102884  0.688175  0.254555  …  0.628275   0.517329  0.886959
+ 0.223602   0.737979   0.996807  0.124594     0.0959042  0.628507  0.893267
+ 0.0392779  0.792885   0.249616  0.519235     0.0315486  0.113704  0.997572
+ 0.451879   0.846175   0.373575  0.891743     0.700389   0.958811  0.68136
+ 0.689712   0.0927459  0.765773  0.273573     0.688928   0.761347  0.596077

We can access a value with the same dimension wrappers:

julia
julia> da[Y(1), X(2)]
0.2236016853688918

There are shortcuts for creating DimArray:

julia
julia> A = rand(5, 10)
5×10 Matrix{Float64}:
+ 0.670688  0.534915   0.111072  0.194465  …  0.121525  0.797168  0.0239356
+ 0.741593  0.707692   0.879899  0.813705     0.601833  0.826098  0.493417
+ 0.119505  0.0999314  0.403111  0.755958     0.289335  0.542251  0.0622255
+ 0.775377  0.217733   0.865298  0.876395     0.108514  0.306932  0.627107
+ 0.576903  0.950338   0.854076  0.511978     0.866334  0.905021  0.0238569
julia
julia> DimArray(A, (X, Y))
╭───────────────────────────╮
+5×10 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0.670688  0.534915   0.111072  0.194465  …  0.121525  0.797168  0.0239356
+ 0.741593  0.707692   0.879899  0.813705     0.601833  0.826098  0.493417
+ 0.119505  0.0999314  0.403111  0.755958     0.289335  0.542251  0.0622255
+ 0.775377  0.217733   0.865298  0.876395     0.108514  0.306932  0.627107
+ 0.576903  0.950338   0.854076  0.511978     0.866334  0.905021  0.0238569
julia
julia> DimArray(A, (X, Y); name=:DimArray, metadata=Dict())
╭────────────────────────────────────╮
+5×10 DimArray{Float64, 2} DimArray
+├────────────────────────────────────┴───────────────────── dims ┐
+X, Y
+├────────────────────────────────────────────────────── metadata ┤
+  Dict{Any, Any}()
+└────────────────────────────────────────────────────────────────┘
+ 0.670688  0.534915   0.111072  0.194465  …  0.121525  0.797168  0.0239356
+ 0.741593  0.707692   0.879899  0.813705     0.601833  0.826098  0.493417
+ 0.119505  0.0999314  0.403111  0.755958     0.289335  0.542251  0.0622255
+ 0.775377  0.217733   0.865298  0.876395     0.108514  0.306932  0.627107
+ 0.576903  0.950338   0.854076  0.511978     0.866334  0.905021  0.0238569

Constructing DimArray with arbitrary dimension names

For arbitrary names, we can use the Dim{:name} dims by using Symbols, and indexing with keywords:

julia
julia> da1 = DimArray(rand(5, 5), (:a, :b))
╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

and get a value, here another smaller DimArray:

julia
julia> da1[a=3, b=1:3]
╭────────────────────────────────╮
+3-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+b
+└─────────────────────────────────┘
+ 0.910981
+ 0.503823
+ 0.488029

Dimensional Indexing

When used for indexing, dimension wrappers free us from knowing the order of our objects axes. These are the same:

julia
julia> da[X(2), Y(1)] == da[Y(1), X(2)]
true

We also can use Tuples of dimensions, like CartesianIndex, but they don't have to be in order of consecutive axes.

julia
julia> da2 = rand(X(10), Y(7), Z(5))
╭─────────────────────────────╮
+10×7×5 DimArray{Float64, 3}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X, Y, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.41173   0.0789906  0.655936    0.762722   0.56273    0.0160205  0.640693
+ 0.228294  0.687236   0.345046    0.749573   0.949769   0.783195   0.591606
+ 0.258576  0.89609    0.00337686  0.99118    0.169845   0.159817   0.784693
+ 0.295346  0.768639   0.754468    0.0738813  0.675126   0.968484   0.243035
+ 0.254627  0.411529   0.629352    0.285205   0.18989    0.891663   0.597808
+ 0.435719  0.0450386  0.0531003   0.385452   0.322612   0.667691   0.906601
+ 0.88841   0.571658   0.991676    0.677848   0.697976   0.971252   0.776593
+ 0.284399  0.196524   0.119937    0.493258   0.342919   0.866772   0.0990347
+ 0.192286  0.765808   0.502499    0.404773   0.0623616  0.627002   0.184813
+ 0.762199  0.159233   0.769884    0.74428    0.606279   0.351096   0.268379
julia
julia> da2[(X(3), Z(5))]
╭────────────────────────────────╮
+7-element DimArray{Float64, 1}
+├────────────────────────────────┴ dims ┐
+Y
+└─────────────────────────────────┘
+ 0.644748
+ 0.493072
+ 0.316833
+ 0.372311
+ 0.313185
+ 0.494267
+ 0.705582

We can index with Vector of Tuple{Vararg(Dimension}} like vectors of CartesianIndex. This will merge the dimensions in the tuples:

julia
julia> inds = [(X(3), Z(5)), (X(7), Z(4)), (X(8), Z(2))]
3-element Vector{Tuple{X{Int64}, Z{Int64}}}:
+ (X 3, Z 5)
+ (X 7, Z 4)
+ (X 8, Z 2)
julia
julia> da2[inds]
╭──────────────────────────╮
+7×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+Y ,
+XZ MergedLookup{Tuple{Int64, Int64}} [(3, 5), (7, 4), (8, 2)]X, Z
+└──────────────────────────────────────────────────────────────────────────────┘
+  (3, 5)    (7, 4)     (8, 2)
+ 0.644748  0.510196   0.528138
+ 0.493072  0.925624   0.142957
+ 0.316833  0.485321   0.708081
+ 0.372311  0.676945   0.406221
+ 0.313185  0.0379776  0.6778
+ 0.494267  0.287739   0.155826
+ 0.705582  0.996358   0.638336

DimIndices can be used like CartesianIndices but again, without the constraint of consecutive dimensions or known order.

julia
julia> da2[DimIndices(dims(da2, (X, Z))), Y(3)]
╭───────────────────────────╮
+10×5 DimArray{Float64, 2}
+├───────────────────────────┴────────────────────────────── dims ┐
+X, Z
+└────────────────────────────────────────────────────────────────┘
+ 0.655936    0.853835  0.870583   0.0578313  0.971794
+ 0.345046    0.17597   0.638072   0.136127   0.962808
+ 0.00337686  0.378395  0.0314382  0.310753   0.316833
+ 0.754468    0.188864  0.614012   0.883048   0.191049
+ 0.629352    0.190726  0.338669   0.105539   0.925844
+ 0.0531003   0.876115  0.945147   0.873096   0.342887
+ 0.991676    0.702956  0.281077   0.485321   0.798621
+ 0.119937    0.708081  0.0363983  0.247755   0.527261
+ 0.502499    0.641023  0.0104608  0.10233    0.635425
+ 0.769884    0.37821   0.881533   0.535933   0.454033

The Dimension indexing layer sits on top of regular indexing and can not be combined with it! Regular indexing specifies order, so doesn't mix well with our dimensions.

Mixing them will throw an error:

julia
julia> da1[X(3), 4]
ERROR: ArgumentError: invalid index: X{Int64}(3) of type X{Int64}

Begin End indexing

julia
julia> da1[X=Begin+1, Y=End]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

It also works in ranges, even with basic math:

julia
julia> da1[X=Begin:Begin+1, Y=Begin+1:End-1]
Warning: (X, Y) dims were not found in object.
+@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/primitives.jl:846
+╭──────────────────────────╮
+5×5 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+a, b
+└────────────────────────────────────────────────────────────────┘
+ 0.601474  0.337576  0.770316  0.21149    0.121375
+ 0.113873  0.511078  0.201362  0.716257   0.253984
+ 0.910981  0.503823  0.488029  0.0130048  0.121186
+ 0.436293  0.789198  0.32806   0.361921   0.830187
+ 0.426888  0.46788   0.724709  0.15163    0.996398

In base julia the keywords begin and end can be used to index the first or last element of an array. But this doesn't work when named indexing is used. Instead you can use the types Begin and End.

Indexing

Indexing AbstractDimArrays works with getindex, setindex! and view. The result is still an AbstracDimArray, unless using all single Int or Selectors that resolve to Int inside Dimension.

dims keywords

In many Julia functions like, size or sum, you can specify the dimension along which to perform the operation as an Int. It is also possible to do this using Dimension types with AbstractDimArray:

julia
julia> da5 = rand(X(3), Y(4), Ti(5))
╭────────────────────────────╮
+3×4×5 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 0.573147   0.206406  0.916702  0.481184
+ 0.0760848  0.94412   0.48817   0.758865
+ 0.0992684  0.917457  0.811947  0.0641884
julia
julia> sum(da5; dims=Ti)
╭────────────────────────────╮
+3×4×1 DimArray{Float64, 3}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X, Y, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+ 2.89248  1.86986  2.12435  1.86194
+ 1.29325  2.76668  2.64923  2.70488
+ 1.11475  3.10914  3.02098  2.35189

Dims keywords

Methods where dims, dim types, or Symbols can be used to indicate the array dimension:

  • size, axes, firstindex, lastindex

  • cat, reverse, dropdims

  • reduce, mapreduce

  • sum, prod, maximum, minimum

  • mean, median, extrema, std, var, cor, cov

  • permutedims, adjoint, transpose, Transpose

  • mapslices, eachslice

Performance

Indexing with Dimensions has no runtime cost. Let's benchmark it:

julia
julia> using BenchmarkTools
+
+julia> da4 = ones(X(3), Y(3))
╭──────────────────────────╮
+3×3 DimArray{Float64, 2}
+├──────────────────────────┴─────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
+ 1.0  1.0  1.0
julia
julia> @benchmark $da4[X(1), Y(2)]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns25.527 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.115 ns ±  0.359 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.

the same as accessing the parent array directly:

julia
julia> @benchmark parent($da4)[1, 2]
BenchmarkTools.Trial: 10000 samples with 1000 evaluations.
+ Range (minmax):  3.095 ns18.754 ns GC (min … max): 0.00% … 0.00%
+ Time  (median):     3.106 ns               GC (median):    0.00%
+ Time  (mean ± σ):   3.120 ns ±  0.356 ns GC (mean ± σ):  0.00% ± 0.00%
+
+                            
+
+  3.1 ns         Histogram: frequency by time        3.12 ns <
+
+ Memory estimate: 0 bytes, allocs estimate: 0.
+ + + + \ No newline at end of file diff --git a/previews/PR872/dimensions.html b/previews/PR872/dimensions.html new file mode 100644 index 000000000..941905403 --- /dev/null +++ b/previews/PR872/dimensions.html @@ -0,0 +1,30 @@ + + + + + + Dimensions | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Dimensions

Dimensions are "wrapper types" that can be used to wrap any object to associate it with a named dimension.

X, Y, Z, Ti are predefined as types:

julia
julia> using DimensionalData
+
+julia> X(1)
X 1
julia
julia> X(1), Y(2), Z(3)
(X 1, Y 2, Z 3)

You can also create Dim dimensions with any name:

julia
julia> Dim{:a}(1), Dim{:b}(1)
(a 1, b 1)

The wrapped value can be retrieved with val:

julia
julia> val(X(1))
1

DimensionalData.jl uses Dimensions everywhere:

  • Dimensions are returned from dims to specify the names of the dimensions of an object

  • They can wrap Lookups to associate the lookups with those names

  • To index into these objects, they can wrap indices like Int or a Selector

This symmetry means we can ignore how data is organized, and label and access it by name, letting DD work out the details for us.

Dimensions are defined in the Dimensions submodule, and some Dimension-specific methods can be brought into scope with:

julia
using DimensionalData.Dimensions
+ + + + \ No newline at end of file diff --git a/previews/PR872/diskarrays.html b/previews/PR872/diskarrays.html new file mode 100644 index 000000000..1b32e6474 --- /dev/null +++ b/previews/PR872/diskarrays.html @@ -0,0 +1,28 @@ + + + + + + DiskArrays.jl compatibility | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

DiskArrays.jl compatibility

DiskArrays.jl enables lazy, chunked application of:

  • broadcast

  • reductions

  • iteration

  • generators

  • zip

as well as caching chunks in RAM via DiskArrays.cache(dimarray).

It is rarely used directly, but is present in most disk and cloud based spatial data packages in julia, including: ArchGDAL.jl, NetCDF.jl, Zarr.jl, NCDatasets.jl, GRIBDatasets.jl and CommonDataModel.jl.

The combination of DiskArrays.jl and DimensionalData.jl is Julia's answer to python's xarray. Rasters.jl and YAXArrays.jl are user-facing tools building on this combination.

They have no meaningful direct dependency relationships, but are intentionally designed to integrate via both adherence to Julia's AbstractArray interface, and by coordination during development of both packages.

+ + + + \ No newline at end of file diff --git a/previews/PR872/extending_dd.html b/previews/PR872/extending_dd.html new file mode 100644 index 000000000..1668e4e18 --- /dev/null +++ b/previews/PR872/extending_dd.html @@ -0,0 +1,57 @@ + + + + + + Extending DimensionalData | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Extending DimensionalData

Nearly everything in DimensionalData.jl is designed to be extensible.

  • AbstractDimArray is easily extended to custom array types. Raster or YAXArray are examples from other packages.

  • AbstractDimStack is easily extended to custom mixed array datasets. RasterStack or ArViZ.Dataset are examples.

  • Lookup can have new types added, e.g. to AbstractSampled or AbstractCategorical. Rasters.Projected is a lookup that knows its coordinate reference system, but otherwise behaves as a regular Sampled lookup.

dims, rebuild and format are the key interface methods in most of these cases.

dims

Objects extending DimensionalData.jl that have dimensions must return a Tuple of constructed Dimensions from dims(obj).

Dimension axes

Dimensions returned from dims should hold a Lookup or in some cases just an AbstractArray (like with DimIndices). When attached to multi-dimensional objects, lookups must be the same length as the axis of the array it represents, and eachindex(A, i) and eachindex(dim) must return the same values.

This means that if the array has OffsetArrays.jl axes, the array the dimension wraps must also have OffsetArrays.jl axes.

dims keywords

To any dims keyword argument that usually requires the dimension I, objects should accept any Dimension, Type{<:Dimension}, Symbol, Val{:Symbol}, Val{<:Type{<:Dimension}} or also regular Integer.

This is easier than it sounds, calling DD.dims(objs, dims) will return the matching dimension and DD.dimnum(obj, dims) will return the matching Int for any of these inputs as long as dims(obj) is implemented.

rebuild

Rebuild methods are used to rebuild immutable objects with new field values, in a way that is more flexible and extensible than just using ConstructionBase.jl reconstruction. Developers can choose to ignore some of the fields passed by rebuild.

The function signature is always one of:

julia
rebuild(obj, args...)
+rebuild(obj; kw...)

rebuild has keyword versions automatically generated for all objects using ConstructionBase.jl.

These will work without further work as long as your object has the fields used by DimensionalData.jl objects. For example, AbstractDimArray will receive these keywords in rebuild: data, dims, refdims, name, metadata.

If your AbstractDimArray does not have all these fields, you must implement rebuild(x::YourDimArray; kw...) manually.

An argument method is also defined with the same arguments as the keyword version. For AbstractDimArray it should only be used for updating data and dims, any more that that is confusing.

For Dimension and Selector the single argument versions are easiest to use, as there is only one argument.

format

When constructing an AbstractDimArray or AbstractDimStack DimensionalData.format must be called on the dims tuple and the parent array:

julia
format(dims, array)

This lets DimensionalData detect the lookup properties, fill in missing fields of a Lookup, pass keywords from Dimension to detected Lookup constructors, and accept a wider range of dimension inputs like tuples of Symbol and Type.

Not calling format in the outer constructors of an AbstractDimArray has undefined behaviour.

Interfaces.jl interface testing

DimensionalData defines explicit, testable Interfaces.jl interfaces: DimArrayInterface and DimStackInterface.

This is the implementation definition for DimArray:

julia
julia> using DimensionalData, Interfaces
+
+julia> @implements DimensionalData.DimArrayInterface{(:refdims,:name,:metadata)} DimArray [rand(X(10), Y(10)), zeros(Z(10))]

See the DimensionalData.DimArrayInterface docs for options. We can test it with:

julia
julia> Interfaces.test(DimensionalData.DimArrayInterface)

+Testing DimArrayInterface is implemented for DimArray
+
+Mandatory components
+dims: (defines a `dims` method [true, true],
+       dims are updated on getindex [true, true])
+refdims_base: `refdims` returns a tuple of Dimension or empty [true, true]
+ndims: number of dims matches dimensions of array [true, true]
+size: length of dims matches dimensions of array [true, true]
+rebuild_parent: rebuild parent from args [true, true]
+rebuild_dims: rebuild paaarnet and dims from args [true, true]
+rebuild_parent_kw: rebuild parent from args [true, true]
+rebuild_dims_kw: rebuild dims from args [true, true]
+rebuild: all rebuild arguments and keywords are accepted [true, true]
+
+Optional components
+refdims: (refdims are updated in args rebuild [true, true],
+          refdims are updated in kw rebuild [true, true],
+          dropped dimensions are added to refdims [true, true])
+name: (rebuild updates name in arg rebuild [true, true],
+       rebuild updates name in kw rebuild [true, true])
+metadata: (rebuild updates metadata in arg rebuild [true, true],
+           rebuild updates metadata in kw rebuild [true, true])
+
+Implementation summary:
+  DimArray correctly implements DimensionalData.DimArrayInterface: true
+true
+ + + + \ No newline at end of file diff --git a/previews/PR872/favicon.ico b/previews/PR872/favicon.ico new file mode 100644 index 000000000..37b0a2d5a Binary files /dev/null and b/previews/PR872/favicon.ico differ diff --git a/previews/PR872/get_info.html b/previews/PR872/get_info.html new file mode 100644 index 000000000..69bfbf46c --- /dev/null +++ b/previews/PR872/get_info.html @@ -0,0 +1,56 @@ + + + + + + Getters | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Getters

DimensionalData.jl defines consistent methods to retrieve information from objects like DimArray, DimStack, Tuples of Dimension, Dimension, and Lookup.

First, we will define an example DimArray.

julia
using DimensionalData
+using DimensionalData.Lookups
+x, y = X(10:-1:1), Y(100.0:10:200.0)
(↓ X 10:-1:1,
+→ Y 100.0:10.0:200.0)
julia
julia> A = rand(x, y)
╭────────────────────────────╮
+10×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  100.0       110.0        120.0190.0       200.0
+ 10      0.616666    0.561953     0.0157247        0.177857    0.856524
+  9      0.660024    0.395523     0.0109523        0.552838    0.0536623
+  8      0.112606    0.548479     0.0545071        0.755722    0.830655
+  7      0.839223    0.0400057    0.702845         0.384116    0.445628
+  6      0.734452    0.65906      0.506965    …    0.654591    0.44097
+  5      0.89757     0.748725     0.00633515       0.178022    0.106904
+  4      0.969026    0.0042232    0.63959          0.423538    0.556096
+  3      0.106472    0.274713     0.589536         0.805743    0.390342
+  2      0.861535    0.167465     0.507581         0.799964    0.292431
+  1      0.245499    0.742732     0.095824    …    0.90203     0.86858

dims retrieves dimensions from any object that has them.

What makes it so useful is that you can filter which dimensions you want, and specify in what order, using any Dimension, Type{Dimension} or Symbol.

julia
julia> dims(A)
(X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points)
julia
julia> dims(A, Y)
Y Sampled{Float64} ForwardOrdered Regular Points
+wrapping: 100.0:10.0:200.0
julia
julia> dims(A, Y())
Y Sampled{Float64} ForwardOrdered Regular Points
+wrapping: 100.0:10.0:200.0
julia
julia> dims(A, :Y)
Y Sampled{Float64} ForwardOrdered Regular Points
+wrapping: 100.0:10.0:200.0
julia
julia> dims(A, (X,))
(X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points)
julia
julia> dims(A, (Y, X))
(Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points,
+X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points)
julia
julia> dims(A, reverse(dims(A)))
(Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points,
+X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points)
julia
julia> dims(A, isregular)
(X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points)

Predicates

These always return true or false. With multiple dimensions, false means !all and true means all.

dims and all other methods listed above can use predicates to filter the returned dimensions.

julia
julia> issampled(A)
true
julia
julia> issampled(dims(A))
true
julia
julia> issampled(A, Y)
true
julia
julia> issampled(lookup(A, Y))
true
julia
julia> dims(A, issampled)
(X Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Y Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points)
julia
julia> otherdims(A, issampled)
()
julia
julia> lookup(A, issampled)
Sampled{Int64} 10:-1:1 ReverseOrdered Regular Points,
+Sampled{Float64} 100.0:10.0:200.0 ForwardOrdered Regular Points
+ + + + \ No newline at end of file diff --git a/previews/PR872/groupby.html b/previews/PR872/groupby.html new file mode 100644 index 000000000..4915de7b0 --- /dev/null +++ b/previews/PR872/groupby.html @@ -0,0 +1,145 @@ + + + + + + Group By | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Group By

DimensionalData.jl provides a groupby function for dimensional grouping. This guide covers:

  • simple grouping with a function

  • grouping with Bins

  • grouping with another existing AbstractDimArray or Dimension

Grouping functions

Let's look at the kind of functions that can be used to group DateTime. Other types will follow the same principles, but are usually simpler.

First, load some packages:

julia
using DimensionalData
+using Dates
+using Statistics
+const DD = DimensionalData

Now create a demo DateTime range

julia
julia> tempo = range(DateTime(2000), step=Hour(1), length=365*24*2)
DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00")

Let's see how some common functions work.

The hour function will transform values to the hour of the day - the integers 0:23

julia
julia> hour.(tempo)
17520-element Vector{Int64}:
+  0
+  1
+  2
+  3
+  4
+  5
+  6
+  7
+  8
+  9
+
+ 15
+ 16
+ 17
+ 18
+ 19
+ 20
+ 21
+ 22
+ 23

Tuple groupings

julia
julia> yearmonth.(tempo)
17520-element Vector{Tuple{Int64, Int64}}:
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+ (2000, 1)
+
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)
+ (2001, 12)

Grouping and reducing

Let's define an array with a time dimension of the times used above:

julia
julia> A = rand(X(1:0.01:2), Ti(tempo))
╭────────────────────────────────╮
+101×17520 DimArray{Float64, 2}
+├────────────────────────────────┴─────────────────────────────────────── dims ┐
+X  Sampled{Float64} 1.0:0.01:2.0 ForwardOrdered Regular Points,
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00") ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    2000-01-01T00:00:00   2000-01-01T01:00:002001-12-30T23:00:00
+ 1.0   0.654537              0.418968                 0.677549
+ 1.01  0.664038              0.674881                 0.578183
+ 1.02  0.00832284            0.475569                 0.454715
+ 1.03  0.639212              0.616635                 0.875994
+ ⋮                                                 ⋱  ⋮
+ 1.96  0.0106725             0.846581                 0.757228
+ 1.97  0.585756              0.485119                 0.299692
+ 1.98  0.471877              0.889153                 0.336768
+ 1.99  0.428951              0.312976              …  0.948798
+ 2.0   0.921012              0.397575                 0.0897302

Group by month, using the month function:

julia
julia> groups = groupby(A, Ti=>month)
╭───────────────────────────────────────────────────╮
+12-element DimGroupByArray{DimArray{Float64,1},1}
+├───────────────────────────────────────────────────┴──────────────────── dims ┐
+Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
+├──────────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+├────────────────────────────────────────────────────────────────── group dims ┤
+X, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+  1  101×1488 DimArray
+  2  101×1368 DimArray
+  3  101×1488 DimArray
+
+ 11  101×1440 DimArray
+ 12  101×1464 DimArray

We can take the mean of each group by broadcasting over them:

julia
julia> mean.(groups)
╭─────────────────────────────────╮
+12-element DimArray{Float64, 1}
+├─────────────────────────────────┴────────────────────────────────────── dims ┐
+Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
+├──────────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>month
+└──────────────────────────────────────────────────────────────────────────────┘
+  1  0.500665
+  2  0.499693
+  3  0.500331
+  4  0.499353
+
+ 10  0.499069
+ 11  0.500155
+ 12  0.500136

Binning

Sometimes we want to further aggregate our groups after running a function, or just bin the raw data directly. We can use the Bins wrapper to do this.

For quick analysis, we can break our groups into N bins.

julia
julia> groupby(A, Ti=>Bins(month, 4))
╭──────────────────────────────────────────────────╮
+4-element DimGroupByArray{DimArray{Float64,1},1}
+├──────────────────────────────────────────────────┴───────────────────── dims ┐
+Ti Sampled{IntervalSets.Interval{:closed, :open, Float64}} [1.0 .. 3.75275 (closed-open), 3.75275 .. 6.5055 (closed-open), 6.5055 .. 9.25825 (closed-open), 9.25825 .. 12.011 (closed-open)] ForwardOrdered Irregular Intervals{Start}
+├──────────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>Bins(month, 4)…
+├────────────────────────────────────────────────────────────────── group dims ┤
+X, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+ 1.0 .. 3.75275 (closed-open)     101×4344 DimArray
+ 3.75275 .. 6.5055 (closed-open)  101×4368 DimArray
+ 6.5055 .. 9.25825 (closed-open)  101×4416 DimArray
+ 9.25825 .. 12.011 (closed-open)  101×4392 DimArray

Doing this requires slightly padding the bin edges, so the lookup of the output is less than ideal.

Select by Dimension

We can also select by Dimensions and any objects with dims methods.

Trivially, grouping by an object's own dimension is similar to eachslice:

julia
julia> groupby(A, dims(A, Ti))
╭──────────────────────────────────────────────────────╮
+17520-element DimGroupByArray{DimArray{Float64,1},1}
+├──────────────────────────────────────────────────────┴───────────────── dims ┐
+Ti Sampled{DateTime} DateTime("2000-01-01T00:00:00"):Hour(1):DateTime("2001-12-30T23:00:00") ForwardOrdered Regular Points
+├──────────────────────────────────────────────────────────────────── metadata ┤
+  Dict{Symbol, Any} with 1 entry:
+  :groupby => :Ti=>[DateTime("2000-01-01T00:00:00"), DateTime("2000-01-01T01:00…
+├────────────────────────────────────────────────────────────────── group dims ┤
+X, Ti
+└──────────────────────────────────────────────────────────────────────────────┘
+ 2000-01-01T00:00:00  101×1 DimArray
+ 2000-01-01T01:00:00  101×1 DimArray
+ 2000-01-01T02:00:00  101×1 DimArray
+
+ 2001-12-30T22:00:00  101×1 DimArray
+ 2001-12-30T23:00:00  101×1 DimArray

TODO: Apply custom function (i.e. normalization) to grouped output.

+ + + + \ No newline at end of file diff --git a/previews/PR872/hashmap.json b/previews/PR872/hashmap.json new file mode 100644 index 000000000..5a77b9d17 --- /dev/null +++ b/previews/PR872/hashmap.json @@ -0,0 +1 @@ +{"api_dimensions.md":"EAHz26Mn","api_lookuparrays.md":"CBN1SYbJ","api_reference.md":"CCH-UrsK","basics.md":"BXnzUzzq","broadcasts.md":"B0LiXm06","cuda.md":"CWnnNa6Y","dimarrays.md":"ls_dvDnS","dimensions.md":"BqC4rEzt","diskarrays.md":"DG_ltL5E","extending_dd.md":"BgVswzro","get_info.md":"CWxMjrPQ","groupby.md":"DT4XbEUc","index.md":"BfKrr5Sg","integrations.md":"BArDZBrD","object_modification.md":"9iFLPWcE","plots.md":"K0bqzHQt","selectors.md":"Cv-qbbZZ","stacks.md":"Cs5P30rl","tables.md":"BVWkIzEo"} diff --git a/previews/PR872/index.html b/previews/PR872/index.html new file mode 100644 index 000000000..dac7afbde --- /dev/null +++ b/previews/PR872/index.html @@ -0,0 +1,28 @@ + + + + + + DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

DimensionalData.jl

Julia datasets with named dimensions

High performance named indexing for Julia

+ + + + \ No newline at end of file diff --git a/previews/PR872/integrations.html b/previews/PR872/integrations.html new file mode 100644 index 000000000..021b0e2a3 --- /dev/null +++ b/previews/PR872/integrations.html @@ -0,0 +1,28 @@ + + + + + + Integrations | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Integrations

Rasters.jl

Rasters.jl extends DimensionalData for geospatial data manipulation, providing file load/save capabilities for a wide range of raster data sources and common GIS tools like polygon rasterization and masking. Raster types are aware of their crs and their missingval (which is often not missing for performance and storage reasons).

Rasters.jl is also the reason DimensionalData.jl exists at all! But it always made sense to separate out spatial indexing from GIS tools and dependencies.

A Raster is a AbstractDimArray, a RasterStack is a AbstractDimStack, and Projected and Mapped are AbstractSampled lookups.

YAXArrays.jl

YAXArrays.jl is another spatial data package aimed more at (very) large datasets. Its functionality is slowly converging with Rasters.jl (both wrapping DiskArrays.jl/DimensionalData.jl) and we work closely with the developers.

YAXArray is a AbstractDimArray and inherits its behaviours.

ClimateBase.jl

ClimateBase.jl Extends DimensionalData.jl with methods for analysis of climate data.

ArviZ.jl

ArviZ.jl Is a Julia package for exploratory analysis of Bayesian models.

An ArviZ.Dataset is an AbstractDimStack!

JuMP.jl

JuMP.jl is a powerful optimization DSL. It defines its own named array types but now accepts any AbstractDimArray too, through a package extension.

CryoGrid.jl

CryoGrid.jl A Julia implementation of the CryoGrid permafrost model.

CryoGridOutput uses DimArray for views into output data.

DynamicGrids.jl

DynamicGrids.jl is a spatial simulation engine, for cellular automata and spatial process models.

All DynamicGrids.jl Outputs are <: AbstractDimArray, and AbstractDimArray are used for auxiliary data to allow temporal synchronisation during simulations. Notably, this all works on GPUs!

AstroImages.jl

AstroImages.jl Provides tools to load and visualise astronomical images. AstroImage is <: AbstractDimArray.

TimeseriesTools.jl

TimeseriesTools.jl Uses DimArray for time-series data.

+ + + + \ No newline at end of file diff --git a/previews/PR872/logo.png b/previews/PR872/logo.png new file mode 100644 index 000000000..fa8f3725a Binary files /dev/null and b/previews/PR872/logo.png differ diff --git a/previews/PR872/logo.svg b/previews/PR872/logo.svg new file mode 100644 index 000000000..47f6888d2 --- /dev/null +++ b/previews/PR872/logo.svg @@ -0,0 +1,18874 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR872/object_modification.html b/previews/PR872/object_modification.html new file mode 100644 index 000000000..0078ae2a9 --- /dev/null +++ b/previews/PR872/object_modification.html @@ -0,0 +1,81 @@ + + + + + + Modifying Objects | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Modifying Objects

DimensionalData.jl objects are all struct rather than mutable struct. The only things you can modify in-place are the values of the contained arrays or metadata Dicts if they exist.

Everything else must be rebuilt and assigned to a variable.

modify

Modify the inner arrays of a AbstractDimArray or AbstractDimStack, with modify. This can be useful to e.g. replace all arrays with CuArray moving the data to the GPU, collect all inner arrays to Array without losing the outer DimArray wrappers, and similar things.

julia
julia> using DimensionalData
+
+julia> A = falses(X(3), Y(5))
╭───────────────────────╮
+3×5 DimArray{Bool, 2}
+├───────────────────────┴────────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0  0  0  0  0
+ 0  0  0  0  0
+ 0  0  0  0  0
julia
julia> parent(A)
3×5 BitMatrix:
+ 0  0  0  0  0
+ 0  0  0  0  0
+ 0  0  0  0  0
julia
julia> A_mod = modify(Array, A)
╭───────────────────────╮
+3×5 DimArray{Bool, 2}
+├───────────────────────┴────────────────────────────────── dims ┐
+X, Y
+└────────────────────────────────────────────────────────────────┘
+ 0  0  0  0  0
+ 0  0  0  0  0
+ 0  0  0  0  0
julia
julia> parent(A_mod)
3×5 Matrix{Bool}:
+ 0  0  0  0  0
+ 0  0  0  0  0
+ 0  0  0  0  0

reorder

reorder is like reverse but declarative, rather than imperative: we tell it how we want the object to be, not what to do.

Reorder a specific dimension

julia
julia> using DimensionalData.Lookups;
+
+julia> A = rand(X(1.0:3.0), Y('a':'n'));
+
+julia> reorder(A, X => ReverseOrdered())
╭───────────────────────────╮
+3×14 DimArray{Float64, 2}
+├───────────────────────────┴──────────────────────────────────────────── dims ┐
+X Sampled{Float64} 3.0:-1.0:1.0 ReverseOrdered Regular Points,
+Y Categorical{Char} 'a':1:'n' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   'a'       'b'        'c''l'       'm'       'n'
+ 3.0  0.884218  0.686915   0.208271     0.744517  0.487197  0.86789
+ 2.0  0.903705  0.0915867  0.247032     0.824556  0.298728  0.933212
+ 1.0  0.159092  0.193627   0.317813     0.474755  0.474052  0.364844

mergedims

mergedims is like reshape, but simultaneously merges multiple dimensions into a single combined dimension with a lookup holding Tuples of the values of both dimensions.

rebuild

rebuild is one of the core functions of DimensionalData.jl. Basically everything uses it somewhere. And you can too, with a few caveats.

Warning

rebuild assumes you know what you are doing. You can quite easily set values to things that don't make sense. The constructor may check a few things, like the number of dimensions matches the axes of the array. But not much else.

julia
julia> A1 = rebuild(A; name=:my_array)
╭────────────────────────────────────╮
+3×14 DimArray{Float64, 2} my_array
+├────────────────────────────────────┴─────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:3.0 ForwardOrdered Regular Points,
+Y Categorical{Char} 'a':1:'n' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   'a'       'b'        'c''l'       'm'       'n'
+ 1.0  0.159092  0.193627   0.317813     0.474755  0.474052  0.364844
+ 2.0  0.903705  0.0915867  0.247032     0.824556  0.298728  0.933212
+ 3.0  0.884218  0.686915   0.208271     0.744517  0.487197  0.86789
julia
julia> name(A1)
:my_array

The most common use internally is the arg version on Dimension. This is very useful in dimension-based algorithms as a way to transform a dimension wrapper from one object to another:

julia
julia> d = X(1)
X 1
julia
julia> rebuild(d, 1:10)
X 1:10

rebuild applications are listed here. AbstractDimArray and AbstractDimStack always accept these keywords or arguments, but those in [ ] brackets may be thrown away if not needed. Keywords in ( ) will error if used where they are not accepted.

TypeKeywordsArguments
AbstractDimArraydata, dims, [refdims, name, metadata]as with kw, in order
AbstractDimStackdata, dims, [refdims], layerdims, [metadata, layermetadata]as with kw, in order
Dimensionvalval
Selectorval, (atol)val
Lookupdata, (order, span, sampling, metadata)keywords only

rebuild magic

rebuild with keywords will even work on objects DD doesn't know about!

julia
julia> nt = (a = 1, b = 2)
(a = 1, b = 2)
julia
julia> rebuild(nt, a = 99)
(a = 99, b = 2)

Really, the keyword version is just ConstructionBase.setproperties underneath, but wrapped so objects can customise the DD interface without changing the more generic ConstructionBase.jl behaviours and breaking e.g. Accessors.jl in the process.

set

set gives us a way to set the values of the immutable objects in DD, like Dimension and LookupArray. Unlike rebuild it tries its best to do the right thing. You don't have to specify what field you want to set. Just pass in the object you want to be part of the lookup. Usually, there is no possible ambiguity.

set is still improving. Sometimes it may not do the right thing. If you think this is the case, create a GitHub issue.

julia
julia> set(A, Y => Z)
╭───────────────────────────╮
+3×14 DimArray{Float64, 2}
+├───────────────────────────┴──────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:3.0 ForwardOrdered Regular Points,
+Z Categorical{Char} 'a':1:'n' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   'a'       'b'        'c''l'       'm'       'n'
+ 1.0  0.159092  0.193627   0.317813     0.474755  0.474052  0.364844
+ 2.0  0.903705  0.0915867  0.247032     0.824556  0.298728  0.933212
+ 3.0  0.884218  0.686915   0.208271     0.744517  0.487197  0.86789
+ + + + \ No newline at end of file diff --git a/previews/PR872/plots.html b/previews/PR872/plots.html new file mode 100644 index 000000000..0940928a9 --- /dev/null +++ b/previews/PR872/plots.html @@ -0,0 +1,39 @@ + + + + + + Plots.jl | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Plots.jl

Plots.jl and Makie.jl functions mostly work out of the box on AbstractDimArray, although not with the same results - they choose to follow each packages default behaviour as much as possible.

This will plot a line plot with 'a', 'b' and 'c' in the legend, and values 1-10 on the labelled X axis:

Plots.jl support is deprecated, as development is moving to Makie.jl

Makie.jl

Makie.jl functions also mostly work with AbstractDimArray and will permute and reorder axes into the right places, especially if X/Y/Z/Ti dimensions are used.

In Makie a DimMatrix will plot as a heatmap by default, but it will have labels and axes in the right places:

julia
using DimensionalData, CairoMakie
+
+A = rand(X(10:10:100), Y([:a, :b, :c]))
+Makie.plot(A; colormap=:inferno)

Other plots also work, here DD ignores the axis order and instead favours the categorical variable for the X axis:

julia
Makie.rainclouds(A)

AlgebraOfGraphics.jl

AlgebraOfGraphics.jl is a high-level plotting library built on top of Makie.jl that provides a declarative algebra for creating complex visualizations, similar to ggplot2's "grammar of graphics" in R. It allows you to construct plots using algebraic operations like * and +, making it easy to create sophisticated graphics with minimal code.

Any DimensionalArray is also a Tables.jl table, so it can be used with AlgebraOfGraphics.jl directly. You can indicate columns in mapping with Symbols directly (like :X or :Y), or you can use the Dim type directly (like X or Y)!

Note

If your dimensional array is not named, then you can access the data as the :unnamed column. Otherwise, the data is accessible by its name.

Let's start with a simple example, and plot a 2-D dimarray as a scatter plot, colored by its value.

julia
using DimensionalData, AlgebraOfGraphics, CairoMakie
+
+A = DimArray(rand(10, 10), (X(1:10), Y(1:10)), name = :data)
+
+data(A) * mapping(X, Y; color = :data) * visual(Scatter) |> draw

Don't restrict yourself to standard visualizations! You can use all of AlgebraOfGraphics' features.

Let's plot each X-slice, faceted in Y:

julia
data(A) * mapping(X, :data; layout = Y => nonnumeric) * visual(Lines) |> draw

This approach is also applicable to DimStacks, since they also convert to DimTables. Let's see an example here.

We'll construct a DimStack with the :data layer being our DimArray A, and an X-only variable :color that we'll use to color the line.

julia
color_vec = DimVector(1:10, X)
+ds = DimStack((; data = A, color = color_vec))
+
+data(ds) * mapping(X, :data; color = :color, layout = Y => nonnumeric) * visual(Lines) |> draw

Note

If you wish to subset your DimArray, you can't pass selectors like X(1 .. 2) to AlgebraOfGraphics. Instead, subset the DimArray you pass to data - this is a very cheap operation.

Test series plots

default colormap

julia
B = rand(X(10:10:100), Y([:a, :b, :c, :d, :e, :f, :g, :h, :i, :j]))
+Makie.series(B)

A different colormap

The colormap is controlled by the color argument, which can take as an input a named colormap, i.e. :plasma or a list of colours.

julia
Makie.series(B; color=:plasma)

julia
Makie.series(A; color=[:red, :blue, :orange])

with markers

julia
Makie.series(A; color=[:red, :blue, :orange], markersize=15)

A lot more is planned for Makie.jl plots in future!

+ + + + \ No newline at end of file diff --git a/previews/PR872/selectors.html b/previews/PR872/selectors.html new file mode 100644 index 000000000..abf027b76 --- /dev/null +++ b/previews/PR872/selectors.html @@ -0,0 +1,146 @@ + + + + + + Selectors | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Selectors

In addition to choosing dimensions by name, we can also select values within them.

First, we can create a DimArray with lookup values as well as dimension names:

julia
using DimensionalData
julia
julia> A = rand(X(1.0:0.2:2.0), Y([:a, :b, :c]))
╭──────────────────────────╮
+6×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a        :b        :c
+ 1.0  0.27736   0.802776  0.621603
+ 1.2  0.444305  0.156538  0.768488
+ 1.4  0.184738  0.226064  0.869012
+ 1.6  0.772277  0.764895  0.101231
+ 1.8  0.711133  0.86273   0.239921
+ 2.0  0.883222  0.748041  0.511313

Then we can use the Selector to select values from the array:

The At(x) selector gets the index or indices exactly matching the passed in value(s).

julia
julia> A[X=At(1.2), Y=At(:c)]
0.7684883626668314

Or within a tolerance:

julia
julia> A[X=At(0.99:0.201:1.5; atol=0.05)]
╭──────────────────────────╮
+3×3 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.2, 1.4] ForwardOrdered Irregular Points,
+Y Categorical{Symbol} [:a, :b, :c] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a        :b        :c
+ 1.0  0.27736   0.802776  0.621603
+ 1.2  0.444305  0.156538  0.768488
+ 1.4  0.184738  0.226064  0.869012

At can also take vectors and ranges:

julia
julia> A[X=At(1.2:0.2:1.5), Y=At([:a, :c])]
╭──────────────────────────╮
+2×2 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.2, 1.4] ForwardOrdered Irregular Points,
+Y Categorical{Symbol} [:a, :c] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a        :c
+ 1.2  0.444305  0.768488
+ 1.4  0.184738  0.869012

Lookups

Selectors find indices in the Lookup of each dimension. Lookups wrap other AbstractArray (often AbstractRange) but add additional traits to facilitate fast lookups or specifying point or interval behaviour. These are usually detected automatically.

julia
using DimensionalData.Lookups

The Sampled(x) lookup holds values sampled along an axis. They may be Ordered/Unordered, Intervals/Points, and Regular/Irregular.

Most of these properties are usually detected automatically, but here we create a Sampled lookup manually:

julia
julia> l = Sampled(10.0:10.0:100.0; order=ForwardOrdered(), span=Regular(10.0), sampling=Intervals(Start()))
Sampled{Float64} ForwardOrdered Regular Intervals{Start}
+wrapping: 10.0:10.0:100.0

To specify Irregular Intervals, we should include the outer bounds of the lookup, as we can't determine them from the vector.

julia
julia> l = Sampled([13, 8, 5, 3, 2, 1]; order=ForwardOrdered(), span=Irregular(1, 21), sampling=Intervals(Start()))
Sampled{Int64} ForwardOrdered Irregular Intervals{Start}
+wrapping: 6-element Vector{Int64}:
+ 13
+  8
+  5
+  3
+  2
+  1

Lookup autodetection

When we define an array, extra properties are detected:

julia
julia> A = DimArray(rand(7, 5), (X(10:10:70), Y([:a, :b, :c, :d, :e])))
╭──────────────────────────╮
+7×5 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Int64} 10:10:70 ForwardOrdered Regular Points,
+Y Categorical{Symbol} [:a, :b, :c, :d, :e] ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+   :a         :b        :c        :d        :e
+ 10    0.71372    0.301659  0.229418  0.442111  0.680987
+ 20    0.905616   0.307762  0.228248  0.882656  0.396585
+ 30    0.0928922  0.651538  0.152068  0.683795  0.687921
+ 40    0.441181   0.314906  0.650675  0.570603  0.647225
+ 50    0.621662   0.196478  0.97293   0.929034  0.855976
+ 60    0.72217    0.791844  0.883323  0.21921   0.0575993
+ 70    0.896257   0.758149  0.679453  0.506221  0.771237

This array has a Sampled lookup with ForwardOrdered Regular Points for X, and a Categorical ForwardOrdered for Y.

Most lookup types and properties are detected automatically like this from the arrays and ranges used.

  • Arrays and ranges of String, Symbol, and Char are set to Categorical lookup.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered
  • Arrays and ranges of Number, DateTime, and other things are set to Sampled lookups.

    • order is detected as Unordered, ForwardOrdered, or ReverseOrdered.

    • sampling is set to Points() unless the values are IntervalSets.Interval, then Intervals(Center()) is used.

    • span is detected as Regular(step(range)) for AbstractRange and Irregular(nothing, nothing) for other AbstractArray, where nothing, nothing are the unknown outer bounds of the lookup. They are not needed for Points as the outer values are the outer bounds. But they can be specified manually for Intervals

    • Empty dimensions or dimension types are assigned NoLookup() ranges that can't be used with selectors as they hold no values.

DimSelector

We can also index with arrays of selectors DimSelectors. These are like CartesianIndices or DimIndices, but holding the Selectors At, Near, or Contains.

julia
julia> A = rand(X(1.0:0.2:2.0), Y(10:2:20))
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.2:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 10:2:20 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12          14          16          18         20
+ 1.0   0.0775482   0.263531    0.361536    0.508614    0.89559    0.564657
+ 1.2   0.838572    0.388768    0.44818     0.0300922   0.595409   0.952489
+ 1.4   0.166221    0.0689895   0.499307    0.228081    0.473944   0.747695
+ 1.6   0.11787     0.143478    0.0831822   0.528009    0.631878   0.993001
+ 1.8   0.0905873   0.909826    0.557418    0.229792    0.29205    0.699118
+ 2.0   0.495624    0.810377    0.120845    0.574678    0.371583   0.460775

We can define another array with partly matching indices

julia
julia> B = rand(X(1.0:0.04:2.0), Y(20:-1:10))
╭────────────────────────────╮
+26×11 DimArray{Float64, 2}
+├────────────────────────────┴─────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.04:2.0 ForwardOrdered Regular Points,
+Y Sampled{Int64} 20:-1:10 ReverseOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+   20         1912          11          10
+ 1.0    0.751498   0.988013        0.966133    0.465112    0.227865
+ 1.04   0.241791   0.34589         0.0773793   0.728852    0.462859
+ 1.08   0.412631   0.0143204       0.454134    0.0417586   0.286
+ 1.12   0.300304   0.660657        0.712342    0.806495    0.727464
+ ⋮                             ⋱               ⋮
+ 1.84   0.752331   0.491911        0.221313    0.72454     0.00869054
+ 1.88   0.296393   0.00428189      0.951789    0.142406    0.331422
+ 1.92   0.930699   0.777408        0.0661958   0.0737984   0.539197
+ 1.96   0.744107   0.360032    …   0.0699673   0.264001    0.27206
+ 2.0    0.635373   0.533041        0.574526    0.531012    0.503183

And we can simply select values from B with selectors from A:

julia
julia> B[DimSelectors(A)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.2, …, 1.8, 2.0] ForwardOrdered Irregular Points,
+Y Sampled{Int64} [10, 12, …, 18, 20] ReverseOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  10          12         14          16         18         20
+ 1.0   0.227865    0.966133   0.40169     0.990114   0.358535   0.751498
+ 1.2   0.235356    0.675459   0.426312    0.768719   0.569347   0.399781
+ 1.4   0.508938    0.166186   0.0811277   0.342499   0.819291   0.998484
+ 1.6   0.573391    0.740107   0.817199    0.690159   0.527254   0.634257
+ 1.8   0.0255364   0.895115   0.519705    0.626382   0.171961   0.6063
+ 2.0   0.503183    0.574526   0.98981     0.450629   0.545522   0.635373

If the lookups aren't aligned, we can use Near instead of At, which is like doing a nearest neighbor interpolation:

julia
julia> C = rand(X(1.0:0.007:2.0), Y(10.0:0.9:30))
╭─────────────────────────────╮
+143×23 DimArray{Float64, 2}
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:0.007:1.994 ForwardOrdered Regular Points,
+Y Sampled{Float64} 10.0:0.9:29.8 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       10.928.0         28.9        29.8
+ 1.0     0.341785   0.946655       0.954153     0.0821229   0.828315
+ 1.007   0.275784   0.22401        0.199364     0.485952    0.193179
+ 1.014   0.659836   0.832345       0.672556     0.0760101   0.950007
+ 1.021   0.168617   0.890377       0.258764     0.195897    0.747615
+ ⋮                             ⋱
+ 1.966   0.426134   0.713457       0.693866     0.899783    0.166822
+ 1.973   0.601787   0.904115   …   0.0670244    0.42964     0.639039
+ 1.98    0.902689   0.231483       0.18906      0.670627    0.67989
+ 1.987   0.454047   0.92977        0.493784     0.998661    0.276742
+ 1.994   0.846736   0.0923954      0.00258281   0.273104    0.562491
julia
julia> C[DimSelectors(A; selectors=Near)]
╭──────────────────────────╮
+6×6 DimArray{Float64, 2}
+├──────────────────────────┴───────────────────────────────────────────── dims ┐
+X Sampled{Float64} [1.0, 1.203, …, 1.798, 1.994] ForwardOrdered Irregular Points,
+Y Sampled{Float64} [10.0, 11.8, …, 18.1, 19.9] ForwardOrdered Irregular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+    10.0       11.8        13.6        16.3       18.1        19.9
+ 1.0     0.341785   0.0506805   0.621422    0.775495   0.198058    0.168554
+ 1.203   0.333095   0.953651    0.943783    0.789816   0.215448    0.106973
+ 1.399   0.641266   0.694096    0.0724261   0.603258   0.994395    0.570396
+ 1.602   0.827349   0.662227    0.682734    0.432028   0.707314    0.0542529
+ 1.798   0.192274   0.243368    0.53407     0.513909   0.0154473   0.450775
+ 1.994   0.846736   0.573469    0.0410007   0.513088   0.221908    0.0135194
+ + + + \ No newline at end of file diff --git a/previews/PR872/siteinfo.js b/previews/PR872/siteinfo.js new file mode 100644 index 000000000..cc60136a0 --- /dev/null +++ b/previews/PR872/siteinfo.js @@ -0,0 +1 @@ +var DOCUMENTER_CURRENT_VERSION = "previews/PR872"; diff --git a/previews/PR872/stacks.html b/previews/PR872/stacks.html new file mode 100644 index 000000000..2b99fed25 --- /dev/null +++ b/previews/PR872/stacks.html @@ -0,0 +1,97 @@ + + + + + + DimStacks | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

DimStacks

An AbstractDimStack represents a collection of AbstractDimArray layers that share some or all dimensions. For any two layers, a dimension of the same name must have the identical lookup - in fact, only one is stored for all layers to enforce this consistency.

julia
julia> using DimensionalData
+
+julia> x, y = X(1.0:10.0), Y(5.0:10.0)
(X 1.0:1.0:10.0,
+Y 5.0:1.0:10.0)
julia
julia> st = DimStack((a=rand(x, y), b=rand(x, y), c=rand(y), d=rand(x)))
╭───────────────╮
+10×6 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points,
+Y Sampled{Float64} 5.0:1.0:10.0 ForwardOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: X, Y size: 10×6
+  :b eltype: Float64 dims: X, Y size: 10×6
+  :c eltype: Float64 dims: Y size: 6
+  :d eltype: Float64 dims: X size: 10
+└──────────────────────────────────────────────────────────────────────────────┘

The behavior of a DimStack is at times like a NamedTuple of DimArray and, at other times, an AbstractArray of NamedTuple.

NamedTuple-like indexing

Layers can be accessed with .name or [:name]

julia
julia> st.a
╭─────────────────────────────╮
+10×6 DimArray{Float64, 2} a
+├─────────────────────────────┴────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points,
+Y Sampled{Float64} 5.0:1.0:10.0 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  5.0       6.0        7.0        8.0       9.0         10.0
+  1.0  0.20259   0.0328886  0.93358    0.515445  0.00387281   0.947461
+  2.0  0.717768  0.072176   0.474535   0.778122  0.603823     0.80023
+  3.0  0.651877  0.854239   0.735973   0.662632  0.203451     0.537046
+  4.0  0.111155  0.87656    0.0963009  0.97164   0.11311      0.781497
+  5.0  0.386306  0.668226   0.817575   0.506181  0.775634     0.440884
+  6.0  0.348826  0.691687   0.214157   0.76448   0.0852624    0.52036
+  7.0  0.520184  0.0170682  0.389215   0.269905  0.204084     0.705701
+  8.0  0.451525  0.345667   0.602631   0.793532  0.842029     0.351735
+  9.0  0.103636  0.780424   0.0171909  0.749553  0.187655     0.669192
+ 10.0  0.38291   0.130252   0.369225   0.518483  0.488136     0.714084
julia
julia> st[:c]
╭──────────────────────────────────╮
+6-element DimArray{Float64, 1} c
+├──────────────────────────────────┴───────────────────────────────────── dims ┐
+Y Sampled{Float64} 5.0:1.0:10.0 ForwardOrdered Regular Points
+└──────────────────────────────────────────────────────────────────────────────┘
+  5.0  0.191224
+  6.0  0.943694
+  7.0  0.177155
+  8.0  0.0406084
+  9.0  0.01576
+ 10.0  0.104261

Array-like indexing

Indexing with a scalar returns a NamedTuple of values, one for each layer:

julia
julia> st[X=1, Y=4]
(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)

Reducing functions

Base functions like mean, maximum, reverse are applied to all layers of the stack.

julia
using Statistics
julia
julia> maximum(st)
(a = 0.97164033242648, b = 0.9982064541308482, c = 0.9436941638102098, d = 0.8632634208267141)
julia
julia> maximum(st; dims=Y)
╭───────────────╮
+10×1 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points,
+Y Sampled{Float64} 7.5:6.0:7.5 ForwardOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: X, Y size: 10×1
+  :b eltype: Float64 dims: X, Y size: 10×1
+  :c eltype: Float64 dims: Y size: 1
+  :d eltype: Float64 dims: X size: 10
+└──────────────────────────────────────────────────────────────────────────────┘

broadcast_dims broadcasts functions over any mix of AbstractDimStack and AbstractDimArray returning a new AbstractDimStack with layers the size of the largest layer in the broadcast. This will work even if dimension permutation does not match in the objects.

Only matrix layers can be rotated

julia
julia> rotl90(st[(:a, :b)])
╭───────────────╮
+6×10 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+Y Sampled{Float64} 10.0:-1.0:5.0 ReverseOrdered Regular Points,
+X Sampled{Float64} 1.0:1.0:10.0 ForwardOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: Y, X size: 6×10
+  :b eltype: Float64 dims: Y, X size: 6×10
+└──────────────────────────────────────────────────────────────────────────────┘
julia
julia> rotl90(st[(:a, :b)], 2)
╭───────────────╮
+10×6 DimStack
+├───────────────┴──────────────────────────────────────────────────────── dims ┐
+X Sampled{Float64} 10.0:-1.0:1.0 ReverseOrdered Regular Points,
+Y Sampled{Float64} 10.0:-1.0:5.0 ReverseOrdered Regular Points
+├────────────────────────────────────────────────────────────────────── layers ┤
+  :a eltype: Float64 dims: X, Y size: 10×6
+  :b eltype: Float64 dims: X, Y size: 10×6
+└──────────────────────────────────────────────────────────────────────────────┘

Performance

Indexing a stack is fast - indexing a single value and returning a NamedTuple from all layers is usually measured in nanoseconds, and no slower than manually indexing into each parent array directly.

There are some compilation overheads to this though, and stacks with very many layers can take a long time to compile.

julia
julia> using BenchmarkTools
+
+julia> @btime $st[X=1, Y=4]
  4.038 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
julia
julia> @btime $st[1, 4]
  4.047 ns (0 allocations: 0 bytes)
+(a = 0.5154448003579335, b = 0.7410056618197303, c = 0.04060837507113502, d = 0.43235163202114113)
+ + + + \ No newline at end of file diff --git a/previews/PR872/tables.html b/previews/PR872/tables.html new file mode 100644 index 000000000..4b58ff186 --- /dev/null +++ b/previews/PR872/tables.html @@ -0,0 +1,91 @@ + + + + + + Tables and DataFrames | DimensionalData.jl + + + + + + + + + + + + + + + + + +
Skip to content

Tables and DataFrames

Tables.jl provides an ecosystem-wide interface to tabular data in Julia, ensuring interoperability with DataFrames.jl, CSV.jl, and hundreds of other packages that implement the standard.

DimensionalData.jl implements the Tables.jl interface for AbstractDimArray and AbstractDimStack. DimStack layers are unrolled so they are all the same size, and dimensions loop to match the length of the largest layer.

Columns are given the name of the array or stack layer, and the result of DD.name(dimension) for Dimension columns.

Looping of dimensions and stack layers is done lazily, and does not allocate unless collected.

Example

julia
using DimensionalData
+using Dates
+using DataFrames

Define some dimensions:

julia
julia> x, y, c = X(1:10), Y(1:10), Dim{:category}('a':'z')
(X        1:10,
+Y        1:10,
+category 'a':1:'z')
julia
julia> A = rand(x, y, c; name=:data)
╭────────────────────────────────────╮
+10×10×26 DimArray{Float64, 3} data
+├────────────────────────────────────┴─────────────────────────────────── dims ┐
+X        Sampled{Int64} 1:10 ForwardOrdered Regular Points,
+Y        Sampled{Int64} 1:10 ForwardOrdered Regular Points,
+category Categorical{Char} 'a':1:'z' ForwardOrdered
+└──────────────────────────────────────────────────────────────────────────────┘
+[:, :, 1]
+  1         2         38         9         10
+  1    0.599241  0.518938  0.341133     0.486559  0.162516   0.934189
+  2    0.192192  0.336376  0.636476     0.840593  0.687569   0.294486
+  3    0.607291  0.963657  0.353968     0.120955  0.434286   0.887294
+  4    0.921958  0.128827  0.517175     0.101305  0.743407   0.0120967
+  ⋮                                  ⋱                       ⋮
+  7    0.194849  0.975511  0.612828     0.888721  0.890574   0.436622
+  8    0.364097  0.163103  0.142055     0.049689  0.259847   0.570725
+  9    0.394448  0.755939  0.54624      0.156388  0.210664   0.966517
+ 10    0.828604  0.359421  0.51621   …  0.828161  0.107233   0.74172

Converting to DataFrame

Arrays will have columns for each dimension, and only one data column

julia
julia> DataFrame(A)
2600×4 DataFrame
+  Row │ X      Y      category  data
+ Int64  Int64  Char      Float64
+──────┼───────────────────────────────────
+    1 │     1      1  a         0.599241
+    2 │     2      1  a         0.192192
+    3 │     3      1  a         0.607291
+    4 │     4      1  a         0.921958
+    5 │     5      1  a         0.449491
+    6 │     6      1  a         0.581131
+    7 │     7      1  a         0.194849
+    8 │     8      1  a         0.364097
+  ⋮   │   ⋮      ⋮       ⋮          ⋮
+ 2594 │     4     10  z         0.852872
+ 2595 │     5     10  z         0.0958843
+ 2596 │     6     10  z         0.315302
+ 2597 │     7     10  z         0.236866
+ 2598 │     8     10  z         0.894053
+ 2599 │     9     10  z         0.350024
+ 2600 │    10     10  z         0.417756
+                         2585 rows omitted

Converting to CSV

We can also write arrays and stacks directly to CSV.jl, or any other data type supporting the Tables.jl interface.

julia
using CSV
+CSV.write("dimstack.csv", st)
+readlines("dimstack.csv")
2601-element Vector{String}:
+ "X,Y,category,data1,data2"
+ "1,1,a,0.55560637324799,0.845200516911609"
+ "2,1,a,0.10276733254788795,0.9104238640380062"
+ "3,1,a,0.22237128922242078,0.8268020755919178"
+ "4,1,a,0.5501481631111826,0.9447511416331498"
+ "5,1,a,0.09300753748828394,0.15945803739833375"
+ "6,1,a,0.48952511607945026,0.6146564273146751"
+ "7,1,a,0.7938317326707394,0.9770663775826343"
+ "8,1,a,0.0019198597596568057,0.798655984630017"
+ "9,1,a,0.44833963865079907,0.40268027828179853"
+
+ "2,10,z,0.9675326879984427,0.41940525122635797"
+ "3,10,z,0.5099922507050859,0.07986058669268159"
+ "4,10,z,0.3053673139967894,0.4496996354823414"
+ "5,10,z,0.8146121812750928,0.9452913850518949"
+ "6,10,z,0.38167574879167476,0.24524306337289326"
+ "7,10,z,0.17977958441149666,0.1985699519321249"
+ "8,10,z,0.7044663405368152,0.694278906020718"
+ "9,10,z,0.5697400488168892,0.20636222545147498"
+ "10,10,z,0.8560905731682101,0.8428656510212863"
+ + + + \ No newline at end of file diff --git a/previews/PR872/vp-icons.css b/previews/PR872/vp-icons.css new file mode 100644 index 000000000..ddc5bd8ed --- /dev/null +++ b/previews/PR872/vp-icons.css @@ -0,0 +1 @@ +.vpi-social-github{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")} \ No newline at end of file