Stan Math Library
4.8.1
Automatic Differentiation
|
Template metaprogram to calculate a type for a matrix, vector, row vector or Eigen::Array whose underlying scalar is converted from the second template parameter type to the first.
T | result scalar type. |
S | input matrix type |
Definition at line 85 of file promote_scalar_type.hpp.
#include <promote_scalar_type.hpp>
Public Types | |
using | type = typename std::conditional< std::is_same< typename Eigen::internal::traits< std::decay_t< S > >::XprKind, Eigen::MatrixXpr >::value, Eigen::Matrix< typename promote_scalar_type< T, typename S::Scalar >::type, S::RowsAtCompileTime, S::ColsAtCompileTime >, Eigen::Array< typename promote_scalar_type< T, typename S::Scalar >::type, S::RowsAtCompileTime, S::ColsAtCompileTime > >::type |
The promoted type. | |