|
36 | 36 | Returns:
|
37 | 37 | usm_narray:
|
38 | 38 | An array containing the element-wise absolute values.
|
39 |
| - For complex input, the absolute value is its magnitude. The data type |
40 |
| - of the returned array is determined by the Type Promotion Rules. |
| 39 | + For complex input, the absolute value is its magnitude. |
| 40 | + If `x` has a real-valued data type, the returned array has the |
| 41 | + same data type as `x`. If `x` has a complex floating-point data type, |
| 42 | + the returned array has a real-valued floating-point data type whose |
| 43 | + precision matches the precision of `x`. |
41 | 44 | """
|
42 | 45 |
|
43 | 46 | abs = UnaryElementwiseFunc("abs", ti._abs_result_type, ti._abs, _abs_docstring_)
|
|
133 | 136 | Default: "K".
|
134 | 137 | Returns:
|
135 | 138 | usm_narray:
|
136 |
| - An array containing the element-wise conjugate values. The data type |
137 |
| - of the returned array is determined by the Type Promotion Rules. |
| 139 | + An array containing the element-wise conjugate values. |
| 140 | + The returned array has the same data type as `x`. |
138 | 141 | """
|
139 | 142 |
|
140 | 143 | conj = UnaryElementwiseFunc(
|
|
216 | 219 | Returns:
|
217 | 220 | usm_narray:
|
218 | 221 | An array containing the result of element-wise equality comparison.
|
219 |
| - The data type of the returned array is determined by the |
220 |
| - Type Promotion Rules. |
| 222 | + The returned array has a data type of `bool`. |
221 | 223 | """
|
222 | 224 |
|
223 | 225 | equal = BinaryElementwiseFunc(
|
|
264 | 266 | Return:
|
265 | 267 | usm_ndarray:
|
266 | 268 | An array containing the element-wise exp(x)-1 values.
|
| 269 | + The data type of the returned array is determined by the Type |
| 270 | + Promotion Rules.. |
267 | 271 | """
|
268 | 272 |
|
269 | 273 | expm1 = UnaryElementwiseFunc(
|
|
288 | 292 | Second input array, also expected to have numeric data type.
|
289 | 293 | Returns:
|
290 | 294 | usm_narray:
|
291 |
| - an array containing the result of element-wise floor division. |
| 295 | + an array containing the result of element-wise floor division. |
292 | 296 | The data type of the returned array is determined by the Type
|
293 | 297 | Promotion Rules.
|
294 | 298 | """
|
|
319 | 323 | Returns:
|
320 | 324 | usm_narray:
|
321 | 325 | An array containing the result of element-wise greater-than comparison.
|
322 |
| - The data type of the returned array is determined by the |
323 |
| - Type Promotion Rules. |
| 326 | + The returned array has a data type of `bool`. |
324 | 327 | """
|
325 | 328 |
|
326 | 329 | greater = BinaryElementwiseFunc(
|
|
347 | 350 | usm_narray:
|
348 | 351 | An array containing the result of element-wise greater-than or equal-to
|
349 | 352 | comparison.
|
350 |
| - The data type of the returned array is determined by the |
351 |
| - Type Promotion Rules. |
| 353 | + The returned array has a data type of `bool`. |
352 | 354 | """
|
353 | 355 |
|
354 | 356 | greater_equal = BinaryElementwiseFunc(
|
|
376 | 378 | Returns:
|
377 | 379 | usm_narray:
|
378 | 380 | An array containing the element-wise imaginary component of input.
|
379 |
| - The data type of the returned array is determined |
380 |
| - by the Type Promotion Rules. |
| 381 | + If the input is a real-valued data type, the returned array has |
| 382 | + the same datat type. If the input is a complex floating-point |
| 383 | + data type, the returned array has a floating-point data type |
| 384 | + with the same floating-point precision as complex input. |
381 | 385 | """
|
382 | 386 |
|
383 | 387 | imag = UnaryElementwiseFunc(
|
|
403 | 407 | usm_narray:
|
404 | 408 | An array which is True where `x` is not positive infinity,
|
405 | 409 | negative infinity, or NaN, False otherwise.
|
406 |
| - The data type of the returned array is boolean. |
| 410 | + The data type of the returned array is `bool`. |
407 | 411 | """
|
408 | 412 |
|
409 | 413 | isfinite = UnaryElementwiseFunc(
|
|
428 | 432 | Returns:
|
429 | 433 | usm_narray:
|
430 | 434 | An array which is True where `x` is positive or negative infinity,
|
431 |
| - False otherwise. The data type of the returned array is boolean. |
| 435 | + False otherwise. The data type of the returned array is `bool`. |
432 | 436 | """
|
433 | 437 |
|
434 | 438 | isinf = UnaryElementwiseFunc(
|
|
453 | 457 | Returns:
|
454 | 458 | usm_narray:
|
455 | 459 | An array which is True where x is NaN, False otherwise.
|
456 |
| - The data type of the returned array is boolean. |
| 460 | + The data type of the returned array is `bool`. |
457 | 461 | """
|
458 | 462 |
|
459 | 463 | isnan = UnaryElementwiseFunc(
|
|
481 | 485 | Returns:
|
482 | 486 | usm_narray:
|
483 | 487 | An array containing the result of element-wise less-than comparison.
|
484 |
| - The data type of the returned array is determined by the |
485 |
| - Type Promotion Rules. |
| 488 | + The returned array has a data type of `bool`. |
486 | 489 | """
|
487 | 490 |
|
488 | 491 | less = BinaryElementwiseFunc(
|
|
508 | 511 | Returns:
|
509 | 512 | usm_narray:
|
510 | 513 | An array containing the result of element-wise less-than or equal-to
|
511 |
| - comparison. |
512 |
| - The data type of the returned array is determined by the |
513 |
| - Type Promotion Rules. |
| 514 | + comparison. The returned array has a data type of `bool`. |
514 | 515 | """
|
515 | 516 |
|
516 | 517 | less_equal = BinaryElementwiseFunc(
|
|
536 | 537 | Return:
|
537 | 538 | usm_ndarray:
|
538 | 539 | An array containing the element-wise natural logarithm values.
|
| 540 | + The data type of the returned array is determined by the Type |
| 541 | + Promotion Rules. |
539 | 542 | """
|
540 | 543 |
|
541 | 544 | log = UnaryElementwiseFunc("log", ti._log_result_type, ti._log, _log_docstring)
|
|
555 | 558 | Default: "K".
|
556 | 559 | Return:
|
557 | 560 | usm_ndarray:
|
558 |
| - An array containing the element-wise log(1+x) values. |
| 561 | + An array containing the element-wise log(1+x) values. The data type |
| 562 | + of the returned array is determined by the Type Promotion Rules. |
559 | 563 | """
|
560 | 564 |
|
561 | 565 | log1p = UnaryElementwiseFunc(
|
|
638 | 642 | Returns:
|
639 | 643 | usm_narray:
|
640 | 644 | an array containing the result of element-wise inequality comparison.
|
641 |
| - The data type of the returned array is determined by the |
642 |
| - Type Promotion Rules. |
| 645 | + The returned array has a data type of `bool`. |
643 | 646 | """
|
644 | 647 |
|
645 | 648 | not_equal = BinaryElementwiseFunc(
|
|
669 | 672 | Default: "K".
|
670 | 673 | Returns:
|
671 | 674 | usm_narray:
|
672 |
| - An array containing the element-wise projection. The data |
673 |
| - type of the returned array is determined by the Type Promotion Rules. |
| 675 | + An array containing the element-wise projection. |
| 676 | + The returned array has the same data type as `x`. |
674 | 677 | """
|
675 | 678 |
|
676 | 679 | proj = UnaryElementwiseFunc(
|
|
694 | 697 | Default: "K".
|
695 | 698 | Returns:
|
696 | 699 | usm_narray:
|
697 |
| - An array containing the element-wise real component of input. The data |
698 |
| - type of the returned array is determined by the Type Promotion Rules. |
| 700 | + An array containing the element-wise real component of input. |
| 701 | + If the input is a real-valued data type, the returned array has |
| 702 | + the same datat type. If the input is a complex floating-point |
| 703 | + data type, the returned array has a floating-point data type |
| 704 | + with the same floating-point precision as complex input. |
699 | 705 | """
|
700 | 706 |
|
701 | 707 | real = UnaryElementwiseFunc(
|
|
0 commit comments