Skip to content

Commit 603897b

Browse files
committed
chore: stuff from code review
1 parent 5e99120 commit 603897b

File tree

12 files changed

+41
-189
lines changed

12 files changed

+41
-189
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ var v = cinvf( new Complex64( 2.0, 4.0 ) );
6060
// returns <Complex64>
6161

6262
var re = real( v );
63-
// returns 0.10000000149011612
63+
// returns ~0.1
6464

6565
var im = imag( v );
66-
// returns -0.20000000298023224
66+
// returns ~-0.2
6767
```
6868

6969
</section>

lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/base/uniform' );
2525
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var Complex64 = require( '@stdlib/complex/float32/ctor' );
27-
var real = require( '@stdlib/complex/float64/real' );
28-
var imag = require( '@stdlib/complex/float64/imag' );
27+
var real = require( '@stdlib/complex/float32/real' );
28+
var imag = require( '@stdlib/complex/float32/imag' );
2929
var pkg = require( './../package.json' ).name;
3030
var cinvf = require( './../lib' );
3131

@@ -44,7 +44,7 @@ bench( pkg, function benchmark( b ) {
4444

4545
b.tic();
4646
for ( i = 0; i < b.iterations; i++ ) {
47-
y = cinvf( values[ i%values.length ] );
47+
y = cinvf( values[ i % values.length ] );
4848
if ( isnanf( real( y ) ) ) {
4949
b.fail( 'should not return NaN' );
5050
}

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

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

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

lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/julia/REQUIRE

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/julia/benchmark.jl

Lines changed: 0 additions & 144 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ var i;
2929
for ( i = 0; i < 100; i++ ) {
3030
z1 = new Complex64( uniform( -50.0, 50.0 ), uniform( -50.0, 50.0 ) );
3131
z2 = cinvf( z1 );
32-
3332
console.log( '1.0 / (%s) = %s', z1.toString(), z2.toString() );
3433
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
* // returns <Complex64>
3434
*
3535
* var re = real( v );
36-
* // returns 0.10000000149011612
36+
* // returns ~0.1
3737
*
3838
* var im = imag( v );
39-
* // returns -0.20000000298023224
39+
* // returns ~-0.2
4040
*/
4141

4242
// MODULES //

lib/node_modules/@stdlib/math/base/special/cinvf/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ var RECIP_EPS_SQR = 2.0 / ( EPS * EPS );
5858
* // returns <Complex64>
5959
*
6060
* var re = real( v );
61-
* // returns 0.10000000149011612
61+
* // returns ~0.1
6262
*
6363
* var im = imag( v );
64-
* // returns -0.20000000298023224
64+
* // returns ~-0.2
6565
*/
6666
function cinvf( z ) {
6767
var ab;

lib/node_modules/@stdlib/math/base/special/cinvf/lib/native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ var addon = require( './../src/addon.node' );
4242
* // returns <Complex64>
4343
*
4444
* var re = real( v );
45-
* // returns 0.10000000149011612
45+
* // returns ~0.1
4646
*
4747
* var im = imag( v );
48-
* // returns -0.20000000298023224
48+
* // returns ~-0.2
4949
*/
5050
function cinvf( z ) {
5151
var v = addon( z );

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "stdlib/constants/float32/smallest_normal.h"
2525
#include "stdlib/complex/float32/ctor.h"
2626
#include "stdlib/complex/float32/reim.h"
27-
#include <math.h>
2827

2928

3029
// VARIABLES //
@@ -37,7 +36,7 @@ static const float RECIP_EPS_SQR = 2.0f / ( STDLIB_CONSTANT_FLOAT32_EPS * STDLIB
3736
// MAIN //
3837

3938
/**
40-
Computes the inverse of a single-precision complex floating-point number.
39+
* Computes the inverse of a single-precision complex floating-point number.
4140
*
4241
* ## References
4342
*

0 commit comments

Comments
 (0)