Files
cppdraft_translate/cppdraft/linalg/transp/helpers.md
2025-10-25 03:02:53 +03:00

1.5 KiB

[linalg.transp.helpers]

29 Numerics library [numerics]

29.9 Basic linear algebra algorithms [linalg]

29.9.10 Transpose in-place transformation [linalg.transp]

29.9.10.2 Exposition-only helpers for layout_transpose and transposed [linalg.transp.helpers]

1

#

The exposition-only transpose-extents function takes an extents object representing the extents of a matrix, and returns a new extents object representing the extents of the transpose of the matrix.

2

#

The exposition-only alias templatetranspose-extents-t gives the type of transpose-extents(e) for a given extents object e of type InputExtents.

🔗

template<class IndexType, size_t InputExtent0, size_t InputExtent1> constexpr extents<IndexType, InputExtent1, InputExtent0> transpose-extents(const extents<IndexType, InputExtent0, InputExtent1>& in); // exposition only

3

#

Returns: extents<IndexType, InputExtent1, InputExtent0>(in.extent(1), in.extent(0))

templateusing transpose-extents-t =decltype(transpose-extents(declval())); // exposition only