NumCpp
2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
empty.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Core/Shape.hpp
"
31
#include "
NumCpp/Core/Types.hpp
"
32
#include "
NumCpp/NdArray.hpp
"
33
34
namespace
nc
35
{
36
//============================================================================
37
// Method Description:
47
template
<
typename
dtype>
48
NdArray<dtype>
empty
(
uint32
inNumRows,
uint32
inNumCols)
49
{
50
return
NdArray<dtype>
(inNumRows, inNumCols);
51
}
52
53
//============================================================================
54
// Method Description:
64
template
<
typename
dtype>
65
NdArray<dtype>
empty
(
const
Shape
& inShape)
66
{
67
return
NdArray<dtype>
(inShape);
68
}
69
}
// namespace nc
Shape.hpp
NdArray.hpp
Types.hpp
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition:
NdArrayCore.hpp:72
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:41
nc
Definition:
Coordinate.hpp:45
nc::empty
NdArray< dtype > empty(uint32 inNumRows, uint32 inNumCols)
Definition:
empty.hpp:48
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:40
include
NumCpp
Functions
empty.hpp
Generated by
1.9.1