Skip to content

Commit be6cda8

Browse files
committed
BUG: Add float overloads for chdtr and chdtrc
1 parent 9d18705 commit be6cda8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/xsf/stats.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ inline double bdtrc(double k, int n, double p) { return cephes::bdtrc(k, n, p);
2525

2626
inline double chdtr(double df, double x) { return cephes::chdtr(df, x); }
2727

28+
inline float chdtr(float df, float x) { return static_cast<float>(cephes::chdtr(df, x)); }
29+
2830
inline double chdtrc(double df, double x) { return cephes::chdtrc(df, x); }
2931

32+
inline float chdtrc(float df, float x) { return static_cast<float>(cephes::chdtrc(df, x)); }
33+
3034
inline double chdtri(double df, double y) { return cephes::chdtri(df, y); }
3135

3236
inline double fdtr(double a, double b, double x) { return cephes::fdtr(a, b, x); }

0 commit comments

Comments
 (0)