Skip to content

Commit a0105f6

Browse files
committed
chore: apply suggestions from review
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent b2b3386 commit a0105f6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/benchmark.native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5252
new Complex64( uniform( -500.0, 500.0 ), uniform( -500.0, 500.0 ) )
5353
];
5454

55-
v = uniform( -500.0, 500.0 );
55+
v = uniform( 100, -500.0, 500.0, {
56+
'dtype': 'float32'
57+
});
5658

5759
b.tic();
5860
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ static float rand_float( void ) {
9393
*/
9494
static double benchmark( void ) {
9595
double elapsed;
96+
float v[ 100 ];
97+
double t;
9698
float re;
9799
float im;
98-
double t;
99-
float v[ 100 ];
100100
int i;
101101

102102
stdlib_complex64_t x[ 100 ];

lib/node_modules/@stdlib/math/base/special/cflipsignf/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
*
3636
* stdlib_complex64_t z = stdlib_complex64( 3.5f, -2.5f );
3737
*
38-
* stdlib_complex64_t y = stdlib_base_cflipsignf( z, -1.0f );
38+
* stdlib_complex64_t out = stdlib_base_cflipsignf( z, -1.0f );
3939
*
40-
* float re = stdlib_complex64_real( y );
40+
* float re = stdlib_complex64_real( out );
4141
* // returns -3.5f
4242
*
43-
* float im = stdlib_complex64_imag( y );
43+
* float im = stdlib_complex64_imag( out );
4444
* // returns 2.5f
4545
*/
4646
stdlib_complex64_t stdlib_base_cflipsignf( const stdlib_complex64_t z, const float y ) {

0 commit comments

Comments
 (0)