File: reducer_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 (48 lines) | stat: -rw-r--r-- 1,681 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
.. 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:`haddp`                     | horizontal sum across batches                      |
+---------------------------------------+----------------------------------------------------+

----

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