NumCpp
2.12.1
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
30
#include "
NumCpp/Core/Constants.hpp
"
31
#include "
NumCpp/Core/Shape.hpp
"
32
#include "
NumCpp/Functions/full.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
Constants.hpp
Shape.hpp
NdArray.hpp
nc::NdArray< double >
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:41
full.hpp
nc::constants::nan
const double nan
NaN.
Definition:
Core/Constants.hpp:41
nc
Definition:
Cartesian.hpp:40
nc::full
NdArray< dtype > full(uint32 inSquareSize, dtype inFillValue)
Definition:
full.hpp:47
nc::nans
NdArray< double > nans(uint32 inSquareSize)
Definition:
nans.hpp:45
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:40
include
NumCpp
Functions
nans.hpp
Generated by
1.9.4