Skip to content

Commit

Permalink
refactor: take const references as input
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Dec 11, 2023
1 parent 5e83de1 commit a09ae51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ fit_slope(const T& x,
pybind11::tuple
fit_slope_dense(const Eigen::MatrixXd& x,
const Eigen::MatrixXd& y,
Eigen::ArrayXd lambda,
Eigen::ArrayXd alpha,
const Eigen::ArrayXd& lambda,
const Eigen::ArrayXd& alpha,
const py::dict& args)
{
return fit_slope(x, y, lambda, alpha, args);
Expand All @@ -51,8 +51,8 @@ fit_slope_dense(const Eigen::MatrixXd& x,
pybind11::tuple
fit_slope_sparse(const Eigen::SparseMatrix<double>& x,
const Eigen::MatrixXd& y,
Eigen::ArrayXd lambda,
Eigen::ArrayXd alpha,
const Eigen::ArrayXd& lambda,
const Eigen::ArrayXd& alpha,
const py::dict& args)
{
return fit_slope(x, y, lambda, alpha, args);
Expand Down

0 comments on commit a09ae51

Please sign in to comment.