BOAST 0.99992 → 0.99993

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/BOAST.gemspec +1 -1
  2. data/lib/BOAST/Variable.rb +11 -12
  3. metadata +2 -2
data/BOAST.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'BOAST'
3
- s.version = "0.99992"
3
+ s.version = "0.99993"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/boast/"
@@ -281,9 +281,9 @@ module BOAST
281
281
  s += "[]"
282
282
  end
283
283
  if dimension? and ((local? and not device) or (allocate? and not constant?)) then
284
- s +="["
285
- s += @dimension.collect{ |d| d.to_s }.reverse.join("*")
286
- s +="]"
284
+ s +="[("
285
+ s += @dimension.collect{ |d| d.to_s }.reverse.join(")*(")
286
+ s +=")]"
287
287
  end
288
288
  s += " = #{@constant}" if constant?
289
289
  return s
@@ -330,15 +330,14 @@ module BOAST
330
330
  s += ", parameter" if constant?
331
331
  if dimension? then
332
332
  s += ", dimension("
333
- dim = @dimension[0].to_s
334
- if dim then
335
- s += dim.to_s
336
- @dimension[1..-1].each { |d|
337
- s += ", #{d}"
338
- }
339
- else
340
- s += "*"
341
- end
333
+ s += @dimension.collect { |d|
334
+ dim = d.to_s
335
+ if dim then
336
+ dim.to_s
337
+ else
338
+ "*"
339
+ end
340
+ }.join(", ")
342
341
  s += ")"
343
342
  end
344
343
  s += " :: #{@name}"
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.99992'
4
+ version: '0.99993'
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-09-24 00:00:00.000000000 Z
12
+ date: 2014-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray