Does this work for you?
function ind2subv(shape, indices)
CI = CartesianIndices(shape)
return getindex.(Ref(CI), indices)
end
Does this work for you?
function ind2subv(shape, indices)
CI = CartesianIndices(shape)
return getindex.(Ref(CI), indices)
end