Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ append_row() [3/7]

template<typename T1 , typename T2 , require_all_eigen_t< T1, T2 > * = nullptr>
auto stan::math::append_row ( const T1 &  A,
const T2 &  B 
)
inline

Return the result of stacking the rows of the first argument matrix on top of the second argument matrix.

Given input types result in following outputs: (matrix, matrix) -> matrix, (matrix, row_vector) -> matrix, (row_vector, matrix) -> matrix, (row_vector, row_vector) -> matrix, (vector, vector) -> vector.

Template Parameters
T1type of the first matrix
T2type of the second matrix
Parameters
AFirst matrix.
BSecond matrix.
Returns
Result of stacking first matrix on top of second.

Given input types result in following outputs: (matrix, matrix) -> matrix, (matrix, row_vector) -> matrix, (row_vector, matrix) -> matrix, (row_vector, row_vector) -> matrix, (vector, vector) -> vector.

Template Parameters
T1A var_value with inner matrix type
T1A var_value with inner matrix type
Parameters
AFirst matrix.
BSecond matrix.
Returns
Result of stacking first matrix on top of second.

Definition at line 31 of file append_row.hpp.