1#ifndef STAN_MATH_PRIM_FUN_RESIZE_HPP
2#define STAN_MATH_PRIM_FUN_RESIZE_HPP
10template <
typename T,
int R,
int C>
11void resize(Eigen::Matrix<T, R, C>& x,
const std::vector<int>&
dims,
int pos) {
16void resize(T ,
const std::vector<int>& ,
int ) {
21void resize(std::vector<T>& x,
const std::vector<int>&
dims,
int pos) {
24 if (pos >=
static_cast<int>(
dims.size())) {
27 for (
size_t i = 0; i < x.size(); ++i) {
void dims(const T_x &x, std::vector< int > &result)
matrix_cl overload of the dims helper function in prim/fun/dims.hpp.
void resize(Eigen::Matrix< T, R, C > &x, const std::vector< int > &dims, int pos)
void resize(T &x, std::vector< int > dims)
Recursively resize the specified vector of vectors, which must bottom out at scalar values,...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...