| 1728 | } |
| 1729 | |
| 1730 | shape_transform_descriptor shape_transform_descriptor::to_common_from_src() const |
| 1731 | { |
| 1732 | shape_transform_descriptor result; |
| 1733 | auto subs = get_all_subdimensions(this->dimensions); |
| 1734 | std::transform(subs.begin(), |
| 1735 | subs.end(), |
| 1736 | std::back_inserter(result.dimensions), |
| 1737 | [&](const auto& x) -> dimension { return {{x}}; }); |
| 1738 | result.rank = this->rank; |
| 1739 | result.simplify(); |
| 1740 | return result; |
| 1741 | } |
| 1742 | shape_transform_descriptor shape_transform_descriptor::to_common_from_dst() const |
| 1743 | { |
| 1744 | shape_transform_descriptor result; |