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
|
.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht
Distributed under the terms of the BSD 3-Clause License.
The full license is in the file LICENSE, distributed with this software.
Reducing functions
==================
**xtensor** provides the following reducing functions for xexpressions:
Defined in ``xtensor/xmath.hpp``
.. doxygenfunction:: sum(E&&, EVS)
.. doxygenfunction:: sum(E&&, X&&, EVS)
.. doxygenfunction:: prod(E&&, EVS)
.. doxygenfunction:: prod(E&&, X&&, EVS)
.. doxygenfunction:: mean(E&&, EVS)
.. doxygenfunction:: mean(E&&, X&&, EVS)
.. doxygenfunction:: average(E&&, EVS)
.. doxygenfunction:: variance(E&&, EVS)
.. doxygenfunction:: variance(E&&, X&&, EVS)
.. doxygenfunction:: variance(E&&, X&&, const D&, EVS)
.. doxygenfunction:: stddev(E&&, EVS)
.. doxygenfunction:: stddev(E&&, X&&, EVS)
.. doxygenfunction:: diff(const xexpression<T>&, unsigned int, std::ptrdiff_t)
.. doxygenfunction:: amax(E&&, EVS)
.. doxygenfunction:: amax(E&&, X&&, EVS)
.. doxygenfunction:: amin(E&&, EVS)
.. doxygenfunction:: amin(E&&, X&&, EVS)
.. doxygenfunction:: trapz(const xexpression<T>&, double, std::ptrdiff_t)
.. doxygenfunction:: trapz(const xexpression<T>&, const xexpression<E>&, std::ptrdiff_t)
Defined in ``xtensor/xnorm.hpp``
.. doxygenfunction:: norm_l0(E&&, X&&, EVS)
.. doxygenfunction:: norm_l1(E&&, X&&, EVS)
.. doxygenfunction:: norm_sq(E&&, X&&, EVS)
.. doxygenfunction:: norm_l2(E&&, X&&, EVS)
.. doxygenfunction:: norm_linf(E&&, X&&, EVS)
.. doxygenfunction:: norm_lp_to_p(E&&, double, X&&, EVS)
.. doxygenfunction:: norm_lp(E&&, double, X&&, EVS)
.. doxygenfunction:: norm_induced_l1(E&&, EVS)
.. doxygenfunction:: norm_induced_linf(E&&, EVS)
|