Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::promote_scalar_type< T, S, require_eigen_dense_base_t< S > > Struct Template Reference

Detailed Description

template<typename T, typename S>
struct stan::math::promote_scalar_type< T, S, require_eigen_dense_base_t< S > >

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.

Template Parameters
Tresult scalar type.
Sinput 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.
 

The documentation for this struct was generated from the following file: