ORNL / cpp-proposals-pub

Collaborating on papers for the ISO C++ committee - public repo
26 stars 26 forks source link

Add transposed special cases for P2642 layouts #448

Open mhoemmen opened 6 months ago

mhoemmen commented 6 months ago

Add transposed special cases for P2642 layouts

Problem

P1673's transposed doesn't have special cases for P2642's layout_left_padded and layout_right_padded. As a result, transposed will return layout_transpose of these layouts, even though those layouts are more specialized than layout_stride and could thus easily have special cases.

P1673 used to have special cases for these two layouts, until the two layouts were moved from P1673 to P2642.

Suggested fix

Add special cases to [linalg.transp.transposed], paragraphs 3 and 4.