Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Types | List of all members
stan::math::append_return_type< Eigen::Matrix< T1, R, C >, Eigen::Matrix< T2, R, C > > Struct Template Reference

This template metaprogram is used to compute the return type for append_array. More...

#include <append_return_type.hpp>

Public Types

typedef Eigen::Matrix< typename return_type< T1, T2 >::type, R, C > type
 

Detailed Description

template<typename T1, typename T2, int R, int C>
struct stan::math::append_return_type< Eigen::Matrix< T1, R, C >, Eigen::Matrix< T2, R, C > >

This template metaprogram is used to compute the return type for append_array.

If both types are Eigen::Matrices with the same Row/Column specification, then the type member is another Eigen::Matrix with the same Row/Column specification and a scalar type promoted using return_type. Part of return type promotion logic for append_array

Template Parameters
T1Scalar type of first matrix argument
T2Scalar type of first matrix argument
REigen RowsAtCompileTime of both matrices
CEigen ColsAtCompileTime of both matrices

Definition at line 55 of file append_return_type.hpp.

Member Typedef Documentation

◆ type

template<typename T1 , typename T2 , int R, int C>
typedef Eigen::Matrix<typename return_type<T1, T2>::type, R, C> stan::math::append_return_type< Eigen::Matrix< T1, R, C >, Eigen::Matrix< T2, R, C > >::type

Definition at line 56 of file append_return_type.hpp.


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

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