aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/pythran/pythonic/numpy/std_.hpp
blob: 5ff8a402c782eb6cc8ec5e1fc0ed1d9455a6a0a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef PYTHONIC_NUMPY_STD_HPP
#define PYTHONIC_NUMPY_STD_HPP

#include "pythonic/include/numpy/std_.hpp"
#include "pythonic/numpy/var.hpp"
#include "pythonic/numpy/sqrt.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{
  template <class... Args>
  auto std_(Args &&... args)
      -> decltype(functor::sqrt{}(var(std::forward<Args>(args)...)))
  {
    return functor::sqrt{}(var(std::forward<Args>(args)...));
  }
}
PYTHONIC_NS_END

#endif