@@ -72,9 +72,9 @@ inline auto lub_free(T&& y, L&& lb, U&& ub) {
7272 check_matching_dims (" lub_free" , " y" , y, " lb" , lb);
7373 auto && y_ref = to_ref (std::forward<T>(y));
7474 auto && lb_ref = to_ref (std::forward<L>(lb));
75- promote_scalar_t <return_type_t <T, L, U>, T> ret (y .rows (), y .cols ());
76- for (Eigen::Index j = 0 ; j < y .cols (); ++j) {
77- for (Eigen::Index i = 0 ; i < y .rows (); ++i) {
75+ promote_scalar_t <return_type_t <T, L, U>, T> ret (y_ref .rows (), y_ref .cols ());
76+ for (Eigen::Index j = 0 ; j < y_ref .cols (); ++j) {
77+ for (Eigen::Index i = 0 ; i < y_ref .rows (); ++i) {
7878 ret.coeffRef (i, j) = lub_free (y_ref.coeff (i, j), lb_ref.coeff (i, j), ub);
7979 }
8080 }
@@ -92,9 +92,9 @@ inline auto lub_free(T&& y, L&& lb, U&& ub) {
9292 check_matching_dims (" lub_free" , " y" , y, " ub" , ub);
9393 auto && y_ref = to_ref (std::forward<T>(y));
9494 auto && ub_ref = to_ref (std::forward<U>(ub));
95- promote_scalar_t <return_type_t <T, L, U>, T> ret (y .rows (), y .cols ());
96- for (Eigen::Index j = 0 ; j < y .cols (); ++j) {
97- for (Eigen::Index i = 0 ; i < y .rows (); ++i) {
95+ promote_scalar_t <return_type_t <T, L, U>, T> ret (y_ref .rows (), y_ref .cols ());
96+ for (Eigen::Index j = 0 ; j < y_ref .cols (); ++j) {
97+ for (Eigen::Index i = 0 ; i < y_ref .rows (); ++i) {
9898 ret.coeffRef (i, j) = lub_free (y_ref.coeff (i, j), lb, ub_ref.coeff (i, j));
9999 }
100100 }
@@ -113,9 +113,9 @@ inline auto lub_free(T&& y, L&& lb, U&& ub) {
113113 auto && y_ref = to_ref (std::forward<T>(y));
114114 auto && lb_ref = to_ref (std::forward<L>(lb));
115115 auto && ub_ref = to_ref (std::forward<U>(ub));
116- promote_scalar_t <return_type_t <T, L, U>, T> ret (y .rows (), y .cols ());
117- for (Eigen::Index j = 0 ; j < y .cols (); ++j) {
118- for (Eigen::Index i = 0 ; i < y .rows (); ++i) {
116+ promote_scalar_t <return_type_t <T, L, U>, T> ret (y_ref .rows (), y_ref .cols ());
117+ for (Eigen::Index j = 0 ; j < y_ref .cols (); ++j) {
118+ for (Eigen::Index i = 0 ; i < y_ref .rows (); ++i) {
119119 ret.coeffRef (i, j)
120120 = lub_free (y_ref.coeff (i, j), lb_ref.coeff (i, j), ub_ref.coeff (i, j));
121121 }
0 commit comments