Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P3222R0 Fix C++26 by adding transposed special cases for P2642 layouts #7492

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13066,6 +13066,14 @@
\item
otherwise, \tcode{layout_left} if \tcode{Layout} is \tcode{layout_right};
\item
otherwise, \tcode{layout_right_padded<PaddingValue>} if \tcode{Layout} is\newline
\tcode{layout_left_padded<PaddingValue>}
for some \tcode{size_t} value \tcode{PaddingValue};
\item
otherwise, \tcode{layout_left_padded<PaddingValue>} if \tcode{Layout} is\newline
\tcode{layout_right_padded<PaddingValue>}
for some \tcode{size_t} value \tcode{PaddingValue};
\item
otherwise, \tcode{layout_stride} if \tcode{Layout} is \tcode{layout_stride};
\item
otherwise,
Expand Down Expand Up @@ -13108,11 +13116,26 @@
a.accessor())
\end{codeblock}
\item
otherwise,
\begin{codeblock}
R(a.data_handle(), ReturnMapping(@\exposid{transpose-extents}@(a.mapping().extents()),
a.mapping().stride(1)), a.accessor())
\end{codeblock}
if \tcode{Layout} is \tcode{layout_left_padded<PaddingValue>}
for some \tcode{size_t} value \tcode{PaddingValue};
\item
otherwise,
\begin{codeblock}
R(a.data_handle(), ReturnMapping(@\exposid{transpose-extents}@(a.mapping().extents()),
a.mapping().stride(0)), a.accessor())
\end{codeblock}
if \tcode{Layout} is \tcode{layout_right_padded<PaddingValue>}
for some \tcode{size_t} value \tcode{PaddingValue};
\item
otherwise, if \tcode{Layout} is \tcode{layout_stride},
\begin{codeblock}
R(a.data_handle(), ReturnMapping(@\exposid{transpose-extents}@(a.mapping().extents()),
array{a.mapping().stride(1), a.mapping().stride(0)}),
a.accessor())
array{a.mapping().stride(1), a.mapping().stride(0)}), a.accessor())
\end{codeblock}
\item
otherwise, if \tcode{Layout} is a specialization of \tcode{layout_transpose},
Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@
#define @\defnlibxname{cpp_lib_jthread}@ 201911L // also in \libheader{stop_token}, \libheader{thread}
#define @\defnlibxname{cpp_lib_latch}@ 201907L // also in \libheader{latch}
#define @\defnlibxname{cpp_lib_launder}@ 201606L // freestanding, also in \libheader{new}
#define @\defnlibxname{cpp_lib_linalg}@ 202311L // also in \libheader{linalg}
#define @\defnlibxname{cpp_lib_linalg}@ 202411L // also in \libheader{linalg}
#define @\defnlibxname{cpp_lib_list_remove_return_type}@ 201806L // also in \libheader{forward_list}, \libheader{list}
#define @\defnlibxname{cpp_lib_logical_traits}@ 201510L // freestanding, also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_make_from_tuple}@ 201606L // freestanding, also in \libheader{tuple}
Expand Down
Loading