NumCpp  2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
newbyteorder.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include "NumCpp/NdArray.hpp"
31
32namespace nc
33{
34 //============================================================================
35 // Method Description:
47 template<typename dtype>
48 dtype newbyteorder(dtype inValue, Endian inEndianess)
49 {
50 NdArray<dtype> valueArray = { inValue };
51 return valueArray.newbyteorder(inEndianess).item();
52 }
53
54 //============================================================================
55 // Method Description:
67 template<typename dtype>
68 NdArray<dtype> newbyteorder(const NdArray<dtype>& inArray, Endian inEndianess)
69 {
70 return inArray.newbyteorder(inEndianess);
71 }
72} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
self_type newbyteorder(Endian inEndianess) const
Definition NdArrayCore.hpp:3324
value_type item() const
Definition NdArrayCore.hpp:3098
Definition Cartesian.hpp:39
dtype newbyteorder(dtype inValue, Endian inEndianess)
Definition newbyteorder.hpp:48
Endian
Enum for endianess.
Definition Enums.hpp:46