NumCpp  2.17.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
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
35namespace 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
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
A Shape Class for NdArrays.
Definition Core/shape.hpp:41
const double nan
NaN.
Definition Core/Constants.hpp:41
Definition Cartesian.hpp:40
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