Skip to content

Commit 00614b6

Browse files
committed
Merge branch 'develop' into feat/hacovercosf
2 parents 9aa8d81 + acc9ca5 commit 00614b6

File tree

410 files changed

+22873
-1720
lines changed

Some content is hidden

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

410 files changed

+22873
-1720
lines changed

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Chinmay Joshi <[email protected]> Chinmay J
5555
5656
Debashis Maharana <[email protected]> DebashisMaharana
5757

58+
Deepak Singh <[email protected]>
59+
5860
Dhruv Arvind Singh <[email protected]> DhruvArvindSingh
5961
Dhruv Arvind Singh <[email protected]> Dhruv/
6062

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ Ali Salesi <[email protected]>
2121
AlyAbdelmoneim <[email protected]>
2222
Aman Bhansali <[email protected]>
2323
AmanBhadkariya <[email protected]>
24+
Amisha Chhajed <[email protected]>
2425
Amit Jimiwal <[email protected]>
2526
Annamalai Prabu <[email protected]>
2627
Anshu Kumar <[email protected]>
2728
Anshu Kumar <[email protected]>
2829
Anudeep Sanapala <[email protected]>
30+
Aryan Bhirud <[email protected]>
2931
Athan Reines <[email protected]>
3032
3133
Bhavishy Agrawal <[email protected]>
@@ -93,6 +95,7 @@ Krishnam Agarwal <[email protected]>
9395
Krishnendu Das <[email protected]>
9496
Kshitij-Dale <[email protected]>
9597
Lalit Narayan Yadav <[email protected]>
98+
Lokesh Ranjan <[email protected]>
9699
Lovelin Dhoni J B <[email protected]>
97100
98101
Mahfuza Humayra Mohona <[email protected]>

lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/cmd.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@
2929
* @returns {string} command
3030
*/
3131
function cmd( src, dest, opts ) {
32-
var out;
33-
out = new Array( 8 );
34-
out[ 0 ] = 'pandoc';
35-
out[ 1 ] = '--filter=pandoc-citeproc';
36-
out[ 2 ] = '--from=markdown';
37-
out[ 3 ] = '--to=markdown_github';
38-
out[ 4 ] = '--bibliography='+opts.database;
39-
out[ 5 ] = '--csl='+opts.csl;
40-
out[ 6 ] = '--output=' + dest;
41-
out[ 7 ] = src;
32+
var out = [];
33+
out.push( 'pandoc' );
34+
out.push( '--filter=pandoc-citeproc' );
35+
out.push( '--from=markdown' );
36+
out.push( '--to=markdown_github' );
37+
out.push( '--bibliography='+opts.database );
38+
out.push( '--csl='+opts.csl );
39+
out.push( '--output=' + dest );
40+
out.push( src );
4241
return out.join( ' ' );
4342
}
4443

lib/node_modules/@stdlib/_tools/makie/plugins/makie-repl/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ function plugin( dir, cwd ) {
4040
opts.cwd = dir;
4141
opts.stdio = 'inherit';
4242

43-
args = new Array( 2 );
43+
args = [];
4444

4545
// Environment variables:
46-
args[ 0 ] = 'REPL_DIR='+cwd;
46+
args.push( 'REPL_DIR='+cwd );
4747

4848
// Target:
49-
args[ 1 ] = 'repl';
49+
args.push( 'repl' );
5050

5151
spawn( 'make', args, opts );
5252
}

