Skip to content

Commit aae9362

Browse files
authored
Merge branch 'develop' into complexNotation
Signed-off-by: Athan <kgryte@gmail.com>
2 parents 0fcfeef + ce09e9e commit aae9362

204 files changed

Lines changed: 4392 additions & 1333 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.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
type: amend-message
3+
---
4+
docs: improve doctests for complex number instances in `math/base/special/cflipsignf`
5+
6+
PR-URL: https://github.com/stdlib-js/stdlib/pull/9011
7+
Ref: https://github.com/stdlib-js/stdlib/issues/8641
8+
9+
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
type: amend-message
3+
---
4+
docs: improve doctests for complex number instances in `math/base/special/csignum`
5+
6+
PR-URL: https://github.com/stdlib-js/stdlib/pull/9012
7+
Ref: https://github.com/stdlib-js/stdlib/issues/8641
8+
9+
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
type: amend-message
3+
---
4+
docs: improve doctests for complex number instances in `math/base/special/cceil`
5+
6+
PR-URL: https://github.com/stdlib-js/stdlib/pull/9007
7+
Ref: https://github.com/stdlib-js/stdlib/issues/8641
8+
9+
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>

lib/node_modules/@stdlib/array/base/cunone/benchmark/benchmark.assign.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var isArray = require( '@stdlib/assert/is-array' );
2626
var filled = require( '@stdlib/array/base/filled' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var cunone = require( './../lib' );
2930

@@ -91,7 +92,7 @@ function main() {
9192
for ( i = min; i <= max; i++ ) {
9293
len = pow( 10, i );
9394
f = createBenchmark( len );
94-
bench( pkg+':assign:len='+len, f );
95+
bench( format( '%s:assign:len=%d', pkg, len ), f );
9596
}
9697
}
9798

lib/node_modules/@stdlib/array/base/cunone/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var isArray = require( '@stdlib/assert/is-array' );
2626
var filled = require( '@stdlib/array/base/filled' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var cunone = require( './../lib' );
2930

@@ -88,7 +89,7 @@ function main() {
8889
for ( i = min; i <= max; i++ ) {
8990
len = pow( 10, i );
9091
f = createBenchmark( len );
91-
bench( pkg+':len='+len, f );
92+
bench( format( '%s:len=%d', pkg, len ), f );
9293
}
9394
}
9495

lib/node_modules/@stdlib/array/base/filled2d-by/benchmark/benchmark.size.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2626
var sqrt = require( '@stdlib/math/base/special/sqrt' );
2727
var isArrayArray = require( '@stdlib/assert/is-array-array' );
2828
var constantFunction = require( '@stdlib/utils/constant-function' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031
var filled2dBy = require( './../lib' );
3132

@@ -93,7 +94,7 @@ function main() {
9394
N = floor( sqrt( pow( 10, i ) ) );
9495

9596
f = createBenchmark( N );
96-
bench( pkg+'::square_matrix:size='+(N*N), f );
97+
bench( format( '%s::square_matrix:size=%d', pkg, N*N ), f );
9798
}
9899
}
99100

lib/node_modules/@stdlib/array/base/take/benchmark/benchmark.assign.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2525
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2626
var zeros = require( '@stdlib/array/zeros' );
2727
var isArray = require( '@stdlib/assert/is-array' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var take = require( './../lib' );
3031

@@ -99,7 +100,7 @@ function main() {
99100
for ( i = min; i <= max; i++ ) {
100101
len = pow( 10, i );
101102
f = createBenchmark( len );
102-
bench( pkg+':assign:len='+len, f );
103+
bench( format( '%s:assign:len=%d', pkg, len ), f);
103104
}
104105
}
105106

lib/node_modules/@stdlib/array/base/take/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
var bench = require( '@stdlib/bench' );
2424
var isArray = require( '@stdlib/assert/is-array' );
2525
var zeroTo = require( '@stdlib/array/base/zero-to' );
26+
var format = require( '@stdlib/string/format' );
2627
var pkg = require( './../package.json' ).name;
2728
var take = require( './../lib' );
2829

2930

3031
// MAIN //
3132

32-
bench( pkg+'::copy:len=100', function benchmark( b ) {
33+
bench( format( '%s::copy:len=%d', pkg, 100 ), function benchmark( b ) {
3334
var x;
3435
var i;
3536
var v;

lib/node_modules/@stdlib/array/base/take/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2626
var isArray = require( '@stdlib/assert/is-array' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var take = require( './../lib' );
2930

@@ -91,7 +92,7 @@ function main() {
9192
for ( i = min; i <= max; i++ ) {
9293
len = pow( 10, i );
9394
f = createBenchmark( len );
94-
bench( pkg+':len='+len, f );
95+
bench( format( '%s:len=%d', pkg, len ), f );
9596
}
9697
}
9798

lib/node_modules/@stdlib/blas/ext/base/dnansum/benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ static double rand_double( void ) {
9696
*/
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
99-
double x[ len ];
99+
double *x;
100100
double v;
101101
double t;
102102
int i;
103103

104+
x = (double *)malloc( len * sizeof( double ) );
104105
for ( i = 0; i < len; i++ ) {
105106
if ( rand_double() < 0.2 ) {
106107
x[ i ] = 0.0 / 0.0; // NaN
@@ -122,6 +123,7 @@ static double benchmark1( int iterations, int len ) {
122123
if ( v != v ) {
123124
printf( "should not return NaN\n" );
124125
}
126+
free( x );
125127
return elapsed;
126128
}
127129

@@ -134,11 +136,12 @@ static double benchmark1( int iterations, int len ) {
134136
*/
135137
static double benchmark2( int iterations, int len ) {
136138
double elapsed;
137-
double x[ len ];
139+
double *x;
138140
double v;
139141
double t;
140142
int i;
141143

144+
x = (double *)malloc( len * sizeof( double ) );
142145
for ( i = 0; i < len; i++ ) {
143146
if ( rand_double() < 0.2 ) {
144147
x[ i ] = 0.0 / 0.0; // NaN
@@ -160,6 +163,7 @@ static double benchmark2( int iterations, int len ) {
160163
if ( v != v ) {
161164
printf( "should not return NaN\n" );
162165
}
166+
free( x );
163167
return elapsed;
164168
}
165169

0 commit comments

Comments
 (0)