NumCpp
2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
astype.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include "
NumCpp/Core/Internal/TypeTraits.hpp
"
31
#include "
NumCpp/NdArray.hpp
"
32
33
namespace
nc
34
{
35
//============================================================================
36
// Method Description:
42
template
<
typename
dtypeOut =
double
,
typename
dtype>
43
NdArray<dtypeOut>
astype
(
const
NdArray<dtype>
inArray)
44
{
45
return
inArray.template
astype<dtypeOut>
();
46
}
47
}
// namespace nc
NdArray.hpp
TypeTraits.hpp
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition
NdArrayCore.hpp:135
nc
Definition
Cartesian.hpp:39
nc::astype
NdArray< dtypeOut > astype(const NdArray< dtype > inArray)
Definition
astype.hpp:43
include
NumCpp
Functions
astype.hpp
Generated by
1.15.0