NumCpp  2.9.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
nanvar.hpp
Go to the documentation of this file.
1 #pragma once
29 
31 #include "NumCpp/Core/Types.hpp"
34 #include "NumCpp/NdArray.hpp"
35 
36 namespace nc
37 {
38  //============================================================================
39  // Method Description:
49  template<typename dtype>
51  {
52  STATIC_ASSERT_FLOAT(dtype);
53 
54  return square(nanstdev(inArray, inAxis));
55  }
56 } // namespace nc
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:45
Definition: Coordinate.hpp:45
constexpr dtype square(dtype inValue) noexcept
Definition: square.hpp:47
NdArray< double > nanvar(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanvar.hpp:50
NdArray< double > nanstdev(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanstdev.hpp:54
Axis
Enum To describe an axis.
Definition: Types.hpp:47