lib/node_modules/@stdlib/lapack/base/sge-trans/test/test.ndarray.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ tape( 'the function supports specifying the strides of the first and second dime
459459

460460
/* eslint-disable array-element-newline, no-multi-spaces, no-mixed-spaces-and-tabs */
461461

462+
// editorconfig-checker-disable
463+
462464
A = new Float32Array([
463465
1, 999, 2, 999, 3, 999,
464466
999, 999, 999, 999, 999, 999,
@@ -470,6 +472,8 @@ tape( 'the function supports specifying the strides of the first and second dime
470472
999, 999, 999, 999, 999, 999
471473
]);
472474

475+
// editorconfig-checker-enable
476+
473477
/* eslint-enable array-element-newline, no-multi-spaces, no-mixed-spaces-and-tabs */
474478

475479
out = new Float32Array( M*N );

lib/node_modules/@stdlib/math/base/special/cpolar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The function accepts the following arguments:
148148
- **cphase**: `[out] double*` destination for the phase value in radians.
149149
150150
```c
151-
double stdlib_base_cpolar( const stdlib_complex128_t z, double *cabs, double *cphase );
151+
void stdlib_base_cpolar( const stdlib_complex128_t z, double *cabs, double *cphase );
152152
```
153153

154154
</section>

lib/node_modules/@stdlib/math/base/special/cpolar/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface Cpolar {
3939
* var v = cpolar( new Complex128( 5.0, 3.0 ) );
4040
* // returns [ ~5.83, ~0.5404 ]
4141
*/
42-
( z: Complex128 ): Array<number>;
42+
( z: Complex128 ): [ number, number ];
4343

4444
/**
4545
* Computes the absolute value and the phase of a double-precision complex floating-point number and assigns results to a provided output array.

lib/node_modules/@stdlib/math/base/special/cpolar/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import cpolar = require( './index' );
2424

2525
// The function returns an array of numbers...
2626
{
27-
cpolar( new Complex128( 5.0, 3.0 ) ); // $ExpectType number[]
27+
cpolar( new Complex128( 5.0, 3.0 ) ); // $ExpectType [number, number]
2828
}
2929

3030
// The compiler throws an error if the function is provided a complex number...
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<!--
2+
3+
@license Apache-2.0
4+
5+
Copyright (c) 2025 The Stdlib Authors.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
21+
# Cosecant
22+
23+
> Evaluate the [cosecant][trigonometric-functions] of a single-precision floating-point number (in radians).
24+
25+
<section class="intro">
26+
27+
</section>
28+
29+
<section class="usage">
30+
31+
## Usage
32+
33+
```javascript
34+
var cscf = require( '@stdlib/math/base/special/cscf' );
35+
```
36+
37+
## cscf( x )
38+
39+
Evaluates the [cosecant][trigonometric-functions] of a single-precision floating-point number (in radians).
40+
41+
```javascript
42+
var v = cscf( 0.0 );
43+
// returns Infinity
44+
45+
v = cscf( 3.141592653589793/2.0 );
46+
// returns 1.0
47+
48+
v = cscf( -3.141592653589793/6.0 );
49+
// returns ~-2.0
50+
51+
v = cscf( 3.141592653589793/6.0 );
52+
// returns ~2.0
53+
54+
v = cscf( NaN );
55+
// returns NaN
56+
```
57+
58+
</section>
59+
60+
<!-- /.usage -->
61+
62+
<section class="examples">
63+
64+
## Examples
65+
66+
<!-- eslint no-undef: "error" -->
67+
68+
```javascript
69+
var uniform = require( '@stdlib/random/array/uniform' );
70+
var logEachMap = require( '@stdlib/console/log-each-map' );
71+
var TWO_PI = require( '@stdlib/constants/float32/two-pi' );
72+
var cscf = require( '@stdlib/math/base/special/cscf' );
73+
74+
var opts = {
75+
'dtype': 'float32'
76+
};
77+
var x = uniform( 100, 0.0, TWO_PI, opts );
78+
79+
logEachMap( 'cscf(%0.4f) = %0.4f', x, cscf );
80+
```
81+
82+
</section>
83+
84+
<!-- /.examples -->
85+
86+
<!-- C interface documentation. -->
87+
88+
* * *
89+
90+
<section class="c">
91+
92+
## C APIs
93+
94+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
95+
96+
<section class="intro">
97+
98+
</section>
99+
100+
<!-- /.intro -->
101+
102+
<!-- C usage documentation. -->
103+
104+
<section class="usage">
105+
106+
### Usage
107+
108+
```c
109+
#include "stdlib/math/base/special/cscf.h"
110+
```
111+
112+
#### stdlib_base_cscf( x )
113+
114+
Evaluates the [cosecant][trigonometric-functions] of a single-precision floating-point number (in radians).
115+
116+
```c
117+
float out = stdlib_base_cscf( 0.0f );
118+
// returns Infinity
119+
120+
out = stdlib_base_cscf( 3.141592653589793f / 2.0f );
121+
// returns 1.0f
122+
```
123+
124+
The function accepts the following arguments:
125+
126+
- **x**: `[in] float` input value.
127+
128+
```c
129+
float stdlib_base_cscf( const float x );
130+
```
131+
132+
</section>
133+
134+
<!-- /.usage -->
135+
136+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
137+
138+
<section class="notes">
139+
140+
</section>
141+
142+
<!-- /.notes -->
143+
144+
<!-- C API usage examples. -->
145+
146+
<section class="examples">
147+
148+
### Examples
149+
150+
```c
151+
#include "stdlib/math/base/special/cscf.h"
152+
#include <stdio.h>
153+
154+
int main( void ) {
155+
const float x[] = { 0.523f, 0.785f, 1.047f, 3.14f };
156+
157+
float y;
158+
int i;
159+
for ( i = 0; i < 4; i++ ) {
160+
y = stdlib_base_cscf( x[ i ] );
161+
printf( "cscf(%f) = %f\n", x[ i ], y );
162+
}
163+
}
164+
```
165+
166+
</section>
167+
168+
<!-- /.examples -->
169+
170+
</section>
171+
172+
<!-- /.c -->
173+
174+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
175+
176+
<section class="related">
177+
178+
</section>
179+
180+
<!-- /.related -->
181+
182+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
183+
184+
<section class="links">
185+
186+
[trigonometric-functions]: https://en.wikipedia.org/wiki/Trigonometric_functions
187+
188+
<!-- <related-links> -->
189+
190+
<!-- </related-links> -->
191+
192+
</section>
193+
194+
<!-- /.links -->
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var bench = require( '@stdlib/bench' );
24+
var uniform = require( '@stdlib/random/array/uniform' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
26+
var pkg = require( './../package.json' ).name;
27+
var cscf = require( './../lib' );
28+
29+
30+
// MAIN //
31+
32+
bench( pkg, function benchmark( b ) {
33+
var x;
34+
var y;
35+
var i;
36+
37+
x = uniform( 100, -10.0, 10.0, {
38+
'dtype': 'float32'
39+
});
40+
41+
b.tic();
42+
for ( i = 0; i < b.iterations; i++ ) {
43+
y = cscf( x[ i%x.length ] );
44+
if ( isnanf( y ) ) {
45+
b.fail( 'should not return NaN' );
46+
}
47+
}
48+
b.toc();
49+
if ( isnanf( y ) ) {
50+
b.fail( 'should not return NaN' );
51+
}
52+
b.pass( 'benchmark finished' );
53+
b.end();
54+
});

0 commit comments

Comments
 (0)