NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
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
std::uint32_t uint32
Definition: Types.hpp:40