Skip to content

Commit 39f34c9

Browse files
Merge branch 'stdlib-js:develop' into tiny-random
2 parents a276b04 + 8ce4c72 commit 39f34c9

File tree

243 files changed

+19473
-203
lines changed

Some content is hidden

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

243 files changed

+19473
-203
lines changed

.github/workflows/generate_pr_commit_message.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ jobs:
5656
# Pin action to full length commit SHA
5757
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
with:
59-
# Ensure we have access to the scripts directory:
59+
# Ensure we have access to the scripts directory and .mailmap file for generating the commit message:
6060
sparse-checkout: |
6161
.github/workflows/scripts
62+
.mailmap
6263
sparse-checkout-cone-mode: false
6364

6465
# Generate commit message:

.github/workflows/lint_random_files.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ jobs:
230230
\`\`\`
231231
$(cat lint_editorconfig_errors.txt | strip_ansi)
232232
\`\`\`
233+
234+
### Pull Request Instructions
235+
236+
- Please use the following PR title format:
237+
"chore: fix EditorConfig lint errors (issue #<ISSUE_NUMBER>)".
238+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
233239
EOF
234240
235241
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -370,20 +376,26 @@ jobs:
370376
run: |
371377
BODY_FILE="$GITHUB_WORKSPACE/lint_issue_body.md"
372378
cat << EOF > "$BODY_FILE"
373-
## JavaScript Linting Failures
379+
## JavaScript Linting Failures
374380
375-
Linting failures were detected in the automated JavaScript lint workflow run.
381+
Linting failures were detected in the automated JavaScript lint workflow run.
376382
377-
### Workflow Details
383+
### Workflow Details
378384
379-
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
380-
- Type: JavaScript Linting
381-
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
385+
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
386+
- Type: JavaScript Linting
387+
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
382388
383-
### Error Details
384-
\`\`\`
385-
$(cat lint_javascript_errors.txt)
386-
\`\`\`
389+
### Error Details
390+
\`\`\`
391+
$(cat lint_javascript_errors.txt)
392+
\`\`\`
393+
394+
### Pull Request Instructions
395+
396+
- Please use the following PR title format:
397+
"chore: fix JavaScript lint errors (issue #<ISSUE_NUMBER>)".
398+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
387399
EOF
388400
389401
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -524,6 +536,12 @@ jobs:
524536
\`\`\`
525537
$(grep -B 1 -A 2 "style:\|warning:\|error:" "lint_c_errors.txt")
526538
\`\`\`
539+
540+
### Pull Request Instructions
541+
542+
- Please use the following PR title format:
543+
"chore: fix C lint errors (issue #<ISSUE_NUMBER>)".
544+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
527545
EOF
528546
529547
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \

.github/workflows/scripts/create_address_commit_comments_issues

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,14 @@ Thank you for your help in reducing the project backlog and in improving the qua
411411
412412
## Notes
413413
414+
- When creating your pull request, please use the following format for the PR title:
415+
416+
\`\`\`
417+
chore: address commit comments for commit \`${short_sha}\` (issue #NNNN)
418+
\`\`\`
419+
420+
where \`NNNN\` is the issue number assigned to this issue.
421+
414422
- For older commits, there is a chance that comments will have been already been addressed due to other refactorings. If you find that to be true, don't worry! Just move on to addressing the next comment, and, when opening your pull request and describing your proposed changes, be sure to link to the comment and mention that it has been addressed. This will help reviewers when reviewing your code!
415423
416424
* * *

lib/node_modules/@stdlib/complex/base/wrap-function/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): Nullary;
219219
*
220220
* @example
221221
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
222-
* var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
222+
* var cidentityf = require( '@stdlib/complex/float32/base/identity' );
223223
* var realf = require( '@stdlib/complex/float32/real' );
224224
* var imagf = require( '@stdlib/complex/float32/imag' );
225225
*

lib/node_modules/@stdlib/math/base/special/cidentityf/README.md renamed to lib/node_modules/@stdlib/complex/float32/base/identity/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ f(z) = z
3333
```
3434

