NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
astype.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Core/Internal/TypeTraits.hpp
"
31
#include "
NumCpp/NdArray.hpp
"
32
33
#include <complex>
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
46
template
<
typename
dtypeOut =
double
,
typename
dtype>
47
NdArray<dtypeOut>
astype
(
const
NdArray<dtype>
inArray)
48
{
49
return
inArray.template astype<dtypeOut>();
50
}
51
}
// namespace nc
nc::astype
NdArray< dtypeOut > astype(const NdArray< dtype > inArray)
Definition:
astype.hpp:47
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition:
NdArrayCore.hpp:71
NdArray.hpp
nc
Definition:
Coordinate.hpp:44
TypeTraits.hpp
include
NumCpp
Functions
astype.hpp
Generated by
1.8.17