|
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_)
|
|
131 | 134 | Default: "K".
|
132 | 135 | Returns:
|
133 | 136 | usm_narray:
|
134 |
| - An array containing the element-wise ceiling of input array. |
| 137 | + An array containing the ceiling of each element in `x`. |
135 | 138 | The returned array has the same data type as `x`.
|
136 | 139 | """
|
137 | 140 |
|
|
156 | 159 | Default: "K".
|
157 | 160 | Returns:
|
158 | 161 | usm_narray:
|
159 |
| - An array containing the element-wise conjugate values. The data type |
160 |
| - of the returned array is determined by the Type Promotion Rules. |
| 162 | + An array containing the element-wise conjugate values. |
| 163 | + The returned array has the same data type as `x`. |
161 | 164 | """
|
162 | 165 |
|
163 | 166 | conj = UnaryElementwiseFunc(
|
|
239 | 242 | Returns:
|
240 | 243 | usm_narray:
|
241 | 244 | An array containing the result of element-wise equality comparison.
|
242 |
| - The data type of the returned array is determined by the |
243 |
| - Type Promotion Rules. |
| 245 | + The returned array has a data type of `bool`. |
244 | 246 | """
|
245 | 247 |
|
246 | 248 | equal = BinaryElementwiseFunc(
|
|
287 | 289 | Return:
|
288 | 290 | usm_ndarray:
|
289 | 291 | An array containing the element-wise exp(x)-1 values.
|
| 292 | + The data type of the returned array is determined by the Type |
| 293 | + Promotion Rules.. |
290 | 294 | """
|
291 | 295 |
|
292 | 296 | expm1 = UnaryElementwiseFunc(
|
|
311 | 315 | Default: "K".
|
312 | 316 | Returns:
|
313 | 317 | usm_narray:
|
314 |
| - An array containing the element-wise floor of input array. |
| 318 | + An array containing the floor of each element in `x`. |
315 | 319 | The returned array has the same data type as `x`.
|
316 | 320 | """
|
317 | 321 |
|
|
334 | 338 | Second input array, also expected to have numeric data type.
|
335 | 339 | Returns:
|
336 | 340 | usm_narray:
|
337 |
| - an array containing the result of element-wise floor division. |
| 341 | + an array containing the result of element-wise floor division. |
338 | 342 | The data type of the returned array is determined by the Type
|
339 | 343 | Promotion Rules.
|
340 | 344 | """
|
|
365 | 369 | Returns:
|
366 | 370 | usm_narray:
|
367 | 371 | An array containing the result of element-wise greater-than comparison.
|
368 |
| - The data type of the returned array is determined by the |
369 |
| - Type Promotion Rules. |
| 372 | + The returned array has a data type of `bool`. |
370 | 373 | """
|
371 | 374 |
|
372 | 375 | greater = BinaryElementwiseFunc(
|
|
393 | 396 | usm_narray:
|
394 | 397 | An array containing the result of element-wise greater-than or equal-to
|
395 | 398 | comparison.
|
396 |
| - The data type of the returned array is determined by the |
397 |
| - Type Promotion Rules. |
| 399 | + The returned array has a data type of `bool`. |
398 | 400 | """
|
399 | 401 |
|
400 | 402 | greater_equal = BinaryElementwiseFunc(
|
|
422 | 424 | Returns:
|
423 | 425 | usm_narray:
|
424 | 426 | An array containing the element-wise imaginary component of input.
|
425 |
| - The data type of the returned array is determined |
426 |
| - by the Type Promotion Rules. |
| 427 | + If the input is a real-valued data type, the returned array has |
| 428 | + the same datat type. If the input is a complex floating-point |
| 429 | + data type, the returned array has a floating-point data type |
| 430 | + with the same floating-point precision as complex input. |
427 | 431 | """
|
428 | 432 |
|
429 | 433 | imag = UnaryElementwiseFunc(
|
|
449 | 453 | usm_narray:
|
450 | 454 | An array which is True where `x` is not positive infinity,
|
451 | 455 | negative infinity, or NaN, False otherwise.
|
452 |
| - The data type of the returned array is boolean. |
| 456 | + The data type of the returned array is `bool`. |
453 | 457 | """
|
454 | 458 |
|
455 | 459 | isfinite = UnaryElementwiseFunc(
|
|
474 | 478 | Returns:
|
475 | 479 | usm_narray:
|
476 | 480 | An array which is True where `x` is positive or negative infinity,
|
477 |
| - False otherwise. The data type of the returned array is boolean. |
| 481 | + False otherwise. The data type of the returned array is `bool`. |
478 | 482 | """
|
479 | 483 |
|
480 | 484 | isinf = UnaryElementwiseFunc(
|
|
499 | 503 | Returns:
|
500 | 504 | usm_narray:
|
501 | 505 | An array which is True where x is NaN, False otherwise.
|
502 |
| - The data type of the returned array is boolean. |
| 506 | + The data type of the returned array is `bool`. |
503 | 507 | """
|
504 | 508 |
|
505 | 509 | isnan = UnaryElementwiseFunc(
|
|
527 | 531 | Returns:
|
528 | 532 | usm_narray:
|
529 | 533 | An array containing the result of element-wise less-than comparison.
|
530 |
| - The data type of the returned array is determined by the |
531 |
| - Type Promotion Rules. |
| 534 | + The returned array has a data type of `bool`. |
532 | 535 | """
|
533 | 536 |
|
534 | 537 | less = BinaryElementwiseFunc(
|
|
554 | 557 | Returns:
|
555 | 558 | usm_narray:
|
556 | 559 | An array containing the result of element-wise less-than or equal-to
|
557 |
| - comparison. |
558 |
| - The data type of the returned array is determined by the |
559 |
| - Type Promotion Rules. |
| 560 | + comparison. The returned array has a data type of `bool`. |
560 | 561 | """
|
561 | 562 |
|
562 | 563 | less_equal = BinaryElementwiseFunc(
|
|
582 | 583 | Return:
|
583 | 584 | usm_ndarray:
|
584 | 585 | An array containing the element-wise natural logarithm values.
|
| 586 | + The data type of the returned array is determined by the Type |
| 587 | + Promotion Rules. |
585 | 588 | """
|
586 | 589 |
|
587 | 590 | log = UnaryElementwiseFunc("log", ti._log_result_type, ti._log, _log_docstring)
|
|
601 | 604 | Default: "K".
|
602 | 605 | Return:
|
603 | 606 | usm_ndarray:
|
604 |
| - An array containing the element-wise log(1+x) values. |
| 607 | + An array containing the element-wise log(1+x) values. The data type |
| 608 | + of the returned array is determined by the Type Promotion Rules. |
605 | 609 | """
|
606 | 610 |
|
607 | 611 | log1p = UnaryElementwiseFunc(
|
|
684 | 688 | Returns:
|
685 | 689 | usm_narray:
|
686 | 690 | an array containing the result of element-wise inequality comparison.
|
687 |
| - The data type of the returned array is determined by the |
688 |
| - Type Promotion Rules. |
| 691 | + The returned array has a data type of `bool`. |
689 | 692 | """
|
690 | 693 |
|
691 | 694 | not_equal = BinaryElementwiseFunc(
|
|
715 | 718 | Default: "K".
|
716 | 719 | Returns:
|
717 | 720 | usm_narray:
|
718 |
| - An array containing the element-wise projection. The data |
719 |
| - type of the returned array is determined by the Type Promotion Rules. |
| 721 | + An array containing the element-wise projection. |
| 722 | + The returned array has the same data type as `x`. |
720 | 723 | """
|
721 | 724 |
|
722 | 725 | proj = UnaryElementwiseFunc(
|
|
740 | 743 | Default: "K".
|
741 | 744 | Returns:
|
742 | 745 | usm_narray:
|
743 |
| - An array containing the element-wise real component of input. The data |
744 |
| - type of the returned array is determined by the Type Promotion Rules. |
| 746 | + An array containing the element-wise real component of input. |
| 747 | + If the input is a real-valued data type, the returned array has |
| 748 | + the same datat type. If the input is a complex floating-point |
| 749 | + data type, the returned array has a floating-point data type |
| 750 | + with the same floating-point precision as complex input. |
745 | 751 | """
|
746 | 752 |
|
747 | 753 | real = UnaryElementwiseFunc(
|
|
870 | 876 | Default: "K".
|
871 | 877 | Returns:
|
872 | 878 | usm_narray:
|
873 |
| - An array containing the element-wise truncated value of input array. |
| 879 | + An array containing the truncated value of each element in `x`. |
874 | 880 | The returned array has the same data type as `x`.
|
875 | 881 | """
|
876 | 882 |
|
|
0 commit comments