Skip to content

Commit 2314a84

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

68 files changed

Lines changed: 161 additions & 161 deletions

File tree

Some content is hidden

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

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

Lines changed: 3 additions & 3 deletions
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
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/math/base/complex/exp/test/fixtures/julia/runner.jl

Lines changed: 6 additions & 6 deletions
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" );
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/math/base/complex/inv/test/fixtures/julia/runner.jl

Lines changed: 21 additions & 21 deletions
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" );
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)