Automatic Differentiation
 
Loading...
Searching...
No Matches
assign.hpp File Reference
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<int N>
void stan::math::print_mat_size (std::ostream &o)
 Helper function to return the matrix size as either "dynamic" or "1".
 
template<typename T_lhs , typename T_rhs , require_all_stan_scalar_t< T_lhs, T_rhs > * = nullptr>
void stan::math::assign (T_lhs &x, const T_rhs &y)
 Copy the right-hand side's value to the left-hand side variable.
 
template<typename T_lhs , typename T_rhs , require_all_eigen_t< T_lhs, T_rhs > * = nullptr>
void stan::math::assign (T_lhs &&x, const T_rhs &y)
 Copy the right-hand side's value to the left-hand side variable.
 
template<typename T_lhs , typename T_rhs >
void stan::math::assign (std::vector< T_lhs > &x, const std::vector< T_rhs > &y)
 Copy the right-hand side's value to the left-hand side variable.