NumCpp  2.1.0
A C++ implementation of the Python Numpy library
floor_divide.hpp
Go to the documentation of this file.
1 #pragma once
30 
33 #include "NumCpp/NdArray.hpp"
34 
35 #include <cmath>
36 
37 namespace nc
38 {
39  //============================================================================
40  // Method Description:
50  template<typename dtype>
51  dtype floor_divide(dtype inValue1, dtype inValue2) noexcept
52  {
54 
55  return std::floor(inValue1 / inValue2);
56  }
57 
58  //============================================================================
59  // Method Description:
69  template<typename dtype>
70  NdArray<dtype> floor_divide(const NdArray<dtype>& inArray1, const NdArray<dtype>& inArray2)
71  {
72  return floor(inArray1 / inArray2);
73  }
74 } // namespace nc
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
nc::NdArray< dtype >
nc::floor
dtype floor(dtype inValue) noexcept
Definition: floor.hpp:49
NdArray.hpp
nc
Definition: Coordinate.hpp:45
nc::floor_divide
dtype floor_divide(dtype inValue1, dtype inValue2) noexcept
Definition: floor_divide.hpp:51
floor.hpp