blob: 76be6d48b30df4f6617adc954ab1eb8e8aaefd8e (
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/sqrt.hpp"
#include "pythonic/numpy/var.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)...));
}
} // namespace numpy
PYTHONIC_NS_END
#endif
|