Skip to content

Commit 068956c

Browse files
committed
chore: stuff from code review
1 parent 6a21435 commit 068956c

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
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
@@ -29,7 +29,7 @@ The inverse (or reciprocal) of a non-zero complex number `z = a + bi` is defined
2929
<!-- <equation class="equation" label="eq:complex_inverse" align="center" raw="{\frac {1}{z}}=\frac{\bar{z}}{z{\bar{z}}} = \frac{a}{a^{2}+b^{2}} - \frac{b}{a^2+b^2}i." alt="Complex Inverse" > -->
3030

3131
<div class="equation" align="center" data-raw-text="{\frac {1}{z}}=\frac{\bar{z}}{z{\bar{z}}} = \frac{a}{a^{2}+b^{2}} - \frac{b}{a^2+b^2}i." data-equation="eq:complex_inverse">
32-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@026bc0ee34051ddb44f3222f620bc7a300b9799e/lib/node_modules/@stdlib/math/base/special/cinv/docs/img/equation_complex_inverse.svg" alt="Complex Inverse">
32+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@026bc0ee34051ddb44f3222f620bc7a300b9799e/lib/node_modules/@stdlib/math/base/special/cinvf/docs/img/equation_complex_inverse.svg" alt="Complex Inverse">
3333
<br>
3434
</div>
3535

@@ -180,7 +180,7 @@ int main() {
180180
stdlib_complex64( 3.14f, 1.5f ),
181181
stdlib_complex64( -3.14f, -1.5f ),
182182
stdlib_complex64( 0.0f, 0.0f ),
183-
stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )
183+
stdlib_complex64( 0.0f / 0.0f, 0.0f / 0.0f )
184184
};
185185
186186
stdlib_complex64_t v;

lib/node_modules/@stdlib/math/base/special/cinvf/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/cinvf/benchmark/c/native/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) 2021 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/cinvf/docs/types/index.d.ts

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) 2019 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/cinvf/docs/types/test.ts

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) 2019 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/cinvf/examples/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) 2023 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/cinvf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main() {
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/cinvf/lib/main.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
var absf = require( '@stdlib/math/base/special/absf' );
2424
var maxf = require( '@stdlib/math/base/special/maxf' );
25-
var FLOAT64_BIGGEST = require( '@stdlib/constants/float32/max' );
26-
var FLOAT64_SMALLEST = require( '@stdlib/constants/float32/smallest-normal' );
25+
var FLOAT32_BIGGEST = require( '@stdlib/constants/float32/max' );
26+
var FLOAT32_SMALLEST = require( '@stdlib/constants/float32/smallest-normal' );
2727
var EPS = require( '@stdlib/constants/float32/eps' );
2828
var Complex64 = require( '@stdlib/complex/float32/ctor' );
2929
var real = require( '@stdlib/complex/float32/real' );
@@ -32,8 +32,8 @@ var imag = require( '@stdlib/complex/float32/imag' );
3232

3333
// VARIABLES //
3434

35-
var LARGE_THRESHOLD = FLOAT64_BIGGEST * 0.5;
36-
var SMALL_THRESHOLD = FLOAT64_SMALLEST * ( 2.0 / EPS );
35+
var LARGE_THRESHOLD = FLOAT32_BIGGEST * 0.5;
36+
var SMALL_THRESHOLD = FLOAT32_SMALLEST * ( 2.0 / EPS );
3737
var RECIP_EPS_SQR = 2.0 / ( EPS * EPS );
3838

3939

@@ -73,7 +73,7 @@ function cinvf( z ) {
7373

7474
re = real( z );
7575
im = imag( z );
76-
ab = maxf( absf(re), absf(im) );
76+
ab = maxf( absf( re ), absf( im ) );
7777
s = 1.0;
7878
if ( ab >= LARGE_THRESHOLD ) {
7979
re *= 0.5;
@@ -86,12 +86,12 @@ function cinvf( z ) {
8686
}
8787
if ( absf( im ) <= absf( re ) ) {
8888
r = im / re;
89-
t = 1.0 / ( re + (im*r) );
89+
t = 1.0 / ( re + ( im * r) );
9090
re = t;
9191
im = -r * t;
9292
} else {
9393
r = re / im;
94-
t = 1.0 / ( im + (re*r) );
94+
t = 1.0 / ( im + ( re * r) );
9595
re = r * t;
9696
im = -t;
9797
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var addon = require( './../src/addon.node' );
3434
* @returns {Complex64} result
3535
*
3636
* @example
37-
* var Complex128 = require( '@stdlib/complex/float32/ctor' );
37+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
3838
* var real = require( '@stdlib/complex/float32/real' );
3939
* var imag = require( '@stdlib/complex/float32/imag' );
4040
*

lib/node_modules/@stdlib/math/base/special/cinvf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@stdlib/math/base/special/cinv",
2+
"name": "@stdlib/math/base/special/cinvf",
33
"version": "0.0.0",
44
"description": "Compute the inverse of a single-precision complex floating-point number.",
55
"license": "Apache-2.0",

0 commit comments

Comments
 (0)