From eacabc1f0edcf7b06726cd3a3c34eadf8bf5e8e3 Mon Sep 17 00:00:00 2001 From: Patrick Breheny Date: Sat, 7 Apr 2018 07:19:26 -0500 Subject: [PATCH] Changing | to || --- src/gdfit_binomial.c | 4 ++-- src/gdfit_cox.c | 4 ++-- src/gdfit_gaussian.c | 4 ++-- src/gdfit_poisson.c | 4 ++-- src/lcdfit_binomial.c | 2 +- src/lcdfit_cox.c | 2 +- src/lcdfit_gaussian.c | 2 +- src/lcdfit_poisson.c | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/gdfit_binomial.c b/src/gdfit_binomial.c index 0fbcb95..173a055 100644 --- a/src/gdfit_binomial.c +++ b/src/gdfit_binomial.c @@ -28,7 +28,7 @@ void gd_binomial(double *b, double *x, double *r, double *eta, int g, int *K1, i if (strcmp(penalty, "grLasso")==0) len = S(v * z_norm, lam1) / (v * (1 + lam2)); if (strcmp(penalty, "grMCP")==0) len = F(v * z_norm, lam1, lam2, gamma) / v; if (strcmp(penalty, "grSCAD")==0) len = Fs(v * z_norm, lam1, lam2, gamma) / v; - if (len != 0 | a[K1[g]] != 0) { + if (len != 0 || a[K1[g]] != 0) { // If necessary, update b and r for (int j=K1[g]; j gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll gmax | nv > dfmax | tot_iter == max_iter) { + if (ng > gmax || nv > dfmax || tot_iter == max_iter) { for (int ll=l; ll