Skip to content

Commit 566a85d

Browse files
committed
chore: changes from code review
1 parent f73da4b commit 566a85d

File tree

9 files changed

+12
-18
lines changed

9 files changed

+12
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int main( void ) {
187187
stdlib_complex128( 3.14f, 1.5f ),
188188
stdlib_complex128( -3.14f, -1.5f ),
189189
stdlib_complex128( 0.0f, 0.0f ),
190-
stdlib_complex128( 0.0f/0.0f, 0.0f/0.0f )
190+
stdlib_complex128( 0.0f / 0.0f, 0.0f / 0.0f )
191191
};
192192
193193
stdlib_complex64_t v;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5252

5353
b.tic();
5454
for ( i = 0; i < b.iterations; i++ ) {
55-
y = cfloorf( values[ i%values.length ] );
55+
y = cfloorf( values[ i % values.length ] );
5656
if ( isnanf( real( y ) ) ) {
5757
b.fail( 'should not return NaN' );
5858
}

lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2018 The Stdlib Authors.
4+
# Copyright (c) 2024 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static double benchmark( void ) {
103103
re = ( 1000.0f * rand_float() ) - 500.0f;
104104
im = ( 1000.0f * rand_float() ) - 500.0f;
105105
z = re + im*I;
106-
y = floorf( crealf(z) ) + floorf( cimagf(z) )*I;
106+
y = floorf( crealf( z ) ) + floorf( cimagf( z ) )*I;
107107
if ( y != y ) {
108108
printf( "should not return NaN\n" );
109109
break;

lib/node_modules/@stdlib/math/base/special/cfloorf/binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2023 The Stdlib Authors.
3+
# Copyright (c) 2024 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/math/base/special/cfloorf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main( void ) {
2626
stdlib_complex64( 3.14f, 1.5f ),
2727
stdlib_complex64( -3.14f, -1.5f ),
2828
stdlib_complex64( 0.0f, 0.0f ),
29-
stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )
29+
stdlib_complex64( 0.0f / 0.0f, 0.0f / 0.0f )
3030
};
3131

3232
stdlib_complex64_t v;

lib/node_modules/@stdlib/math/base/special/cfloorf/examples/index.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,13 @@
1919
'use strict';
2020

2121
var Complex64 = require( '@stdlib/complex/float32/ctor' );
22-
var randu = require( '@stdlib/random/base/randu' );
22+
var uniform = require( '@stdlib/random/base/uniform' ).factory;
2323
var cfloorf = require( './../lib' );
2424

25-
var re;
26-
var im;
25+
var rand = uniform( -50.0, 50.0 );
2726
var z;
28-
var w;
2927
var i;
30-
3128
for ( i = 0; i < 100; i++ ) {
32-
re = ( randu()*100.0 ) - 50.0;
33-
im = ( randu()*100.0 ) - 50.0;
34-
z = new Complex64( re, im );
35-
w = cfloorf( z );
36-
console.log( 'cfloorf(%s) = %s', z.toString(), w.toString() );
29+
z = new Complex64( rand(), rand() );
30+
console.log( 'cfloorf(%s) = %s', z, cfloorf( z ) );
3731
}

lib/node_modules/@stdlib/math/base/special/cfloorf/include.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2023 The Stdlib Authors.
3+
# Copyright (c) 2024 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/math/base/special/cfloorf/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* var cfloorf = require( '@stdlib/math/base/special/cfloorf' );
4646
*
4747
* var v = cfloorf( new Complex64( 9.99999, 0.1 ) );
48-
* // returns <Complex128>
48+
* // returns <Complex64>
4949
*
5050
* var re = real( v );
5151
* // returns 9.0

0 commit comments

Comments
 (0)