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

[mdspan.sub] Change to "unit-stride slice for mapping" #7505

Merged
merged 1 commit into from
Dec 20, 2024
Merged
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
32 changes: 16 additions & 16 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24361,7 +24361,7 @@
\tcode{is_convertible_v<$S_k$, full_ext\-ent_t>} is \tcode{true}; and
\item
for $k$ equal to \tcode{SubExtents::rank() - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
\begin{note}
If the above conditions are true,
Expand All @@ -24376,17 +24376,17 @@
\end{codeblock}
if for a value $u$ for which $u+1$ is
the smallest value $p$ larger than zero
for which $S_p$ is a unit-stride slice for \tcode{decltype(*this)},
for which $S_p$ is a unit-stride slice for \tcode{mapping},
the following conditions are met:
\begin{itemize}
\item
$S_0$ is a unit-stride slice for \tcode{decltype(*this)}; and
$S_0$ is a unit-stride slice for \tcode{mapping}; and
\item
for each $k$ in the range \range{$u$ + 1}{$u$ + SubExtents::rank() - 1},
\tcode{is_convertible_v<$S_k$, full_extent_t>} is \tcode{true}; and
\item
for $k$ equal to \tcode{$u$ + SubExtents::rank() - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
and where \tcode{S_static} is:
\begin{itemize}
Expand Down Expand Up @@ -24437,7 +24437,7 @@
\tcode{is_convertible_v<$S_k$, full_extent_t>} is \tcode{true}; and
\item
for $k$ equal to \exposid{_rank} - \tcode{SubExtents::rank()},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
\begin{note}
If the above conditions are true,
Expand All @@ -24452,19 +24452,19 @@
\end{codeblock}
if for a value $u$ for which $\exposid{rank_} - u - 2$ is
the largest value $p$ smaller than \tcode{\exposid{rank_} - 1}
for which $S_p$ is a unit-stride slice for \tcode{decltype(*this)},
for which $S_p$ is a unit-stride slice for \tcode{mapping},
the following conditions are met:
\begin{itemize}
\item
for $k$ equal to \tcode{\exposid{rank_} - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)}; and
$S_k$ is a unit-stride slice for \tcode{mapping}; and
\item
for each $k$ in the range
\range{\exposid{rank_} - SubExtents::rank() - $u$ + 1}{\exposid{rank_} - $u$ - 1},
\tcode{is_con\-vertible_v<$S_k$, full_extent_t>} is \tcode{true}; and
\item
for $k$ equal to \tcode{\exposid{rank_} - SubExtents::rank() - $u$},\newline
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
and where \tcode{S_static} is:
\begin{itemize}
Expand Down Expand Up @@ -24540,7 +24540,7 @@
\item
\tcode{SubExtents::rank() == 1} is \tcode{true} and
\item
$S_0$ is a unit-stride slice for \tcode{decltype(*this)};
$S_0$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
\item
otherwise,
Expand All @@ -24550,17 +24550,17 @@
\end{codeblock}
if for a value $u$
for which \tcode{$u$ + 1} is the smallest value $p$ larger than zero
for which $S_p$ is a unit-stride slice for \tcode{decltype(*this)},
for which $S_p$ is a unit-stride slice for \tcode{mapping},
the following conditions are met:
\begin{itemize}
\item
$S_0$ is a unit-stride slice for \tcode{decltype(*this)}; and
$S_0$ is a unit-stride slice for \tcode{mapping}; and
\item
for each $k$ in the range \range{$u$ + 1}{$u$ + SubExtents::rank() - 1},
\tcode{is_convertible_v<$S_k$, full_extent_t>} is \tcode{true}; and
\item
for $k$ equal to \tcode{$u$ + SubExtents::rank() - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
where \tcode{S_static} is:
\begin{itemize}
Expand Down Expand Up @@ -24612,7 +24612,7 @@
\tcode{SubExtents::rank() == 1} is \tcode{true} and
\item
for $k$ equal to \tcode{\exposid{rank_} - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
\item
otherwise,
Expand All @@ -24623,19 +24623,19 @@
if for a value $u$
for which \tcode{\exposid{rank_} - $u$ - 2}
is the largest value p smaller than \tcode{\exposid{rank_} - 1}
for which $S_p$ is a unit-stride slice for \tcode{decltype(*this)},
for which $S_p$ is a unit-stride slice for \tcode{mapping},
the following conditions are met:
\begin{itemize}
\item
for $k$ equal to \tcode{\exposid{rank_} - 1},
$S_k$ is a unit-stride slice for \tcode{decltype(*this)}; and
$S_k$ is a unit-stride slice for \tcode{mapping}; and
\item
for each $k$ in the range
\range{\exposid{rank_} - SubExtents::rank() - $u$ + 1}{\exposid{rank_} - $u$ - 1)},
\tcode{is_convertible_v<$S_k$, full_extent_t>} is \tcode{true}; and
\item
for $k$ equal to \tcode{\exposid{rank_} - SubExtents::rank() - $u$},\newline
$S_k$ is a unit-stride slice for \tcode{decltype(*this)};
$S_k$ is a unit-stride slice for \tcode{mapping};
\end{itemize}
and where \tcode{S_static} is:
\begin{itemize}
Expand Down
Loading