another windows fix

release/4.3a0
Varun Agrawal 2023-12-28 13:29:28 -05:00
parent 70f1d4a804
commit 98444aba3e
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,8 @@
* @file ChiSquaredInverse.h * @file ChiSquaredInverse.h
* @brief Implementation of the Chi Squared inverse function. * @brief Implementation of the Chi Squared inverse function.
* *
* Uses the cephes 3rd party library to help with gamma inverse functions. * Uses the cephes 3rd party library to help with
* incomplete gamma inverse functions.
* *
* @author Varun Agrawal * @author Varun Agrawal
*/ */
@ -41,9 +42,8 @@ namespace internal {
* @param alpha Quantile value * @param alpha Quantile value
* @return double * @return double
*/ */
double GTSAM_EXPORT chi_squared_quantile(const double dofs, double chi_squared_quantile(const double dofs, const double alpha) {
const double alpha) { return 2 * igami(dofs / 2, alpha);
return 2 * cephes_igami(dofs / 2, alpha);
} }
} // namespace internal } // namespace internal