1 #ifndef STAN_MODEL_INDEXING_DEEP_COPY_HPP
2 #define STAN_MODEL_INDEXING_DEEP_COPY_HPP
42 template <
typename T,
int R,
int C>
43 inline Eigen::Matrix<T, R, C>
deep_copy(
const Eigen::Matrix<T, R, C>& a) {
44 Eigen::Matrix<T, R, C> result(a);
61 inline std::vector<T>
deep_copy(
const std::vector<T>& v) {
62 std::vector<T> result(v);
Probability, optimization and sampling library.
const T & deep_copy(const T &x)
Return the specified argument as a constant reference.