NumCpp  1.0
A C++ implementation of the Python Numpy library
nans.hpp
Go to the documentation of this file.
1 #pragma once
30 
31 #include "NumCpp/NdArray.hpp"
33 #include "NumCpp/Core/Shape.hpp"
35 
36 namespace nc
37 {
38  //============================================================================
39  // Method Description:
48  inline NdArray<double> nans(uint32 inSquareSize)
49  {
50  return full(inSquareSize, constants::nan);
51  }
52 
53  //============================================================================
54  // Method Description:
63  inline NdArray<double> nans(uint32 inNumRows, uint32 inNumCols)
64  {
65  return full(inNumRows, inNumCols, constants::nan);
66  }
67 
68  //============================================================================
69  // Method Description:
78  inline NdArray<double> nans(const Shape& inShape)
79  {
80  return full(inShape, constants::nan);
81  }
82 }
nc::nans
NdArray< double > nans(uint32 inSquareSize)
Definition: nans.hpp:48
Constants.hpp
nc::full
NdArray< dtype > full(uint32 inSquareSize, dtype inFillValue)
Definition: full.hpp:49
nc::NdArray< double >
nc::uint32
std::uint32_t uint32
Definition: Types.hpp:41
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
nc::constants::nan
const double nan
NaN.
Definition: Constants.hpp:45
Shape.hpp
nc
Definition: Coordinate.hpp:45
full.hpp