BOAST 0.99992 → 0.99993
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 +1 -1
- data/lib/BOAST/Variable.rb +11 -12
- metadata +2 -2
data/BOAST.gemspec
CHANGED
data/lib/BOAST/Variable.rb
CHANGED
|
@@ -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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: narray
|