NumCpp  2.4.0
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
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition: Types.hpp:40
nc::empty
NdArray< dtype > empty(uint32 inNumRows, uint32 inNumCols)
Definition: empty.hpp:48
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:40
Shape.hpp
nc
Definition: Coordinate.hpp:44
Types.hpp