Commit 412510c
committed
Fix output array for logical ops AND, OR and NEQ
Earlier, these functions were using binary_func macro which picks
output based on the input arrays types. However, as these are logical
operations which always result in boolean output, the correct macro to
use for this is overloaded_logic_func.
With this fix, ::and, ::or and ::neq functions have acquired an
additional feature i.e. the user can also use scalars as one of the
inputs of these functions.1 parent d9ae5b4 commit 412510c
1 file changed
+24
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | 319 | | |
331 | 320 | | |
332 | 321 | | |
| |||
495 | 484 | | |
496 | 485 | | |
497 | 486 | | |
498 | | - | |
| 487 | + | |
499 | 488 | | |
500 | 489 | | |
501 | 490 | | |
| |||
563 | 552 | | |
564 | 553 | | |
565 | 554 | | |
566 | | - | |
| 555 | + | |
567 | 556 | | |
568 | 557 | | |
569 | 558 | | |
570 | 559 | | |
571 | 560 | | |
572 | | - | |
| 561 | + | |
573 | 562 | | |
574 | 563 | | |
575 | 564 | | |
576 | 565 | | |
577 | 566 | | |
578 | | - | |
| 567 | + | |
579 | 568 | | |
580 | 569 | | |
581 | 570 | | |
582 | 571 | | |
583 | 572 | | |
584 | | - | |
| 573 | + | |
585 | 574 | | |
586 | 575 | | |
587 | 576 | | |
588 | 577 | | |
589 | 578 | | |
590 | | - | |
| 579 | + | |
591 | 580 | | |
592 | 581 | | |
593 | 582 | | |
594 | 583 | | |
595 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
596 | 603 | | |
597 | 604 | | |
598 | 605 | | |
| |||
0 commit comments