NumCpp  2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
nanvar.hpp
Go to the documentation of this file.
1
28#pragma once
29
33#include "NumCpp/NdArray.hpp"
34
35namespace nc
36{
37 //============================================================================
38 // Method Description:
48 template<typename dtype>
50 {
52
53 return square(nanstdev(inArray, inAxis));
54 }
55} // namespace nc
#define STATIC_ASSERT_FLOAT(dtype)
Definition StaticAsserts.hpp:50
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
Definition Cartesian.hpp:39
NdArray< double > nanstdev(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition nanstdev.hpp:53
constexpr dtype square(dtype inValue) noexcept
Definition square.hpp:47
Axis
Enum To describe an axis.
Definition Enums.hpp:36
@ NONE
Definition Enums.hpp:37
NdArray< double > nanvar(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition nanvar.hpp:49