| 643 | }; |
| 644 | |
| 645 | template<typename ArrayType> void array_integer(const ArrayType& m) |
| 646 | { |
| 647 | Index rows = m.rows(); |
| 648 | Index cols = m.cols(); |
| 649 | |
| 650 | ArrayType m1 = ArrayType::Random(rows, cols), |
| 651 | m2(rows, cols); |
| 652 | |
| 653 | m2 = m1.template shiftLeft<2>(); |
| 654 | VERIFY( (m2 == m1.unaryExpr(shift_left<2>())).all() ); |
| 655 | m2 = m1.template shiftLeft<9>(); |
| 656 | VERIFY( (m2 == m1.unaryExpr(shift_left<9>())).all() ); |
| 657 | |
| 658 | m2 = m1.template shiftRight<2>(); |
| 659 | VERIFY( (m2 == m1.unaryExpr(arithmetic_shift_right<2>())).all() ); |
| 660 | m2 = m1.template shiftRight<9>(); |
| 661 | VERIFY( (m2 == m1.unaryExpr(arithmetic_shift_right<9>())).all() ); |
| 662 | } |
| 663 | |
| 664 | EIGEN_DECLARE_TEST(array_cwise) |
| 665 | { |
no test coverage detected