File: comparison_index.rst

package info (click to toggle)
xsimd 13.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,716 kB
  • sloc: cpp: 36,557; sh: 541; makefile: 184; python: 117
file content (72 lines) | stat: -rw-r--r-- 3,260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay

   Distributed under the terms of the BSD 3-Clause License.

   The full license is in the file LICENSE, distributed with this software.

.. raw:: html

   <style>
   .rst-content table.docutils {
       width: 100%;
       table-layout: fixed;
   }

   table.docutils .line-block {
       margin-left: 0;
       margin-bottom: 0;
   }

   table.docutils code.literal {
       color: initial;
   }

   code.docutils {
       background: initial;
   }
   </style>

Comparison operators
====================

Ordering:

+---------------------------------------+----------------------------------------------------+
| :cpp:func:`eq`                        | per slot equals to comparison                      |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`neq`                       | per slot different from comparison                 |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`gt`                        | per slot strictly greater than comparison          |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`lt`                        | per slot strictly lower than comparison            |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`ge`                        | per slot greater or equal to comparison            |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`le`                        | per slot lower or equal to comparison              |
+---------------------------------------+----------------------------------------------------+

Parity check:

+---------------------------------------+----------------------------------------------------+
| :cpp:func:`is_even`                   | per slot check for evenness                        |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`is_odd`                    | per slot check for oddness                         |
+---------------------------------------+----------------------------------------------------+

Floating point number check:

+---------------------------------------+----------------------------------------------------+
| :cpp:func:`isinf`                     | per slot check for infinity                        |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`isnan`                     | per slot check for NaN                             |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`isfinite`                  | per slot check for finite number                   |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`is_flint`                  | per slot check for float representing an integer   |
+---------------------------------------+----------------------------------------------------+

----

.. doxygengroup:: batch_logical
   :project: xsimd
   :content-only: