Skip to content

Commit bd6f38c

Browse files
committed
refactor: strided.js variables
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - 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 bfd26de commit bd6f38c

File tree

1 file changed

+9
-9
lines changed
  • lib/node_modules/@stdlib/math/base/special/csignumf/lib

1 file changed

+9
-9
lines changed

lib/node_modules/@stdlib/math/base/special/csignumf/lib/strided.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ var csignumf = require( './main.js' );
3232
* Computes the signum of a single-precision complex number stored in a real-valued strided array view and assigns the result to a provided strided output array.
3333
*
3434
* @param {Float32Array} z - complex number view (interleaved real and imaginary)
35-
* @param {integer} strideZ - stride length for `z`
36-
* @param {NonNegativeInteger} offsetZ - starting index for `z`
35+
* @param {integer} sz - stride length for `z`
36+
* @param {NonNegativeInteger} oz - starting index for `z`
3737
* @param {Float32Array} out - output array
38-
* @param {integer} strideOut - stride length for `out`
39-
* @param {NonNegativeInteger} offsetOut - starting index for `out`
38+
* @param {integer} so - stride length for `out`
39+
* @param {NonNegativeInteger} oo - starting index for `out`
4040
* @returns {Float32Array} output array
4141
*
4242
* @example
@@ -50,17 +50,17 @@ var csignumf = require( './main.js' );
5050
* console.log( out );
5151
* // => <Float32Array>[ ~0.6, ~0.8 ]
5252
*/
53-
function strided( z, strideZ, offsetZ, out, strideOut, offsetOut ) {
53+
function strided( z, sz, oz, out, so, oo ) {
5454
var result;
5555
var re;
5656
var im;
5757

58-
re = z[ offsetZ ];
59-
im = z[ offsetZ + strideZ ];
58+
re = z[ oz ];
59+
im = z[ oz + sz ];
6060
result = csignumf( new Complex64( re, im ) );
6161

62-
out[ offsetOut ] = real( result );
63-
out[ offsetOut + strideOut ] = imag( result );
62+
out[ oo ] = real( result );
63+
out[ oo + so ] = imag( result );
6464

6565
return out;
6666
}

0 commit comments

Comments
 (0)