Stan Math Library  2.20.0
reverse mode automatic differentiation
Namespaces | Functions
as_array_or_scalar.hpp File Reference
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <vector>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T , int R, int C>
Eigen::ArrayWrapper< const Eigen::Matrix< T, R, C > > stan::math::as_array_or_scalar (const Eigen::Matrix< T, R, C > &v)
 Converts a matrix type to an array. More...
 
template<typename T , int R, int C>
Eigen::ArrayWrapper< const Eigen::Map< const Eigen::Matrix< T, R, C > > > stan::math::as_array_or_scalar (const Eigen::Map< const Eigen::Matrix< T, R, C >> &v)
 Converts a matrix type to an array. More...
 
template<typename T >
Eigen::Map< const Eigen::Array< T, Eigen::Dynamic, 1 > > stan::math::as_array_or_scalar (const std::vector< T > &v)
 Converts a std::vector type to an array. More...
 

     [ Stan Home Page ] © 2011–2018, Stan Development Team.