Public Types | Static Public Member Functions | List of all members
upgrade_val< T1, T2 > Struct Template Reference

#include <upgrade_val.hpp>

Public Types

typedef promote_type< T1, T2 >::result T1_result
 
typedef promote_type< T1, T2 >::result T2_result
 

Static Public Member Functions

static arma_inline promote_type< T1, T2 >::result apply (const T1 x)
 
static arma_inline promote_type< T1, T2 >::result apply (const T2 x)
 

Detailed Description

template<typename T1, typename T2>
struct upgrade_val< T1, T2 >

upgrade_val is used to ensure an operation such as multiplication is possible between two types. values are upgraded only where necessary.

Definition at line 23 of file upgrade_val.hpp.

Member Typedef Documentation

template<typename T1, typename T2>
typedef promote_type<T1,T2>::result upgrade_val< T1, T2 >::T1_result

Definition at line 25 of file upgrade_val.hpp.

template<typename T1, typename T2>
typedef promote_type<T1,T2>::result upgrade_val< T1, T2 >::T2_result

Definition at line 26 of file upgrade_val.hpp.

Member Function Documentation

template<typename T1, typename T2>
static arma_inline promote_type<T1,T2>::result upgrade_val< T1, T2 >::apply ( const T1  x)
inlinestatic

Definition at line 31 of file upgrade_val.hpp.

template<typename T1, typename T2>
static arma_inline promote_type<T1,T2>::result upgrade_val< T1, T2 >::apply ( const T2  x)
inlinestatic

Definition at line 40 of file upgrade_val.hpp.


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


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:01