NumCpp  1.0
A C++ implementation of the Python Numpy library
right_shift.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:
48  template<typename dtype>
49  NdArray<dtype> right_shift(const NdArray<dtype>& inArray, uint8 inNumBits)
50  {
51  return inArray >> inNumBits;
52  }
53 }
nc::uint8
std::uint8_t uint8
Definition: Types.hpp:43
nc::NdArray< dtype >
NdArray.hpp
nc
Definition: Coordinate.hpp:45
Types.hpp
nc::right_shift
NdArray< dtype > right_shift(const NdArray< dtype > &inArray, uint8 inNumBits)
Definition: right_shift.hpp:49