NumCpp  2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
remainder.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <cmath>
31#include <string>
32
36#include "NumCpp/Core/Types.hpp"
37#include "NumCpp/NdArray.hpp"
38
39namespace nc
40{
41 //============================================================================
42 // Method Description:
52 template<typename dtype>
54 {
56
57 return static_cast<double>(std::remainder(inValue1, inValue2));
58 }
59
60 //============================================================================
61 // Method Description:
71 template<typename dtype>
73 {
74 return broadcast::broadcaster<double>(inArray1,
76 [](dtype inValue1, dtype inValue2) noexcept -> double
77 { return remainder(inValue1, inValue2); });
78 }
79} // namespace nc
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition Cartesian.hpp:40
double remainder(dtype inValue1, dtype inValue2) noexcept
Definition remainder.hpp:53
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59