$search

upgrade_val< T1, T2 > Struct Template Reference
[Upgrade_val]

#include <upgrade_val.hpp>

List of all members.

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 T2 x)
static arma_inline
promote_type< T1, T2 >::result 
apply (const T1 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 T2  x  )  [inline, static]

Definition at line 40 of file upgrade_val.hpp.

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

Definition at line 31 of file upgrade_val.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Mar 5 12:27:59 2013