multiarray 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/multiarray.rb +3 -3
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/multiarray.rb
CHANGED
@@ -911,10 +911,10 @@ module Hornetseye
|
|
911
911
|
elsif sub_arg.first.is_a? Integer
|
912
912
|
sub_arg + [lut[*sub_arg]]
|
913
913
|
else
|
914
|
-
id = (
|
915
|
-
lazy(*sub_arg.first.shape) { |*j| j[i
|
914
|
+
id = (0 ... sub_arg.first.dimension).collect do |i|
|
915
|
+
lazy(*sub_arg.first.shape) { |*j| j[i] }
|
916
916
|
end
|
917
|
-
sub_arg + [lut.warp(*(
|
917
|
+
sub_arg + [lut.warp(*(id + sub_arg))]
|
918
918
|
end
|
919
919
|
else
|
920
920
|
[]
|