@@ -243,42 +243,42 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/b
243243* Scales a double-precision complex floating-point vector by a double-precision floating-point constant.
244244*
245245* @param {PositiveInteger} N - number of indexed elements
246- * @param {number} da - constant
247- * @param {Complex128Array} zx - input array
248- * @param {integer} strideZX - `zx ` stride length
249- * @param {NonNegativeInteger} offsetZX - starting `zx ` index
246+ * @param {number} alpha - constant
247+ * @param {Complex128Array} x - input array
248+ * @param {integer} strideX - `x ` stride length
249+ * @param {NonNegativeInteger} offsetX - starting `x ` index
250250* @returns {Complex128Array} input array
251251*
252252* @example
253253* var Complex128Array = require( '@stdlib/array/complex128' );
254254* var Complex128 = require( '@stdlib/complex/float64/ctor' );
255255*
256- * var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
256+ * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
257257*
258- * zdscal( 3, 2.0, zx , 1, 0 );
259- * // zx => <Complex128Array>[ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
258+ * zdscal( 3, 2.0, x , 1, 0 );
259+ * // x => <Complex128Array>[ 2.0, 4.0, 6.0, 8.0, 10.0, 12.0 ]
260260*/
261- function zdscal( N, da, zx, strideZX, offsetZX ) {
262- var zx64 ;
261+ function zdscal( N, alpha, x, strideX, offsetX ) {
262+ var x64 ;
263263 var ix;
264264 var sx;
265265 var i;
266266
267- if ( N <= 0 || da === 1.0 ) {
268- return zx ;
267+ if ( N <= 0 || alpha === 1.0 ) {
268+ return x ;
269269 }
270270 // Reinterpret the input array as a real-valued array of interleaved real and imaginary components:
271- zx64 = reinterpret( zx , 0 );
271+ x64 = reinterpret( x , 0 );
272272
273273 // Adjust the stride and offset accordingly:
274- ix = offsetZX * 2;
275- sx = strideZX * 2;
274+ ix = offsetX * 2;
275+ sx = strideX * 2;
276276
277277 for ( i = 0; i < N; i++ ) {
278- scale( da, zx64 , 1, ix, zx64 , 1, ix );
278+ scale( alpha, x64 , 1, ix, x64 , 1, ix );
279279 ix += sx;
280280 }
281- return zx ;
281+ return x ;
282282}
283283
284284
@@ -292,7 +292,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">blas/b
292292 < div class ='footer quiet pad2 space-top1 center small '>
293293 Code coverage generated by
294294 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
295- at 2025-04-02T23:17:25.150Z
295+ at 2025-06-20T11:50:56.948Z
296296 </ div >
297297 < script src ="../../../../prettify.js "> </ script >
298298 < script >
0 commit comments