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