NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
nans.hpp
Go to the documentation of this file.
1
#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:
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
nc::nans
NdArray< double > nans(uint32 inSquareSize)
Definition:
nans.hpp:47
Constants.hpp
nc::full
NdArray< dtype > full(uint32 inSquareSize, dtype inFillValue)
Definition:
full.hpp:48
nc::NdArray< double >
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:40
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:40
nc::constants::nan
const double nan
NaN.
Definition:
Constants.hpp:44
Shape.hpp
nc
Definition:
Coordinate.hpp:44
full.hpp
include
NumCpp
Functions
nans.hpp
Generated by
1.8.17