|
573 | 573 |
|
574 | 574 | # B16: ==== LOGICAL_AND (x1, x2)
|
575 | 575 | _logical_and_docstring_ = """
|
576 |
| -multiply(x1, x2, out=None, order='K') |
| 576 | +logical_and(x1, x2, out=None, order='K') |
577 | 577 |
|
578 |
| -Calculates the product for each element `x1_i` of the input array `x1` |
| 578 | +Computes the logical AND for each element `x1_i` of the input array `x1` |
579 | 579 | with the respective element `x2_i` of the input array `x2`.
|
580 | 580 |
|
581 | 581 | Args:
|
582 | 582 | x1 (usm_ndarray):
|
583 |
| - First input array, expected to have numeric data type. |
| 583 | + First input array. |
584 | 584 | x2 (usm_ndarray):
|
585 |
| - Second input array, also expected to have numeric data type. |
| 585 | + Second input array. |
586 | 586 | out ({None, usm_ndarray}, optional):
|
587 | 587 | Output array to populate.
|
588 | 588 | Array have the correct shape and the expected data type.
|
|
591 | 591 | Default: "K".
|
592 | 592 | Returns:
|
593 | 593 | usm_narray:
|
594 |
| - An array containing the element-wise products. The data type of |
595 |
| - the returned array is determined by the Type Promotion Rules. |
| 594 | + An array containing the element-wise logical AND results. |
596 | 595 | """
|
597 | 596 | logical_and = BinaryElementwiseFunc(
|
598 | 597 | "logical_and",
|
|
604 | 603 | # U24: ==== LOGICAL_NOT (x)
|
605 | 604 | _logical_not_docstring = """
|
606 | 605 | log(x, out=None, order='K')
|
607 |
| -Computes the natural logarithm element-wise. |
| 606 | +Computes the logical NOT for each element `x_i` of input array `x`. |
608 | 607 | Args:
|
609 | 608 | x (usm_ndarray):
|
610 |
| - Input array, expected to have numeric data type. |
| 609 | + Input array. |
611 | 610 | out (usm_ndarray):
|
612 | 611 | Output array to populate. Array must have the correct
|
613 | 612 | shape and the expected data type.
|
|
616 | 615 | Default: "K".
|
617 | 616 | Return:
|
618 | 617 | usm_ndarray:
|
619 |
| - An array containing the element-wise natural logarithm values. |
| 618 | + An array containing the element-wise logical NOT results. |
620 | 619 | """
|
621 | 620 |
|
622 | 621 | logical_not = UnaryElementwiseFunc(
|
|
628 | 627 |
|
629 | 628 | # B17: ==== LOGICAL_OR (x1, x2)
|
630 | 629 | _logical_or_docstring_ = """
|
631 |
| -multiply(x1, x2, out=None, order='K') |
| 630 | +logical_or(x1, x2, out=None, order='K') |
632 | 631 |
|
633 |
| -Calculates the product for each element `x1_i` of the input array `x1` |
| 632 | +Computes the logical OR for each element `x1_i` of the input array `x1` |
634 | 633 | with the respective element `x2_i` of the input array `x2`.
|
635 | 634 |
|
636 | 635 | Args:
|
637 | 636 | x1 (usm_ndarray):
|
638 |
| - First input array, expected to have numeric data type. |
| 637 | + First input array. |
639 | 638 | x2 (usm_ndarray):
|
640 |
| - Second input array, also expected to have numeric data type. |
| 639 | + Second input array. |
641 | 640 | out ({None, usm_ndarray}, optional):
|
642 | 641 | Output array to populate.
|
643 | 642 | Array have the correct shape and the expected data type.
|
|
646 | 645 | Default: "K".
|
647 | 646 | Returns:
|
648 | 647 | usm_narray:
|
649 |
| - An array containing the element-wise products. The data type of |
650 |
| - the returned array is determined by the Type Promotion Rules. |
| 648 | + An array containing the element-wise logical OR results. |
651 | 649 | """
|
652 | 650 | logical_or = BinaryElementwiseFunc(
|
653 | 651 | "logical_or",
|
|
658 | 656 |
|
659 | 657 | # B18: ==== LOGICAL_XOR (x1, x2)
|
660 | 658 | _logical_xor_docstring_ = """
|
661 |
| -multiply(x1, x2, out=None, order='K') |
| 659 | +logical_xor(x1, x2, out=None, order='K') |
662 | 660 |
|
663 |
| -Calculates the product for each element `x1_i` of the input array `x1` |
| 661 | +Computes the logical XOR for each element `x1_i` of the input array `x1` |
664 | 662 | with the respective element `x2_i` of the input array `x2`.
|
665 | 663 |
|
666 | 664 | Args:
|
667 | 665 | x1 (usm_ndarray):
|
668 |
| - First input array, expected to have numeric data type. |
| 666 | + First input array. |
669 | 667 | x2 (usm_ndarray):
|
670 |
| - Second input array, also expected to have numeric data type. |
| 668 | + Second input array. |
671 | 669 | out ({None, usm_ndarray}, optional):
|
672 | 670 | Output array to populate.
|
673 | 671 | Array have the correct shape and the expected data type.
|
|
676 | 674 | Default: "K".
|
677 | 675 | Returns:
|
678 | 676 | usm_narray:
|
679 |
| - An array containing the element-wise products. The data type of |
680 |
| - the returned array is determined by the Type Promotion Rules. |
| 677 | + An array containing the element-wise logical XOR results. |
681 | 678 | """
|
682 | 679 | logical_xor = BinaryElementwiseFunc(
|
683 | 680 | "logical_xor",
|
|
0 commit comments