Skip to content

Commit caed916

Browse files
committed
Update Julia scripts and package versions
1 parent f99f2fb commit caed916

File tree

20 files changed

+110
-110
lines changed

20 files changed

+110
-110
lines changed

lib/node_modules/@stdlib/math/base/complex/divide/test/fixtures/julia/runner.jl

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ julia> gen( re1, im1, re2, im2, \"data.json\" );
4242
```
4343
"""
4444
function gen( re1, im1, re2, im2, name )
45-
zre = Array( Float64, length(re1) );
46-
zim = Array( Float64, length(re1) );
45+
zre = Array{Float64}( undef, length(re1) );
46+
zim = Array{Float64}( undef, length(re1) );
4747
for i in eachindex(re1)
48-
z = Complex128( re1[i], im1[i] ) / Complex128( re2[i], im2[i] );
48+
z = Complex{Float64}( re1[i], im1[i] ) / Complex{Float64}( re2[i], im2[i] );
4949
zre[ i ] = real( z );
5050
zim[ i ] = imag( z );
5151
end
@@ -76,92 +76,92 @@ file = @__FILE__;
7676
dir = dirname( file );
7777

7878
# Large positive real components:
79-
re1 = rand( 500 ) * 1.0e300;
80-
re2 = rand( 500 ) * 1.0e300;
81-
im1 = ( rand( 500 )*20.0 ) - 10.0;
82-
im2 = ( rand( 500 )*20.0 ) - 10.0;
79+
re1 = rand( 500 ) .* 1.0e300;
80+
re2 = rand( 500 ) .* 1.0e300;
81+
im1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
82+
im2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
8383
gen( re1, re2, im1, im2, "large_positive_real_components.json" );
8484

8585
# Large negative real components:
86-
re1 = -rand( 500 ) * 1.0e300;
87-
re2 = -rand( 500 ) * 1.0e300;
88-
im1 = ( rand( 500 )*20.0 ) - 10.0;
89-
im2 = ( rand( 500 )*20.0 ) - 10.0;
86+
re1 = -rand( 500 ) .* 1.0e300;
87+
re2 = -rand( 500 ) .* 1.0e300;
88+
im1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
89+
im2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
9090
gen( re1, im1, re2, im2, "large_negative_real_components.json" );
9191

9292
# Large positive imaginary components:
93-
re1 = ( rand( 500 )*20.0 ) - 10.0;
94-
re2 = ( rand( 500 )*20.0 ) - 10.0;
95-
im1 = rand( 500 ) * 1.0e300;
96-
im2 = rand( 500 ) * 1.0e300;
93+
re1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
94+
re2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
95+
im1 = rand( 500 ) .* 1.0e300;
96+
im2 = rand( 500 ) .* 1.0e300;
9797
gen( re1, im1, re2, im2, "large_positive_imaginary_components.json" );
9898

9999
# Large negative imaginary components:
100-
re1 = ( rand( 500 )*20.0 ) - 10.0;
101-
re2 = ( rand( 500 )*20.0 ) - 10.0;
102-
im1 = -rand( 500 ) * 1.0e300;
103-
im2 = -rand( 500 ) * 1.0e300;
100+
re1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
101+
re2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
102+
im1 = -rand( 500 ) .* 1.0e300;
103+
im2 = -rand( 500 ) .* 1.0e300;
104104
gen( re1, im1, re2, im2, "large_negative_imaginary_components.json" );
105105

106106
# Tiny positive real components:
107-
re1 = rand( 500 ) * 1.0e-324;
108-
re2 = rand( 500 ) * 1.0e-324;
109-
im1 = ( rand( 500 )*20.0 ) - 10.0;
110-
im2 = ( rand( 500 )*20.0 ) - 10.0;
107+
re1 = rand( 500 ) .* 1.0e-324;
108+
re2 = rand( 500 ) .* 1.0e-324;
109+
im1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
110+
im2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
111111
gen( re1, im1, re2, im2, "tiny_positive_real_components.json" );
112112

113113
# Tiny negative real components:
114-
re1 = -rand( 500 ) * 1.0e-324;
115-
re2 = -rand( 500 ) * 1.0e-324;
116-
im1 = ( rand( 500 )*20.0 ) - 10.0;
117-
im2 = ( rand( 500 )*20.0 ) - 10.0;
114+
re1 = -rand( 500 ) .* 1.0e-324;
115+
re2 = -rand( 500 ) .* 1.0e-324;
116+
im1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
117+
im2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
118118
gen( re1, im1, re2, im2, "tiny_negative_real_components.json" );
119119

120120
# Tiny positive imaginary components:
121-
re1 = ( rand( 500 )*20.0 ) - 10.0;
122-
re2 = ( rand( 500 )*20.0 ) - 10.0;
123-
im1 = rand( 500 ) * 1.0e-324;
124-
im2 = rand( 500 ) * 1.0e-324;
121+
re1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
122+
re2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
123+
im1 = rand( 500 ) .* 1.0e-324;
124+
im2 = rand( 500 ) .* 1.0e-324;
125125
gen( re1, im1, re2, im2, "tiny_positive_imaginary_components.json" );
126126

127127
# Tiny negative imaginary components:
128-
re1 = ( rand( 500 )*20.0 ) - 10.0;
129-
re2 = ( rand( 500 )*20.0 ) - 10.0;
130-
im1 = -rand( 500 ) * 1.0e-324;
131-
im2 = -rand( 500 ) * 1.0e-324;
128+
re1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
129+
re2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
130+
im1 = -rand( 500 ) .* 1.0e-324;
131+
im2 = -rand( 500 ) .* 1.0e-324;
132132
gen( re1, im1, re2, im2, "tiny_negative_imaginary_components.json" );
133133

134134
# Real components different scales:
135-
re1 = rand( 500 ) * 1.0e200;
136-
re2 = rand( 500 ) * 1.0e-100;
137-
im1 = ( rand( 500 )*20.0 ) - 10.0;
138-
im2 = ( rand( 500 )*20.0 ) - 10.0;
135+
re1 = rand( 500 ) .* 1.0e200;
136+
re2 = rand( 500 ) .* 1.0e-100;
137+
im1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
138+
im2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
139139
gen( re1, im1, re2, im2, "real_component_scales.json" );
140140

141141
# Imaginary components different scales:
142-
re1 = ( rand( 500 )*20.0 ) - 10.0;
143-
re2 = ( rand( 500 )*20.0 ) - 10.0;
144-
im1 = rand( 500 ) * 1.0e200;
145-
im2 = rand( 500 ) * 1.0e-100;
142+
re1 = ( rand( 500 ) .* 20.0 ) .- 10.0;
143+
re2 = ( rand( 500 ) .* 20.0 ) .- 10.0;
144+
im1 = rand( 500 ) .* 1.0e200;
145+
im2 = rand( 500 ) .* 1.0e-100;
146146
gen( re1, im1, re2, im2, "imaginary_component_scales.json" );
147147

148148
# Components different scales:
149-
re1 = rand( 500 ) * 1.0e200;
150-
re2 = rand( 500 ) * 1.0e200;
151-
im1 = ( rand( 500 )*1.0e-200 ) - 0.5e-200;
152-
im2 = ( rand( 500 )*1.0e-200 ) - 0.5e-200;
149+
re1 = rand( 500 ) .* 1.0e200;
150+
re2 = rand( 500 ) .* 1.0e200;
151+
im1 = ( rand( 500 ) .* 1.0e-200 ) .- 0.5e-200;
152+
im2 = ( rand( 500 ) .* 1.0e-200 ) .- 0.5e-200;
153153
gen( re1, im1, re2, im2, "component_scales1.json" );
154154

155155
# Components different scales:
156-
re1 = ( rand( 500 )*1.0e-200 ) - 0.5e-200;
157-
re2 = ( rand( 500 )*1.0e-200 ) - 0.5e-200;
158-
im1 = rand( 500 ) * 1.0e200;
159-
im2 = rand( 500 ) * 1.0e200;
156+
re1 = ( rand( 500 ) .* 1.0e-200 ) .- 0.5e-200;
157+
re2 = ( rand( 500 ) .* 1.0e-200 ) .- 0.5e-200;
158+
im1 = rand( 500 ) .* 1.0e200;
159+
im2 = rand( 500 ) .* 1.0e200;
160160
gen( re1, im1, re2, im2, "component_scales2.json" );
161161

162162
# Normal:
163-
re1 = ( rand( 500 )*100.0 ) - 50.0;
164-
re2 = ( rand( 500 )*100.0 ) - 50.0;
165-
im1 = ( rand( 500 )*100.0 ) - 50.0;
166-
im2 = ( rand( 500 )*100.0 ) - 50.0;
163+
re1 = ( rand( 500 ) .* 100.0 ) .- 50.0;
164+
re2 = ( rand( 500 ) .* 100.0 ) .- 50.0;
165+
im1 = ( rand( 500 ) .* 100.0 ) .- 50.0;
166+
im2 = ( rand( 500 ) .* 100.0 ) .- 50.0;
167167
gen( re1, im1, re2, im2, "data.json" );

lib/node_modules/@stdlib/math/base/special/hypot/test/fixtures/julia/runner.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Generate fixture data and write to file.
3232
# Examples
3333
3434
``` julia
35-
julia> x = rand( 2003 ) * 1000.0;
36-
julia> y = rand( 2003 ) * 1000.0;
35+
julia> x = rand( 2003 ) .* 1000.0;
36+
julia> y = rand( 2003 ) .* 1000.0;
3737
julia> gen( x, y, \"data.json\" );
3838
```
3939
"""
4040
function gen( x, y, name )
41-
h = hypot( x, y );
41+
h = hypot.( x, y );
4242

4343
# Store data to be written to file as a collection:
4444
data = Dict([
@@ -63,6 +63,6 @@ file = @__FILE__;
6363
dir = dirname( file );
6464

6565
# Generate fixture data:
66-
x = rand( 2003 ) * 2000.0 - 1000.0;
67-
y = rand( 2003 ) * 2000.0 - 1000.0;
66+
x = rand( 2003 ) .* 2000.0 .- 1000.0;
67+
y = rand( 2003 ) .* 2000.0 .- 1000.0;
6868
gen( x, y, "data.json" );
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0

lib/node_modules/@stdlib/ndarray/ctor/benchmark/julia/benchmark.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ function main()
168168

169169
name = "ndarray::instantiation";
170170
setup = :();
171-
stmt = :( A = Array( Float64, 3, 2 ) );
171+
stmt = :( A = Array{Float64}( undef, 3, 2 ) );
172172
bench( name, setup, stmt );
173173

174174
name = "ndarray::get::dtype";
175-
setup = :( A = Array( Float64, 3, 2 ) );
175+
setup = :( A = Array{Float64}( undef, 3, 2 ) );
176176
stmt = quote
177177
d = eltype( A );
178178
if d != Float64
@@ -182,7 +182,7 @@ function main()
182182
bench( name, setup, stmt );
183183

184184
name = "ndarray::get::length";
185-
setup = :( A = Array( Float64, 3, 2 ) );
185+
setup = :( A = Array{Float64}( undef, 3, 2 ) );
186186
stmt = quote
187187
N = length( A );
188188
if N != 6
@@ -192,7 +192,7 @@ function main()
192192
bench( name, setup, stmt );
193193

194194
name = "ndarray::get::ndims";
195-
setup = :( A = Array( Float64, 3, 2 ) );
195+
setup = :( A = Array{Float64}( undef, 3, 2 ) );
196196
stmt = quote
197197
M = ndims( A );
198198
if M != 2
@@ -202,7 +202,7 @@ function main()
202202
bench( name, setup, stmt );
203203

204204
name = "ndarray::get::shape";
205-
setup = :( A = Array( Float64, 3, 2 ) );
205+
setup = :( A = Array{Float64}( undef, 3, 2 ) );
206206
stmt = quote
207207
shape = size( A );
208208
if shape[ 1 ] != 3
@@ -212,7 +212,7 @@ function main()
212212
bench( name, setup, stmt );
213213

214214
name = "ndarray::get::strides";
215-
setup = :( A = Array( Float64, 3, 2 ) );
215+
setup = :( A = Array{Float64}( undef, 3, 2 ) );
216216
stmt = quote
217217
s = strides( A );
218218
if s[ 1 ] != 1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0

0 commit comments

Comments
 (0)