NumCpp
2.1.0
A C++ implementation of the Python Numpy library
empty.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/Core/Shape.hpp
"
32
#include "
NumCpp/Core/Types.hpp
"
33
#include "
NumCpp/NdArray.hpp
"
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
48
template
<
typename
dtype>
49
NdArray<dtype>
empty
(
uint32
inNumRows,
uint32
inNumCols)
50
{
51
return
NdArray<dtype>
(inNumRows, inNumCols);
52
}
53
54
//============================================================================
55
// Method Description:
65
template
<
typename
dtype>
66
NdArray<dtype>
empty
(
const
Shape
& inShape)
67
{
68
return
NdArray<dtype>
(inShape);
69
}
70
}
// namespace nc
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:41
nc::empty
NdArray< dtype > empty(uint32 inNumRows, uint32 inNumCols)
Definition:
empty.hpp:49
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:41
Shape.hpp
nc
Definition:
Coordinate.hpp:45
Types.hpp
include
NumCpp
Functions
empty.hpp
Generated by
1.8.17