NumCpp  2.1.0
A C++ implementation of the Python Numpy library
astype.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 #include "NumCpp/NdArray.hpp"
33 
34 #include <complex>
35 
36 namespace nc
37 {
38  //============================================================================
39  // Method Description:
47  template<typename dtypeOut = double, typename dtype>
49  {
50  return inArray.template astype<dtypeOut>();
51  }
52 } // namespace nc
nc::astype
NdArray< dtypeOut > astype(const NdArray< dtype > inArray)
Definition: astype.hpp:48
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:75
NdArray.hpp
nc
Definition: Coordinate.hpp:45
TypeTraits.hpp