diff --git a/lib/nmatrix/jruby/slice.rb b/lib/nmatrix/jruby/slice.rb index 90cd29dc..cdf53e2a 100644 --- a/lib/nmatrix/jruby/slice.rb +++ b/lib/nmatrix/jruby/slice.rb @@ -177,7 +177,8 @@ def slice_copy(src, dest, lengths, pdest, psrc, n) dest[:elements] end - def dense_storage_coords(s, slice_pos, coords_out, stride, offset) # array, int, array + # array, int, array + def dense_storage_coords(s, slice_pos, coords_out, stride, offset) temp_pos = slice_pos (0...dim).each do |i| diff --git a/lib/nmatrix/monkeys.rb b/lib/nmatrix/monkeys.rb index 2ea9a57e..81e15724 100644 --- a/lib/nmatrix/monkeys.rb +++ b/lib/nmatrix/monkeys.rb @@ -124,7 +124,7 @@ def underscore # Since `autoload` will most likely be deprecated (due to multi-threading concerns), # we'll use `const_missing`. See: https://www.ruby-forum.com/topic/3036681 for more info. -module AutoloadPatch #:nodoc +module AutoloadPatch # :nodoc: def const_missing(name) file = name.to_s.underscore require "nmatrix/io/#{file}" diff --git a/spec/00_nmatrix_spec.rb b/spec/00_nmatrix_spec.rb index c8eb81a6..093a7c59 100644 --- a/spec/00_nmatrix_spec.rb +++ b/spec/00_nmatrix_spec.rb @@ -600,6 +600,7 @@ expect {n == x}.to raise_error(ShapeError) end + # yale must have dimension 2 if left != :yale && right != :yale it "tests equality of matrices with different dimension" do n = NMatrix.new([2, 1], [1, 2], stype: left) @@ -607,7 +608,7 @@ expect {n == m}.to raise_error(ShapeError) end - end # yale must have dimension 2 + end end end end