NumCpp  2.1.0
A C++ implementation of the Python Numpy library
resizeFast.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:
51  template<typename dtype>
52  NdArray<dtype>& resizeFast(NdArray<dtype>& inArray, uint32 inNumRows, uint32 inNumCols)
53  {
54  inArray.resizeFast(inNumRows, inNumCols);
55  return inArray;
56  }
57 
58  //============================================================================
59  // Method Description:
71  template<typename dtype>
72  NdArray<dtype>& resizeFast(NdArray<dtype>& inArray, const Shape& inNewShape)
73  {
74  inArray.resizeFast(inNewShape);
75  return inArray;
76  }
77 } // namespace nc
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition: Types.hpp:41
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
Shape.hpp
nc
Definition: Coordinate.hpp:45
nc::resizeFast
NdArray< dtype > & resizeFast(NdArray< dtype > &inArray, uint32 inNumRows, uint32 inNumCols)
Definition: resizeFast.hpp:52
nc::NdArray::resizeFast
NdArray< dtype > & resizeFast(uint32 inNumRows, uint32 inNumCols)
Definition: NdArrayCore.hpp:4184
Types.hpp