NumCpp  2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
binaryRepr.hpp
Go to the documentation of this file.
1 #pragma once
29 
32 
33 #include <bitset>
34 #include <string>
35 
36 namespace nc
37 {
38  //============================================================================
39  // Method Description:
48  template<typename dtype>
49  std::string binaryRepr(dtype inValue)
50  {
52 
53  return std::bitset<DtypeInfo<dtype>::bits()>(inValue).to_string();
54  }
55 } // namespace nc
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
nc::binaryRepr
std::string binaryRepr(dtype inValue)
Definition: binaryRepr.hpp:49
nc
Definition: Coordinate.hpp:44
DtypeInfo.hpp