upgrade_val< std::complex< float >, std::complex< double > > Struct Template Reference
[Traits]

ensure we don't lose precision when multiplying complex numbers with different underlying types More...

#include <traits.hpp>

List of all members.

Public Types

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

Static Public Member Functions

static arma_inline const
std::complex< double > 
apply (const std::complex< float > &x)
static arma_inline const
std::complex< double > & 
apply (const std::complex< double > &x)


Detailed Description

template<>
struct upgrade_val< std::complex< float >, std::complex< double > >

ensure we don't lose precision when multiplying complex numbers with different underlying types

Definition at line 724 of file traits.hpp.


Member Typedef Documentation

typedef std::complex<double> upgrade_val< std::complex< float >, std::complex< double > >::T1_result

Definition at line 726 of file traits.hpp.

typedef std::complex<double> upgrade_val< std::complex< float >, std::complex< double > >::T2_result

Definition at line 727 of file traits.hpp.


Member Function Documentation

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

Definition at line 729 of file traits.hpp.

00729 { return std::complex<double>(x); }

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

Definition at line 730 of file traits.hpp.

00730 { return x; }