Skip to content

Commit d90ba11

Browse files
committed
clang format
1 parent c7f0198 commit d90ba11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/05_glm_fit.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ Col<double> variance_(const Col<double> &mu, const double &theta,
421421
out[6] = writable::logicals({conv});
422422
out[7] = writable::integers({iter + 1});
423423

424-
out.attr("names") = writable::strings({"coefficients", "eta", "weights",
425-
"hessian", "deviance",
426-
"null_deviance", "conv", "iter"});
424+
out.attr("names") =
425+
writable::strings({"coefficients", "eta", "weights", "hessian",
426+
"deviance", "null_deviance", "conv", "iter"});
427427

428428
if (keep_mx == true) {
429429
out.push_back({"MX"_nm = as_doubles_matrix(center_variables_(

src/07_lm_fit.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[[cpp11::register]] list felm_fit_(const doubles &y_r,
44
const doubles_matrix<> &x_r,
5-
const doubles &wt_r,
6-
const list &control,
5+
const doubles &wt_r, const list &control,
76
const list &k_list) {
87
// Type conversion
98

@@ -29,7 +28,7 @@
2928
MX = center_variables_(X, w, k_list, center_tol, iter_center_max);
3029

3130
// Solve the normal equations
32-
31+
3332
Col<double> beta = solve_beta_(MX, MNU, w);
3433

3534
// Fitted values
@@ -47,7 +46,8 @@
4746
out[1] = as_doubles(fitted);
4847
out[2] = as_doubles(w);
4948
out[3] = as_doubles_matrix(H);
50-
out.attr("names") = writable::strings({"coefficients", "fitted.values", "weights", "hessian"});
49+
out.attr("names") = writable::strings(
50+
{"coefficients", "fitted.values", "weights", "hessian"});
5151

5252
return out;
5353
}

0 commit comments

Comments
 (0)