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
cnr.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <string>
31
33#include "NumCpp/Core/Types.hpp"
34#include "NumCpp/NdArray.hpp"
37
38namespace nc::special
39{
40 //============================================================================
41 // Method Description:
48 inline double cnr(uint32 n, uint32 r)
49 {
50 return pnr(n, r) / factorial(r);
51 }
52} // namespace nc::special
Definition airy_ai.hpp:39
double factorial(uint32 inValue)
Definition factorial.hpp:49
double cnr(uint32 n, uint32 r)
Definition cnr.hpp:48
double pnr(uint32 n, uint32 r)
Definition pnr.hpp:48
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::uint32_t uint32
Definition Types.hpp:40