Automatic Differentiation
 
Loading...
Searching...
No Matches
append_row.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#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<typename T1 , typename T2 , require_all_eigen_t< T1, T2 > * = nullptr>
auto stan::math::append_row (const T1 &A, const T2 &B)
 Return the result of stacking the rows of the first argument matrix on top of the second argument matrix.
 
template<typename Scal , typename ColVec , require_stan_scalar_t< Scal > * = nullptr, require_t< is_eigen_col_vector< ColVec > > * = nullptr>
Eigen::Matrix< return_type_t< Scal, ColVec >, Eigen::Dynamic, 1 > stan::math::append_row (const Scal &A, const ColVec &B)
 Return the result of stacking an scalar on top of the a vector, with the result being a vector.
 
template<typename ColVec , typename Scal , require_t< is_eigen_col_vector< ColVec > > * = nullptr, require_stan_scalar_t< Scal > * = nullptr>
Eigen::Matrix< return_type_t< ColVec, Scal >, Eigen::Dynamic, 1 > stan::math::append_row (const ColVec &A, const Scal &B)
 Return the result of stacking a vector on top of the an scalar, with the result being a vector.