You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package for the Julia language provides an array type (the `AxisArray`) that knows about its dimension names and axis values.
6
-
This allows for indexing with the axis name without incurring any runtime overhead.
7
-
AxisArrays can also be indexed by the values of their axes, allowing column names or interval selections.
6
+
This allows for indexing by name without incurring any runtime overhead.
8
7
This permits one to implement algorithms that are oblivious to the storage order of the underlying arrays.
8
+
AxisArrays can also be indexed by the values along their axes, allowing column names or interval selections.
9
+
9
10
In contrast to similar approaches in [Images.jl](https://github.com/timholy/Images.jl) and [NamedArrays.jl](https://github.com/davidavdav/NamedArrays), this allows for type-stable selection of dimensions and compile-time axis lookup. It is also better suited for regularly sampled axes, like samples over time.
10
11
11
12
Collaboration is welcome! This is still a work-in-progress. See [the roadmap](https://github.com/JuliaArrays/AxisArrays.jl/issues/7) for the project's current direction.
12
13
13
-
### Notice regarding `axes`
14
+
### Note about `Axis{}` and keywords
15
+
16
+
An `AxisArray` stores an object of type `Axis{:name}` for each dimension,
17
+
containing both the name (a `Symbol`) and the "axis values" (an `AbstractVector`).
18
+
These types are what made compile-time lookup possible.
19
+
Instead of providing them explicitly, it is now possible to use keyword arguments
20
+
for both construction and indexing:
21
+
22
+
```julia
23
+
V =AxisArray(rand(10); row='a':'j') # AxisArray(rand(10), Axis{:row}('a':'j'))
0 commit comments