upgrade_val< T1, std::complex< T > > Struct Template Reference
[Traits]

#include <traits.hpp>

List of all members.

Public Types

typedef T T1_result
typedef std::complex< T > T2_result

Static Public Member Functions

static arma_inline const T apply (const T1 x)
static arma_inline const
std::complex< T > & 
apply (const std::complex< T > &x)


Detailed Description

template<>
struct upgrade_val< T1, std::complex< T > >

Definition at line 689 of file traits.hpp.


Member Typedef Documentation

typedef T upgrade_val< T1, std::complex< T > >::T1_result

Definition at line 691 of file traits.hpp.

typedef std::complex<T> upgrade_val< T1, std::complex< T > >::T2_result

Definition at line 692 of file traits.hpp.


Member Function Documentation

static arma_inline const T upgrade_val< T1, std::complex< T > >::apply ( const T1  x  )  [inline, static]

Definition at line 694 of file traits.hpp.

00694 { return T(x); }

static arma_inline const std::complex<T>& upgrade_val< T1, std::complex< T > >::apply ( const std::complex< T > &  x  )  [inline, static]

Definition at line 695 of file traits.hpp.

00695 { return x;    }