Stan Math Library
5.0.0
Automatic Differentiation
|
#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 EigMat , require_eigen_dense_dynamic_t< EigMat > * = nullptr> | |
EigMat | stan::math::to_matrix (EigMat &&x) |
Returns a matrix with dynamic dimensions constructed from an Eigen matrix. | |
template<typename EigVec , require_eigen_vector_t< EigVec > * = nullptr> | |
auto | stan::math::to_matrix (EigVec &&matrix) |
Returns a matrix with dynamic dimensions constructed from an Eigen row or column vector. | |
template<typename T > | |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (const std::vector< Eigen::Matrix< T, 1, Eigen::Dynamic > > &x) |
Returns a matrix representation of a standard vector of Eigen row vectors with the same dimensions and indexing order. | |
template<typename T > | |
Eigen::Matrix< return_type_t< T, double >, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (const std::vector< std::vector< T > > &x) |
Returns a matrix representation of the standard vector of standard vectors with the same dimensions and indexing order. | |
template<typename EigMat , require_eigen_t< EigMat > * = nullptr> | |
Eigen::Matrix< value_type_t< EigMat >, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (EigMat &&x, int m, int n) |
Returns a matrix representation of the vector in column-major order with the specified number of rows and columns. | |
template<typename T > | |
auto | stan::math::to_matrix (const std::vector< T > &x, int m, int n) |
Returns a matrix representation of the vector in column-major order with the specified number of rows and columns. | |
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (const std::vector< int > &x, int m, int n) |
Returns a matrix representation of the vector in column-major order with the specified number of rows and columns. | |
template<typename EigMat , require_eigen_t< EigMat > * = nullptr> | |
Eigen::Matrix< value_type_t< EigMat >, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (EigMat &&x, int m, int n, bool col_major) |
Returns a matrix representation of the vector in column-major order with the specified number of rows and columns. | |
template<typename T > | |
Eigen::Matrix< return_type_t< T, double >, Eigen::Dynamic, Eigen::Dynamic > | stan::math::to_matrix (const std::vector< T > &x, int m, int n, bool col_major) |
Returns a matrix representation of the vector in column-major order with the specified number of rows and columns. | |