-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harmonize constant batch type signature with non constant batch
batch<T, A> <> batch_constant<T, A, Csts...> batch_bool<T, A> <> batch_bool_constant<T, A, Csts...> This is a strong API (and ABI) change, but it makes the type system more harmonious.
- Loading branch information
1 parent
6b372a2
commit 76cc907
Showing
22 changed files
with
273 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
.. Copyright (c) 2021, Serge Guelton | ||
..Copyright(c) 2021, Serge Guelton | ||
|
||
Distributed under the terms of the BSD 3-Clause License. | ||
Distributed under the terms of the BSD 3 | ||
- Clause License. | ||
|
||
The full license is in the file LICENSE, distributed with this software. | ||
The full license is in the file LICENSE, | ||
distributed with this software. | ||
|
||
Conditional expression | ||
====================== | ||
Conditional expression | ||
== == == == == == == == == == == | ||
|
||
+------------------------------+-------------------------------------------+ | ||
| :cpp:func:`select` | conditional selection with mask | | ||
+------------------------------+-------------------------------------------+ | ||
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- --+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -+ | ||
| : cpp : func :`select` | conditional selection with mask | +-- -- -- -- -- -- -- -- -- -- -- -- -- -- --+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -+ | ||
|
||
---- | ||
-- -- | ||
|
||
.. doxygenfunction:: select(batch_bool<T, A> const &cond, batch<T, A> const &true_br, batch<T, A> const &false_br) noexcept | ||
:project: xsimd | ||
..doxygenfunction::select(batch_bool<T, A> const& cond, batch<T, A> const& true_br, batch<T, A> const& false_br) noexcept | ||
: project : xsimd | ||
|
||
.. doxygenfunction:: select(batch_bool_constant<batch<T, A>, Values...> const &cond, batch<T, A> const &true_br, batch<T, A> const &false_br) noexcept | ||
:project: xsimd | ||
..doxygenfunction::select(batch_bool_constant<T, A, Values...> const& cond, batch<T, A> const& true_br, batch<T, A> const& false_br) noexcept | ||
: project : xsimd | ||
|
||
|
||
In the specific case when one needs to conditionnaly increment or decrement a | ||
batch based on a mask, :cpp:func:`incr_if` and | ||
:cpp:func:`decr_if` provide specialized version. | ||
In the specific case when one needs to conditionnaly increment | ||
or decrement a | ||
batch based on a mask, | ||
: | ||
cpp : func :`incr_if` and : cpp : func :`decr_if` provide specialized version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.