-
-
Notifications
You must be signed in to change notification settings - Fork 908
Description
This commit has 5 comment(s) from core contributors that require attention.
Commit: 6d7317af46884dca86c9775ca98d5c275d5fe05a
Comments:
-
Line 131: @stdlib-bot We don't align descriptions like this in Markdown documentation.
stdlib/lib/node_modules/@stdlib/math/base/special/sincosd/README.md
Lines 128 to 134 in 6d7317a
The function accepts the following arguments: - **x**: `[in] double` input value. - **sine**: `[out] double*` destination for the sine. - **cosine**: `[out] double*` destination for the cosine. -
Line 110: @stdlib-bot This should be
sine )
.stdlib/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c
Lines 107 to 113 in 6d7317a
} } elapsed = tic() - t; if ( cosine != cosine || sine != sine) { printf( "unexpected results\n" ); } return elapsed; -
Line 104: @stdlib-bot This should be
sine )
.stdlib/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c
Lines 101 to 107 in 6d7317a
for ( i = 0; i < ITERATIONS; i++ ) { x = ( 20.0 * rand_double() ) - 10.0; stdlib_base_sincosd( x, &sine, &cosine ); if ( cosine != cosine || sine != sine) { printf( "unexpected results\n" ); break; } -
Line 70: @stdlib-bot This type definition can be improved to retain the type specificity of the output array. E.g., instead of collection, use
NumericArray
and thenassign<T extends NumericArray>( x: number, out: T, stride: number, offset: number ): T;
While this limits
T
to numeric arrays, that is the most likely scenario. We can always make more generic in the future.stdlib/lib/node_modules/@stdlib/math/base/special/sincosd/docs/types/index.d.ts
Lines 67 to 73 in 6d7317a
* var bool = ( v === out ); * // returns true */ assign<T = unknown>( x: number, out: Collection<T>, stride: number, offset: number ): Collection<T | number>; } /** -
Line 52: @stdlib-bot If the type definition is updated, this should also be updated to
number[]
.stdlib/lib/node_modules/@stdlib/math/base/special/sincosd/docs/types/test.ts
Lines 49 to 55 in 6d7317a
{ const out = [ 0.0, 0.0 ]; sincosd.assign( 3.14e-319, out, 1, 0 ); // $ExpectType Collection<number> } // The compiler throws an error if the `assign` method is provided a first argument which is not a number...
Interested in helping improve the project? If you are, the comment linked to above has 5 comment(s) from core contributors that could use your attention.
What do you need to do?
- Open the above linked comments mentioning @stdlib-bot.
- Review the suggested changes or follow-up tasks (e.g., formatting improvements, small refactorings, or clean-up).
- If you are a first-time contributor, follow the contributing and development guides to setup your local environment for contributing to stdlib. If you are already a seasoned stdlib contributor, create a new branch on your local fork for making the changes.
- Make all the desired changes and commit those changes to a local branch.
- Push the changes to GitHub and open a new pull request against the
develop
branch of the main stdlib development repository.
Once you've opened a pull request, a stdlib maintainer will review your work and suggest any follow-up changes.
And that's it!
Thank you for your help in reducing the project backlog and in improving the quality of stdlib. 🙌
Notes
- 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!
This issue was created automatically to address commit comments tagging @stdlib-bot.