NumCpp  2.10.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nans.hpp
Go to the documentation of this file.
1 #pragma once
29 
31 #include "NumCpp/Core/Shape.hpp"
33 #include "NumCpp/NdArray.hpp"
34 
35 namespace nc
36 {
37  //============================================================================
38  // Method Description:
45  inline NdArray<double> nans(uint32 inSquareSize)
46  {
47  return full(inSquareSize, constants::nan);
48  }
49 
50  //============================================================================
51  // Method Description:
59  inline NdArray<double> nans(uint32 inNumRows, uint32 inNumCols)
60  {
61  return full(inNumRows, inNumCols, constants::nan);
62  }
63 
64  //============================================================================
65  // Method Description:
72  inline NdArray<double> nans(const Shape& inShape)
73  {
74  return full(inShape, constants::nan);
75  }
76 } // namespace nc
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
const double nan
NaN.
Definition: Constants.hpp:40
Definition: Coordinate.hpp:45
NdArray< dtype > full(uint32 inSquareSize, dtype inFillValue)
Definition: full.hpp:47
NdArray< double > nans(uint32 inSquareSize)
Definition: nans.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40