3535
<!-- <div class="equation" align="center" data-raw-text="f(z) = z" data-equation="eq:identity_function">
36-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@79c18caa8e6697ecbe8bcf813a8d54a470168a75/lib/node_modules/@stdlib/math/base/special/cidentityf/docs/img/equation_identity_function.svg" alt="Identity function">
36+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@79c18caa8e6697ecbe8bcf813a8d54a470168a75/lib/node_modules/@stdlib/complex/float32/base/identity/docs/img/equation_identity_function.svg" alt="Identity function">
3737
<br>
3838
</div> -->
3939

@@ -50,7 +50,7 @@ for all `z`.
5050
## Usage
5151

5252
```javascript
53-
var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
53+
var cidentityf = require( '@stdlib/complex/float32/base/identity' );
5454
```
5555

5656
#### cidentityf( z )
@@ -85,7 +85,7 @@ var im = imag( v );
8585
```javascript
8686
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
8787
var Complex64 = require( '@stdlib/complex/float32/ctor' );
88-
var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
88+
var cidentityf = require( '@stdlib/complex/float32/base/identity' );
8989

9090
var z;
9191
var i;
@@ -122,17 +122,17 @@ for ( i = 0; i < 100; i++ ) {
122122
### Usage
123123

124124
```c
125-
#include "stdlib/math/base/special/cidentityf.h"
125+
#include "stdlib/complex/float32/base/identity.h"
126126
```
127127

128-
#### stdlib_base_cidentityf( z )
128+
#### stdlib_base_complex64_identity( z )
129129

130130
Evaluates the identity function for a single-precision complex floating-point number.
131131

132132
```c
133133
#include <complex.h>
134134

135-
float complex y = stdlib_base_cidentityf( 2.0f+2.0f*I );
135+
float complex y = stdlib_base_complex64_identity( 2.0f+2.0f*I );
136136
// returns 2.0f+2.0f*I
137137
```
138138

@@ -141,7 +141,7 @@ The function accepts the following arguments:
141141
- **z**: `[in] float complex` input value.
142142

143143
```c
144-
float complex stdlib_base_cidentityf( const float complex z );
144+
float complex stdlib_base_complex64_identity( const float complex z );
145145
```
146146
147147
</section>
@@ -163,7 +163,7 @@ float complex stdlib_base_cidentityf( const float complex z );
163163
### Examples
164164
165165
```c
166-
#include "stdlib/math/base/special/cidentityf.h"
166+
#include "stdlib/complex/float32/base/identity.h"
167167
#include <stdio.h>
168168
#include <complex.h>
169169
@@ -175,7 +175,7 @@ int main( void ) {
175175
int i;
176176
for ( i = 0; i < 4; i++ ) {
177177
v = x[ i ];
178-
y = stdlib_base_cidentityf( v );
178+
y = stdlib_base_complex64_identity( v );
179179
printf( "f(%f + %f) = %f + %f\n", crealf( v ), cimagf( v ), crealf( y ), cimagf( y ) );
180180
}
181181
}

lib/node_modules/@stdlib/math/base/special/cidentityf/benchmark/c/native/benchmark.c renamed to lib/node_modules/@stdlib/complex/float32/base/identity/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "stdlib/math/base/special/cidentityf.h"
19+
#include "stdlib/complex/float32/base/identity.h"
2020
#include <complex.h>
2121
#include <stdlib.h>
2222
#include <stdio.h>
@@ -102,7 +102,7 @@ static double benchmark( void ) {
102102
for ( i = 0; i < ITERATIONS; i++ ) {
103103
v = ( 1000.0f*rand_float() ) - 500.0f;
104104
x = v + v*I;
105-
y = stdlib_base_cidentityf( x );
105+
y = stdlib_base_complex64_identity( x );
106106
if ( crealf( y ) != v ) {
107107
printf( "unexpected result\n" );
108108
break;

0 commit comments

Comments
 (0)