NumCpp  2.5.1
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:
50  template<typename dtype>
52  {
53  STATIC_ASSERT_FLOAT(dtype);
54 
55  return square(nanstdev(inArray, inAxis));
56  }
57 } // namespace nc
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:43
Definition: Coordinate.hpp:45
constexpr dtype square(dtype inValue) noexcept
Definition: square.hpp:49
NdArray< double > nanvar(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanvar.hpp:51
NdArray< double > nanstdev(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanstdev.hpp:55
Axis
Enum To describe an axis.
Definition: Types.hpp:46