Skip to content

Commit 9524c4b

Browse files
committed
Auto-generated commit
1 parent 7f39160 commit 9524c4b

5 files changed

Lines changed: 28 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,9 @@ A total of 95 issues were closed in this release:
731731

732732
<details>
733733

734+
- [`d44b144`](https://github.com/stdlib-js/stdlib/commit/d44b144df2681c91a8108d00cc16afd5833a8249) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/ddeg2rad` [(#11663)](https://github.com/stdlib-js/stdlib/pull/11663) _(by Uday Kakade)_
735+
- [`5029670`](https://github.com/stdlib-js/stdlib/commit/5029670736574df60258c5519cf1f6670b50806e) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/drsqrt` [(#11665)](https://github.com/stdlib-js/stdlib/pull/11665) _(by Uday Kakade)_
736+
- [`0359230`](https://github.com/stdlib-js/stdlib/commit/0359230c32ad65ec22d76e3c6fb5679c9dd88255) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/dinv` [(#11666)](https://github.com/stdlib-js/stdlib/pull/11666) _(by Uday Kakade)_
734737
- [`4948ecc`](https://github.com/stdlib-js/stdlib/commit/4948ecca63ca031e99f94d72def40f445852e4db) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/dsqrt` [(#11668)](https://github.com/stdlib-js/stdlib/pull/11668) _(by Uday Kakade)_
735738
- [`2cd5062`](https://github.com/stdlib-js/stdlib/commit/2cd5062361403748ac15fd295708f925d4c3c92f) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/dtrunc` [(#11669)](https://github.com/stdlib-js/stdlib/pull/11669) _(by Uday Kakade)_
736739
- [`0f96d30`](https://github.com/stdlib-js/stdlib/commit/0f96d3092e11bed46e6cd83efd770c2d6fa77af1) - **docs:** update namespace table of contents [(#11637)](https://github.com/stdlib-js/stdlib/pull/11637) _(by stdlib-bot, Philipp Burckhardt)_

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ For more information on the project, filing bug reports and feature requests, an
139139

140140
---
141141

142+
## License
143+
144+
See [LICENSE][stdlib-license].
145+
146+
142147
## Copyright
143148

144149
Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
@@ -185,6 +190,8 @@ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
185190
[esm-readme]: https://github.com/stdlib-js/math/blob/esm/README.md
186191
[branches-url]: https://github.com/stdlib-js/math/blob/main/branches.md
187192

193+
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math/main/LICENSE
194+
188195
<!-- <toc-links> -->
189196

190197
[@stdlib/math/array]: https://github.com/stdlib-js/math/tree/main/array

strided/special/ddeg2rad/benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ float rand_uniformf( float a, float b ) {
114114
*/
115115
static double benchmark( int iterations, int len ) {
116116
double elapsed;
117-
double x[ len ];
118-
double y[ len ];
117+
double *x;
118+
double *y;
119119
double t;
120120
int i;
121121

122+
x = (double *) malloc( len * sizeof( double ) );
123+
y = (double *) malloc( len * sizeof( double ) );
122124
for ( i = 0; i < len; i++ ) {
123125
x[ i ] = rand_uniform( -180.0, 180.0 );
124126
y[ i ] = 0.0;
@@ -136,6 +138,8 @@ static double benchmark( int iterations, int len ) {
136138
if ( y[ 0 ] != y[ 0 ] ) {
137139
printf( "should not return NaN\n" );
138140
}
141+
free( x );
142+
free( y );
139143
return elapsed;
140144
}
141145

strided/special/dinv/benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ float rand_uniformf( float a, float b ) {
114114
*/
115115
static double benchmark( int iterations, int len ) {
116116
double elapsed;
117-
double x[ len ];
118-
double y[ len ];
117+
double *x;
118+
double *y;
119119
double t;
120120
int i;
121121

122+
x = (double *) malloc( len * sizeof( double ) );
123+
y = (double *) malloc( len * sizeof( double ) );
122124
for ( i = 0; i < len; i++ ) {
123125
x[ i ] = rand_uniform( -50.0, 50.0 );
124126
y[ i ] = 0.0;
@@ -136,6 +138,8 @@ static double benchmark( int iterations, int len ) {
136138
if ( y[ 0 ] != y[ 0 ] ) {
137139
printf( "should not return NaN\n" );
138140
}
141+
free( x );
142+
free( y );
139143
return elapsed;
140144
}
141145

strided/special/drsqrt/benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ float rand_uniformf( float a, float b ) {
114114
*/
115115
static double benchmark( int iterations, int len ) {
116116
double elapsed;
117-
double x[ len ];
118-
double y[ len ];
117+
double *x;
118+
double *y;
119119
double t;
120120
int i;
121121

122+
x = (double *) malloc( len * sizeof( double ) );
123+
y = (double *) malloc( len * sizeof( double ) );
122124
for ( i = 0; i < len; i++ ) {
123125
x[ i ] = rand_uniform( 0.0, 200.0 );
124126
y[ i ] = 0.0;
@@ -135,6 +137,8 @@ static double benchmark( int iterations, int len ) {
135137
if ( y[ 0 ] != y[ 0 ] ) {
136138
printf( "should not return NaN\n" );
137139
}
140+
free( x );
141+
free( y );
138142
return elapsed;
139143
}
140144

0 commit comments

Comments
 (0)