Skip to content

Commit

Permalink
Merge pull request #255 from navashiva/bugfix/gcc-isfinite
Browse files Browse the repository at this point in the history
Added backward support for gcc-c++
  • Loading branch information
sebp authored Apr 15, 2022
2 parents 112ac39 + 24b6430 commit efaf92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sksurv/linear_model/src/coxnet/coxnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Coxnet<T, S, U>::update ()

while (k < n_samples && ti == time[k]) {
/* abort if values are too large */
if (!isfinite(exp_xw[k])) {
if (!std::isfinite(exp_xw[k])) {
m_params.error_type = WEIGHT_TOO_LARGE;
}
v += exp_xw[k] * norm_factor;
Expand Down

0 comments on commit efaf92e

Please sign in to comment.