multiarray 0.25.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/multiarray.rb +3 -3
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/packagetask'
6
6
  require 'rbconfig'
7
7
 
8
8
  PKG_NAME = 'multiarray'
9
- PKG_VERSION = '0.25.0'
9
+ PKG_VERSION = '0.25.1'
10
10
  RB_FILES = FileList[ 'lib/**/*.rb' ]
11
11
  TC_FILES = FileList[ 'test/tc_*.rb' ]
12
12
  TS_FILES = FileList[ 'test/ts_*.rb' ]
@@ -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 = (sub_arg.size ... lut.dimension).collect do |i|
915
- lazy(*sub_arg.first.shape) { |*j| j[i - lut.dimension + sub_arg.first.dimension] }
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(*(sub_arg + id))]
917
+ sub_arg + [lut.warp(*(id + sub_arg))]
918
918
  end
919
919
  else
920
920
  []
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: multiarray
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.25.0
5
+ version: 0.25.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Wedekind