Skip to content

Commit

Permalink
Update examples of otherdims
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti authored Aug 29, 2020
1 parent 10c4550 commit 030b4a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ julia> using DimensionalData
julia> A = DimArray(ones(10, 10, 10), (X, Y, Z));
julia> otherdims(A, X)
(Y: Base.OneTo(10) (NoIndex), Z: Base.OneTo(10) (NoIndex))
julia> otherdims(A, (Y, Z))
(X: Base.OneTo(10) (NoIndex),)
julia> otherdims(A, Ti)
(X: Base.OneTo(10) (NoIndex), Y: Base.OneTo(10) (NoIndex), Z: Base.OneTo(10) (NoIndex))
```
"""
@inline otherdims(A::AbstractArray, lookup) = otherdims(dims(A), lookup)
Expand Down

0 comments on commit 030b4a6

Please sign in to comment.