Skip to content

Commit

Permalink
Add bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
rbotafogo committed Mar 31, 2017
1 parent 97ddc09 commit d0516fb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--- {}
2 changes: 2 additions & 0 deletions Jarfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jar 'org.yaml:snakeyaml'
jar 'org.slf4j:slf4j-simple', '>1.1'
2 changes: 1 addition & 1 deletion lib/mdarray/counter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def each
#-------------------------------------------------------------------------------------
# Walks the counter along each of the axes. For instance if given axes [0, 2] and
# the array shape is [4, 3, 2], then the counter will be [0, 0, 0], [0, 0, 1],
# [1, 0, 1], [1, 0, 1], [2, 0, 0], ... [3, 0, 1]
# [1, 0, 0], [1, 0, 1], [2, 0, 0], ... [3, 0, 1]
#-------------------------------------------------------------------------------------

def each_along_axes(axes)
Expand Down
3 changes: 2 additions & 1 deletion mdarray.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
require 'rubygems/platform'

require 'rubygems/platform'
require './version'


Expand Down Expand Up @@ -35,6 +35,7 @@ EOF
gem.license = 'BSD 2-clause'

gem.add_dependency('map', "~> 6.5")

gem.add_development_dependency('shoulda', "~> 3.5")
gem.add_development_dependency('simplecov', "~> 0.11")
gem.add_development_dependency('yard', "~> 0.8")
Expand Down
8 changes: 4 additions & 4 deletions test/colt/matrix/test_properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MDArrayTest < Test::Unit::TestCase

# diagonaly dominant matrix by row and column
diag_dominant = MDMatrix.fromfunction("double", [4, 4]) do |x, y|
(x == y)? 5 * (x +1) + 5 * (y + 1) : x + y
(x == y)? 5 * (x + 1) + 5 * (y + 1) : x + y
end

# upper diagonal matrix
Expand Down Expand Up @@ -210,7 +210,7 @@ class MDArrayTest < Test::Unit::TestCase
diag_dominant = MDMatrix
.from_mdarray(MDArray.fromfunction("float", [4, 4]) do |x, y|
if (x == y)
5 * (x +1) + 5 * (y + 1)
5 * (x + 1) + 5 * (y + 1)
else
x + y
end
Expand Down Expand Up @@ -365,7 +365,7 @@ class MDArrayTest < Test::Unit::TestCase
diag_dominant = MDMatrix
.from_mdarray(MDArray.fromfunction("long", [4, 4]) do |x, y|
if (x == y)
5 * (x +1) + 5 * (y + 1)
5 * (x + 1) + 5 * (y + 1)
else
x + y
end
Expand Down Expand Up @@ -521,7 +521,7 @@ class MDArrayTest < Test::Unit::TestCase
diag_dominant = MDMatrix
.from_mdarray(MDArray.fromfunction("int", [4, 4]) do |x, y|
if (x == y)
5 * (x +1) + 5 * (y + 1)
5 * (x + 1) + 5 * (y + 1)
else
x + y
end
Expand Down

0 comments on commit d0516fb

Please sign in to comment.