From 01d0d4c36ab470e12f9f47eb8a498dfe1ebd70d7 Mon Sep 17 00:00:00 2001 From: Anthony Li <38049831+doccstat@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:10:46 -0500 Subject: [PATCH] Format C++ files. --- src/fastcpd.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/fastcpd.cc b/src/fastcpd.cc index 0d30c8da..ceead28a 100755 --- a/src/fastcpd.cc +++ b/src/fastcpd.cc @@ -23,9 +23,7 @@ List negative_log_likelihood( Function cv_glmnet = glmnet["cv.glmnet"], predict_glmnet = glmnet["predict.glmnet"]; List out = cv_glmnet( - data.cols(1, data.n_cols - 1), - data.col(0), - Named("family") = "gaussian" + data.cols(1, data.n_cols - 1), data.col(0), Named("family") = "gaussian" ); S4 out_coef = predict_glmnet( out["glmnet.fit"], @@ -47,10 +45,8 @@ List negative_log_likelihood( Function deviance = stats["deviance"], glmnet_ = glmnet["glmnet"], predict_glmnet = glmnet["predict.glmnet"]; List out = glmnet_( - data.cols(1, data.n_cols - 1), - data.col(0), - Named("family") = "gaussian", - Named("lambda") = lambda + data.cols(1, data.n_cols - 1), data.col(0), + Named("family") = "gaussian", Named("lambda") = lambda ); S4 out_par = out["beta"]; arma::vec par_i = as(out_par.slot("i"));