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
fmod.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <cmath>
31#include <string>
32
36#include "NumCpp/NdArray.hpp"
37
38namespace nc
39{
40 //============================================================================
41 // Method Description:
51 template<typename dtype, std::enable_if_t<std::is_integral_v<dtype>, int> = 0>
53 {
54 return inValue1 % inValue2;
55 }
56
57 //============================================================================
58 // Method Description:
68 template<typename dtype, std::enable_if_t<std::is_floating_point_v<dtype>, int> = 0>
70 {
71 return std::fmod(inValue1, inValue2);
72 }
73
74 //============================================================================
75 // Method Description:
85 template<typename dtype>
90} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition Cartesian.hpp:40
dtype fmod(dtype inValue1, dtype inValue2) noexcept
Definition fmod.hpp:52
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59