File: reducer_index.rst

package info (click to toggle)
xsimd 14.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,256 kB
  • sloc: cpp: 41,584; sh: 547; makefile: 190; python: 117
file content (52 lines) | stat: -rw-r--r-- 1,932 bytes parent folder | download | duplicates (2)
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
.. 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>

Reduction Operators
===================

+---------------------------------------+----------------------------------------------------+
| :cpp:func:`reduce`                    | generic batch reduction                            |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`reduce_add`                | sum of each batch element                          |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`reduce_max`                | max of the batch elements                          |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`reduce_min`                | min of the batch elements                          |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`reduce_mul`                | product of the batch elements                      |
+---------------------------------------+----------------------------------------------------+
| :cpp:func:`haddp`                     | horizontal sum across batches                      |
+---------------------------------------+----------------------------------------------------+

Also see the `batch_bool` :ref:`xsimd-batch-bool-reducers`.

----

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