NumCpp  2.6.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
nans.hpp
Go to the documentation of this file.
1 
28 #pragma once
29 
31 #include "NumCpp/Core/Shape.hpp"
33 #include "NumCpp/NdArray.hpp"
34 
35 namespace nc
36 {
37  //============================================================================
38  // Method Description:
47  inline NdArray<double> nans(uint32 inSquareSize)
48  {
49  return full(inSquareSize, constants::nan);
50  }
51 
52  //============================================================================
53  // Method Description:
62  inline NdArray<double> nans(uint32 inNumRows, uint32 inNumCols)
63  {
64  return full(inNumRows, inNumCols, constants::nan);
65  }
66 
67  //============================================================================
68  // Method Description:
77  inline NdArray<double> nans(const Shape& inShape)
78  {
79  return full(inShape, constants::nan);
80  }
81 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
const double nan
NaN.
Definition: Constants.hpp:44
Definition: Coordinate.hpp:45
NdArray< dtype > full(uint32 inSquareSize, dtype inFillValue)
Definition: full.hpp:48
NdArray< double > nans(uint32 inSquareSize)
Definition: nans.hpp:47
std::uint32_t uint32
Definition: Types.hpp:40