BOAST 0.95 → 0.96
Sign up to get free protection for your applications and to get access to all the features.
- data/BOAST.gemspec +1 -1
- data/lib/BOAST/Algorithm.rb +1 -1
- data/lib/BOAST/CKernel.rb +5 -0
- metadata +2 -2
data/BOAST.gemspec
CHANGED
data/lib/BOAST/Algorithm.rb
CHANGED
data/lib/BOAST/CKernel.rb
CHANGED
@@ -91,6 +91,7 @@ module BOAST
|
|
91
91
|
attr_accessor :lang
|
92
92
|
attr_accessor :binary
|
93
93
|
attr_accessor :kernels
|
94
|
+
attr_accessor :cost_function
|
94
95
|
|
95
96
|
def initialize(options={})
|
96
97
|
if options[:code] then
|
@@ -651,5 +652,9 @@ EOF
|
|
651
652
|
super
|
652
653
|
end
|
653
654
|
end
|
655
|
+
|
656
|
+
def cost(*args)
|
657
|
+
@cost_function.call(*args)
|
658
|
+
end
|
654
659
|
end
|
655
660
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: BOAST
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.96'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: narray
|