NumCpp
1.0
A C++ implementation of the Python Numpy library
newbyteorder.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/Core/Types.hpp
"
32
#include "
NumCpp/NdArray.hpp
"
33
34
namespace
nc
35
{
36
//============================================================================
37
// Method Description:
50
template
<
typename
dtype>
51
dtype
newbyteorder
(dtype inValue,
Endian
inEndianess)
52
{
53
NdArray<dtype>
valueArray = { inValue };
54
return
valueArray.
newbyteorder
(inEndianess).
item
();
55
}
56
57
//============================================================================
58
// Method Description:
71
template
<
typename
dtype>
72
NdArray<dtype>
newbyteorder
(
const
NdArray<dtype>
& inArray,
Endian
inEndianess)
73
{
74
return
inArray.
newbyteorder
(inEndianess);
75
}
76
}
nc::NdArray::item
value_type item() const
Definition:
NdArrayCore.hpp:2950
nc::NdArray< dtype >
NdArray.hpp
nc::NdArray::newbyteorder
NdArray< dtype > newbyteorder(Endian inEndianess) const
Definition:
NdArrayCore.hpp:3218
nc::Endian
Endian
Enum for endianess.
Definition:
Types.hpp:51
nc
Definition:
Coordinate.hpp:45
nc::newbyteorder
dtype newbyteorder(dtype inValue, Endian inEndianess)
Definition:
newbyteorder.hpp:51
Types.hpp
include
NumCpp
Functions
newbyteorder.hpp
Generated by
1.8.17