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

◆ as_array_or_scalar() [3/4]

template<typename T , typename = require_eigen_t<T>, require_not_eigen_array_t< T > * = nullptr>
auto stan::math::as_array_or_scalar ( T &&  v)
inline

Converts a matrix type to an array.

Converts an std::vector<std::vector> to an Eigen Array.

Converts a std::vector type to an array.

Template Parameters
TType of Eigen Matrix or expression
Parameters
vSpecified Eigen Matrix or expression.
Returns
Matrix converted to an array.
Template Parameters
TType of scalar element.
Parameters
vSpecified vector.
Returns
Matrix converted to an array.
Template Parameters
TA standard vector with inner container of a standard vector with an inner stan scalar.
Parameters
vspecified vector of vectorized
Returns
An Eigen Array with dynamic rows and columns.

Definition at line 56 of file as_array_or_scalar.hpp.