![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/scal/err/check_consistent_sizes.hpp>
#include <algorithm>
Go to the source code of this file.
Namespaces | |
stan | |
stan::math | |
Matrices and templated mathematical functions. | |
Functions | |
template<typename T_m , typename T_a > | |
Eigen::Matrix< typename return_type< T_m, T_a >::type, Eigen::Dynamic, Eigen::Dynamic > | stan::math::add_diag (const Eigen::Matrix< T_m, Eigen::Dynamic, Eigen::Dynamic > &mat, const T_a &to_add) |
Returns a Matrix with values added along the main diagonal. More... | |
template<typename T_m , typename T_a , int R, int C> | |
Eigen::Matrix< typename return_type< T_m, T_a >::type, Eigen::Dynamic, Eigen::Dynamic > | stan::math::add_diag (const Eigen::Matrix< T_m, Eigen::Dynamic, Eigen::Dynamic > &mat, const Eigen::Matrix< T_a, R, C > &to_add) |
Returns a Matrix with values added along the main diagonal. More... | |