|
23 | 23 | Input array.
|
24 | 24 |
|
25 | 25 | strideX: integer
|
26 |
| - Index increment for `x`. |
| 26 | + Stride length for `x`. |
27 | 27 |
|
28 | 28 | Returns
|
29 | 29 | -------
|
|
75 | 75 | Input array.
|
76 | 76 |
|
77 | 77 | strideX: integer
|
78 |
| - Index increment for `x`. |
| 78 | + Stride length for `x`. |
79 | 79 |
|
80 | 80 | offsetX: integer
|
81 | 81 | Starting index for `x`.
|
|
353 | 353 | Writes values to the underlying WebAssembly memory instance.
|
354 | 354 |
|
355 | 355 | The function infers element size (i.e., number of bytes per element) from
|
356 |
| - the data type of the input array. For example, if provided a Float64Array, |
357 |
| - the function writes each element as a double-precision floating-point number |
| 356 | + the data type of the input array. For example, if provided a Float32Array, |
| 357 | + the function writes each element as a single-precision floating-point number |
358 | 358 | to the underlying WebAssembly memory instance.
|
359 | 359 |
|
360 | 360 | In order to write elements as a different data type, you need to perform an
|
361 | 361 | explicit cast *before* calling this method. For example, in order to write
|
362 |
| - double-precision floating-point numbers contained in a Float64Array as |
363 |
| - signed 32-bit integers, you must first convert the Float64Array to an |
| 362 | + single-precision floating-point numbers contained in a Float32Array as |
| 363 | + signed 32-bit integers, you must first convert the Float32Array to an |
364 | 364 | Int32Array before passing the values to this method.
|
365 | 365 |
|
366 | 366 | If provided an array having an unknown or "generic" data type, elements are
|
|
392 | 392 | Reads values from the underlying WebAssembly memory instance.
|
393 | 393 |
|
394 | 394 | The function infers element size (i.e., number of bytes per element) from
|
395 |
| - the data type of the output array. For example, if provided a Float64Array, |
396 |
| - the function reads each element as a double-precision floating-point number |
| 395 | + the data type of the output array. For example, if provided a Float32Array, |
| 396 | + the function reads each element as a single-precision floating-point number |
397 | 397 | from the underlying WebAssembly memory instance.
|
398 | 398 |
|
399 | 399 | In order to read elements as a different data type, you need to perform an
|
400 | 400 | explicit cast *after* calling this method. For example, in order to read
|
401 |
| - double-precision floating-point numbers contained in a Float64Array as |
402 |
| - signed 32-bit integers, you must convert the Float64Array to an Int32Array |
| 401 | + single-precision floating-point numbers contained in a Float32Array as |
| 402 | + signed 32-bit integers, you must convert the Float32Array to an Int32Array |
403 | 403 | after reading memory values using this method.
|
404 | 404 |
|
405 | 405 | If provided an output array having an unknown or "generic" data type,
|
|
431 | 431 | [ 1, 2, 3, 4 ]
|
432 | 432 |
|
433 | 433 |
|
434 |
| -{{alias}}.Module.prototype.main( N, zap, zxp, dx ) |
| 434 | +{{alias}}.Module.prototype.main( N, ap, xp, sx ) |
435 | 435 | Scales a double-precision complex floating-point vector by a double-
|
436 | 436 | precision complex floating-point constant.
|
437 | 437 |
|
|
440 | 440 | N: integer
|
441 | 441 | Number of indexed elements.
|
442 | 442 |
|
443 |
| - zap: integer |
| 443 | + ap: integer |
444 | 444 | Pointer (i.e., byte offset) to a scalar complex constant.
|
445 | 445 |
|
446 |
| - zxp: integer |
| 446 | + xp: integer |
447 | 447 | Input array pointer (i.e., byte offset).
|
448 | 448 |
|
449 |
| - dx: integer |
450 |
| - Index increment for `x`. |
| 449 | + sx: integer |
| 450 | + Stride length for `x`. |
451 | 451 |
|
452 | 452 | Returns
|
453 | 453 | -------
|
454 |
| - zxp: integer |
| 454 | + xp: integer |
455 | 455 | Input array pointer (i.e., byte offset).
|
456 | 456 |
|
457 | 457 | Examples
|
|
486 | 486 | 6.0
|
487 | 487 |
|
488 | 488 |
|
489 |
| -{{alias}}.Module.prototype.ndarray( N, zap, zxp, dx, ox ) |
| 489 | +{{alias}}.Module.prototype.ndarray( N, ap, xp, sx, ox ) |
490 | 490 | Scales a double-precision complex floating-point vector by a double-
|
491 | 491 | precision complex floating-point constant using alternative indexing
|
492 | 492 | semantics.
|
|
496 | 496 | N: integer
|
497 | 497 | Number of indexed elements.
|
498 | 498 |
|
499 |
| - zap: integer |
| 499 | + ap: integer |
500 | 500 | Pointer (i.e., byte offset) to a scalar complex constant.
|
501 | 501 |
|
502 |
| - zxp: integer |
| 502 | + xp: integer |
503 | 503 | Input array pointer (i.e., byte offset).
|
504 | 504 |
|
505 |
| - dx: integer |
506 |
| - Index increment for `x`. |
| 505 | + sx: integer |
| 506 | + Stride length for `x`. |
507 | 507 |
|
508 | 508 | ox: integer
|
509 | 509 | Starting index for `x`.
|
510 | 510 |
|
511 | 511 | Returns
|
512 | 512 | -------
|
513 |
| - zxp: integer |
| 513 | + xp: integer |
514 | 514 | Input array pointer (i.e., byte offset).
|
515 | 515 |
|
516 | 516 | Examples
|
|
0 commit comments