| 1589 | } |
| 1590 | |
| 1591 | static std::vector<int64_t> find_permutation(const std::vector<dimension::sub>& subs) |
| 1592 | { |
| 1593 | auto compare_sub = [](auto f) { |
| 1594 | return by(f, [](const dimension::sub& s) -> const auto& { return s.axis; }); |
| 1595 | }; |
| 1596 | return sort_permutation(subs, compare_sub(std::less<>{})); |
| 1597 | } |
| 1598 | |
| 1599 | // This will generate the operators to apply the shape transformation that is |
| 1600 | // represented by this class. This is the order of operators that will be |
no test coverage detected