Skip to content

Commit

Permalink
🎨 Fix Style/CommentedKeyword issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WaKeMaTTa committed Apr 3, 2019
1 parent 6546c0a commit 48ae7fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/nmatrix/jruby/slice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/nmatrix/monkeys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 2 additions & 1 deletion spec/00_nmatrix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,14 +600,15 @@
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)
m = NMatrix.new([2], [1, 2], stype: right)

expect {n == m}.to raise_error(ShapeError)
end
end # yale must have dimension 2
end
end
end
end
Expand Down

0 comments on commit 48ae7fd

Please sign in to comment.