| 128 | } |
| 129 | |
| 130 | std::vector<int64> ComposePermutations(absl::Span<const int64> p1, |
| 131 | absl::Span<const int64> p2) { |
| 132 | CHECK_EQ(p1.size(), p2.size()); |
| 133 | std::vector<int64> output; |
| 134 | for (size_t i = 0; i < p1.size(); ++i) { |
| 135 | output.push_back(p1.at(p2.at(i))); |
| 136 | } |
| 137 | return output; |
| 138 | } |
| 139 | |
| 140 | bool IsIdentityPermutation(absl::Span<const int64> permutation) { |
| 141 | for (int64 i = 0; i < permutation.size(); ++i) { |
no test coverage detected