Untitled Diff
8 removals
28 lines
18 additions
31 lines
template <typename T1__>
template <typename T1__>
stan::promote_args_t<T1__>
stan::promote_args_t<T1__>
foo(const Eigen::Matrix<double, -1, -1>& X,
foo(const Eigen::Matrix<double, -1, -1>& X,
const Eigen::Matrix<T1__, -1, 1>& paramv, std::ostream* pstream__) {
const Eigen::Matrix<T1__, -1, 1>& paramv, std::ostream* pstream__) {
using local_scalar_t__ = stan::promote_args_t<T1__>;
using local_scalar_t__ = stan::promote_args_t<T1__>;
const static bool propto__ = true;
const static bool propto__ = true;
(void) propto__;
(void) propto__;
local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
(void) DUMMY_VAR__; // suppress unused var warning
(void) DUMMY_VAR__; // suppress unused var warning
try {
try {
Eigen::Matrix<local_scalar_t__, -1, -1> Xs;
Eigen::Matrix<double, -1, -1> lcm_sym2__;
Xs = Eigen::Matrix<local_scalar_t__, -1, -1>(2, 2);
double lcm_sym1__;
stan::math::fill(Xs, DUMMY_VAR__);
{
Eigen::Matrix<double, -1, -1> Xs;
current_statement__ = 1;
Xs = Eigen::Matrix<double, -1, -1>(2, 2);
assign(Xs, nil_index_list(),
stan::math::fill(Xs, std::numeric_limits<double>::quiet_NaN());
rvalue(X, cons_list(index_min_max(1, 2), nil_index_list()), "X"),
"assigning variable Xs");
assign(lcm_sym2__, nil_index_list(),
current_statement__ = 2;
rvalue(X, cons_list(index_min_max(1, 2), nil_index_list()), "X"),
return sum(multiply(Xs, paramv));
"assigning variable lcm_sym2__");
current_statement__ = 2;
return sum(multiply(lcm_sym2__, paramv));
}
} catch (const std::exception& e) {
} catch (const std::exception& e) {
stan::lang::rethrow_located(e, locations_array__[current_statement__]);
stan::lang::rethrow_located(e, locations_array__[current_statement__]);
// Next line prevents compiler griping about no return
// Next line prevents compiler griping about no return
throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
}
}
}
}