Skip to content

Commit

Permalink
another missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Oct 2, 2023
1 parent d469d4f commit 9588904
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/methods/burning/array_init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function _prepare_for_burning(B, locus=Center())
return setdims(B1, start_dims)
end

# Convert to Array if its not one already
_lookup_as_array(d::Dimension) = parent(lookup(d)) isa Array ? d : modify(Array, d)

function _forward_ordered(B)
reduce(dims(B); init=B) do A, d
if DD.order(d) isa ReverseOrdered
Expand Down

0 comments on commit 9588904

Please sign in to comment.