Skip to content

Commit 2314a84

Browse files
committed
Update Julia scripts and add package versions
1 parent 07c87b1 commit 2314a84

File tree

68 files changed

+161
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+161
-161
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ julia> gen( re, im, \"data.json\" );
3838
```
3939
"""
4040
function gen( re, im, name )
41-
cisre = Array( Float64, length(re) );
42-
cisim = Array( Float64, length(re) );
41+
cisre = Array{Float64}( undef, length(re) );
42+
cisim = Array{Float64}( undef, length(re) );
4343
for i in eachindex( re )
44-
z = cis( Complex128( re[i], im[i] ) );
44+
z = cis( Complex{Float64}( re[i], im[i] ) );
4545
cisre[ i ] = real( z );
4646
cisim[ i ] = imag( z );
4747
end
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
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/math/base/complex/exp/test/fixtures/julia/runner.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ julia> gen( re, im, \"data.json\" );
3838
```
3939
"""
4040
function gen( re, im, name )
41-
expre = Array( Float64, length(re) );
42-
expim = Array( Float64, length(re) );
41+
expre = Array{Float64}( undef, length(re) );
42+
expim = Array{Float64}( undef, length(re) );
4343
for i in eachindex( re )
44-
z = exp( Complex128( re[i], im[i] ) );
44+
z = exp( Complex{Float64}( re[i], im[i] ) );
4545
expre[ i ] = real( z );
4646
expim[ i ] = imag( z );
4747
end
@@ -71,10 +71,10 @@ dir = dirname( file );
7171

7272
# Pure nonnegative imaginary:
7373
re = zeros( 500 );
74-
im = ( rand( 500 ) * 10000.0 ) - 5.0;
74+
im = ( rand( 500 ) .* 10000.0 ) .- 5.0;
7575
gen( re, im, "pure_imaginary.json" );
7676

7777
# General complex:
78-
re = ( rand( 500 ) * 100.0 ) - 5.0;
79-
im = ( rand( 500 ) * 100.0 ) - 5.0;
78+
re = ( rand( 500 ) .* 100.0 ) .- 5.0;
79+
im = ( rand( 500 ) .* 100.0 ) .- 5.0;
8080
gen( re, im, "general_complex.json" );
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
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/math/base/complex/inv/test/fixtures/julia/runner.jl

+21-21
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ julia> gen( re, im, \"data.json\" );
3838
```
3939
"""
4040
function gen( re, im, name )
41-
zre = Array( Float64, length(re) );
42-
zim = Array( Float64, length(re) );
41+
zre = Array{Float64}( undef, length(re) );
42+
zim = Array{Float64}( undef, length(re) );
4343
for i in eachindex(re)
44-
z = 1.0 / Complex128( re[i], im[i] );
44+
z = 1.0 / Complex{Float64}( re[i], im[i] );
4545
zre[ i ] = real( z );
4646
zim[ i ] = imag( z );
4747
end
@@ -70,46 +70,46 @@ file = @__FILE__;
7070
dir = dirname( file );
7171

7272
# Large positive real components:
73-
re = rand( 500 ) * 1.0e300;
74-
im = ( rand( 500 )*20.0 ) - 10.0;
73+
re = rand( 500 ) .* 1.0e300;
74+
im = ( rand( 500 ) .* 20.0 ) .- 10.0;
7575
gen( re, im, "large_positive_real_components.json" );
7676

7777
# Large negative real components:
78-
re = -rand( 500 ) * 1.0e300;
79-
im = ( rand( 500 )*20.0 ) - 10.0;
78+
re = -rand( 500 ) .* 1.0e300;
79+
im = ( rand( 500 ) .* 20.0 ) .- 10.0;
8080
gen( re, im, "large_negative_real_components.json" );
8181

8282
# Large positive imaginary components:
83-
re = ( rand( 500 )*20.0 ) - 10.0;
84-
im = rand( 500 ) * 1.0e300;
83+
re = ( rand( 500 ) .* 20.0 ) .- 10.0;
84+
im = rand( 500 ) .* 1.0e300;
8585
gen( re, im, "large_positive_imaginary_components.json" );
8686

8787
# Large negative imaginary components:
88-
re = ( rand( 500 )*20.0 ) - 10.0;
89-
im = -rand( 500 ) * 1.0e300;
88+
re = ( rand( 500 ) .* 20.0 ) .- 10.0;
89+
im = -rand( 500 ) .* 1.0e300;
9090
gen( re, im, "large_negative_imaginary_components.json" );
9191

9292
# Tiny positive real components:
93-
re = rand( 500 ) * 1.0e-324;
94-
im = ( rand( 500 )*20.0 ) - 10.0;
93+
re = rand( 500 ) .* 1.0e-324;
94+
im = ( rand( 500 ) .* 20.0 ) .- 10.0;
9595
gen( re, im, "tiny_positive_real_components.json" );
9696

9797
# Tiny negative real components:
98-
re = -rand( 500 ) * 1.0e-324;
99-
im = ( rand( 500 )*20.0 ) - 10.0;
98+
re = -rand( 500 ) .* 1.0e-324;
99+
im = ( rand( 500 ) .* 20.0 ) .- 10.0;
100100
gen( re, im, "tiny_negative_real_components.json" );
101101

102102
# Tiny positive imaginary components:
103-
re = ( rand( 500 )*20.0 ) - 10.0;
104-
im = rand( 500 ) * 1.0e-324;
103+
re = ( rand( 500 ) .* 20.0 ) .- 10.0;
104+
im = rand( 500 ) .* 1.0e-324;
105105
gen( re, im, "tiny_positive_imaginary_components.json" );
106106

107107
# Tiny negative imaginary components:
108-
re = ( rand( 500 )*20.0 ) - 10.0;
109-
im = -rand( 500 ) * 1.0e-324;
108+
re = ( rand( 500 ) .* 20.0 ) .- 10.0;
109+
im = -rand( 500 ) .* 1.0e-324;
110110
gen( re, im, "tiny_negative_imaginary_components.json" );
111111

112112
# Normal:
113-
re = ( rand( 500 )*100.0 ) - 50.0;
114-
im = ( rand( 500 )*100.0 ) - 50.0;
113+
re = ( rand( 500 ) .* 100.0 ) .- 50.0;
114+
im = ( rand( 500 ) .* 100.0 ) .- 50.0;
115115
gen( re, im, "data.json" );
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
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
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
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
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
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
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
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
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
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
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/math/base/special/ahavercos/test/fixtures/julia/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ julia> gen( x, \"data.json\" );
3737
"""
3838
function gen( domain, name )
3939
x = collect( domain );
40-
y = 2.0 * acos.( sqrt.( x ) );
40+
y = 2.0 .* acos.( sqrt.( x ) );
4141

4242
# Store data to be written to file as a collection:
4343
data = Dict([

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ julia> gen( x, \"data.json\" );
3737
"""
3838
function gen( domain, name )
3939
x = collect( domain );
40-
y = 2.0 * asin.( sqrt.( x ) );
40+
y = 2.0 .* asin.( sqrt.( x ) );
4141

4242
# Store data to be written to file as a collection:
4343
data = Dict([
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
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
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
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
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
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
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
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
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
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
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
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
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/math/base/special/binomcoef/test/fixtures/julia/runner.jl

+5-5
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> m = round( Int, rand( 1000 ) * 170 );
36-
julia> k = round( Int, rand( 1000 ) * 170 );
35+
julia> m = round.( Int, rand( 1000 ) .* 170 );
36+
julia> k = round.( Int, rand( 1000 ) .* 170 );
3737
julia> gen( m, k, \"data.json\" );
3838
```
3939
"""
4040
function gen( m, k, name )
41-
y = Array( Int64, length( m ) );
41+
y = Array{Int64}( undef, length( m ) );
4242
for i in eachindex(m)
4343
y[i] = binomial( m[i], k[i] );
4444
end
@@ -66,6 +66,6 @@ file = @__FILE__;
6666
dir = dirname( file );
6767

6868
# Integer values:
69-
m = round( Int, rand( 1000 ) * 50 - 20 );
70-
k = round( Int, rand( 1000 ) * 20 );
69+
m = round.( Int, rand( 1000 ) .* 50 .- 20 );
70+
k = round.( Int, rand( 1000 ) .* 20 );
7171
gen( m, k, "integers.json" );
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
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
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
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
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
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
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
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
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
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
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
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
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
33
Elliptic 0.5.0
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
julia 0.5
2-
BenchmarkTools 0.0.8
1+
julia 1.5
2+
BenchmarkTools 0.5.0
33
Elliptic 0.5.0
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
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
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
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)