Skip to content
Open
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
25 changes: 25 additions & 0 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17020,6 +17020,8 @@
constexpr resize_t<(basic_mask<Bytes, Abis>::size() + ...),
basic_mask<Bytes, Abis...[0]>> cat(const basic_mask<Bytes, Abis>&...) noexcept;

template<class T> constexpr T iota = @\seebelow@;

// \ref{simd.alg}, algorithms
template<class T, class Abi>
constexpr basic_vec<T, Abi>
Expand Down Expand Up @@ -19785,6 +19787,29 @@
pack.
\end{itemdescr}

\indexlibrarymember{iota}{simd}
\begin{itemdecl}
template<class T> constexpr T iota = @\seebelow@;
\end{itemdecl}

\begin{itemdescr}
\pnum
\mandates
Either \tcode{T} is vectorizable and \tcode{is_arithmetic_v<T>} is \tcode{true}, or
\begin{itemize}
\item \tcode{T} is an enabled specialization of basic_vec,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\item \tcode{T} is an enabled specialization of basic_vec,
\item \tcode{T} is an enabled specialization of \tcode{basic_vec},

\item \tcode{is_arithmetic_v<typename T::value_type>} is \tcode{true}, and
\item $\tcode{T::size() - 1} \lt \tcode{numeric_limits<typename T::value_type>::max()}$.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\item $\tcode{T::size() - 1} \lt \tcode{numeric_limits<typename T::value_type>::max()}$.
\item $\tcode{T::size() - 1} \le \tcode{numeric_limits<typename T::value_type>::max()}$.

\end{itemize}

\pnum
\remarks
If \tcode{is_arithmetic_v<T>} is \tcode{true},
the value of \tcode{iota<T>} is equal to \tcode{T()}.
Otherwise, the value of \tcode{iota<T>} is equal to
\tcode{T([](typename T::value_type i) { return i; })}.
\end{itemdescr}

\rSec3[simd.alg]{Algorithms}

\indexlibrarymember{min}{simd}
Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@
#define @\defnlibxname{cpp_lib_shared_ptr_weak_type}@ 201606L // also in \libheader{memory}
#define @\defnlibxname{cpp_lib_shared_timed_mutex}@ 201402L // also in \libheader{shared_mutex}
#define @\defnlibxname{cpp_lib_shift}@ 202202L // also in \libheader{algorithm}
#define @\defnlibxname{cpp_lib_simd}@ 202603L // also in \libheader{simd}
#define @\defnlibxname{cpp_lib_simd}@ 202606L // also in \libheader{simd}
#define @\defnlibxname{cpp_lib_simd_complex}@ 202502L // also in \libheader{simd}
#define @\defnlibxname{cpp_lib_simd_permutations}@ 202506L // also in \libheader{simd}
#define @\defnlibxname{cpp_lib_smart_ptr_for_overwrite}@ 202002L // also in \libheader{memory}
Expand Down
Loading