BOAST 0.95 → 0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/BOAST.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'BOAST'
3
- s.version = "0.95"
3
+ s.version = "0.96"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/boast/"
@@ -743,7 +743,7 @@ module BOAST
743
743
  s += d
744
744
  }
745
745
  else
746
- s += ":"
746
+ s += "*"
747
747
  end
748
748
  s += ")"
749
749
  end
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.95'
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 00:00:00.000000000 Z
12
+ date: 2014-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray