Expression Templates Library (ETL)
Functions
safe_cast.hpp File Reference

Go to the source code of this file.

Functions

float * etl::impl::safe_cast (float *in)
 Cast any complex pointer to etl::complex pointer. More...
 
double * etl::impl::safe_cast (double *in)
 Cast any complex pointer to etl::complex pointer. More...
 
std::complex< float > * etl::impl::safe_cast (std::complex< float > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
std::complex< double > * etl::impl::safe_cast (std::complex< double > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
std::complex< float > * etl::impl::safe_cast (etl::complex< float > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
std::complex< double > * etl::impl::safe_cast (etl::complex< double > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const float * etl::impl::safe_cast (const float *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const double * etl::impl::safe_cast (const double *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const std::complex< float > * etl::impl::safe_cast (const std::complex< float > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const std::complex< double > * etl::impl::safe_cast (const std::complex< double > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const std::complex< float > * etl::impl::safe_cast (const etl::complex< float > *in)
 Cast any complex pointer to etl::complex pointer. More...
 
const std::complex< double > * etl::impl::safe_cast (const etl::complex< double > *in)
 Cast any complex pointer to etl::complex pointer. More...
 

Detailed Description

Contains the safe_cast function overloads.

This function helps generic code in the BLAS/CUBLAS wrappers to be able to convert types from etl::complex to std::complex easily.

Function Documentation

◆ safe_cast() [1/12]

float* etl::impl::safe_cast ( float *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [2/12]

double* etl::impl::safe_cast ( double *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [3/12]

std::complex<float>* etl::impl::safe_cast ( std::complex< float > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [4/12]

std::complex<double>* etl::impl::safe_cast ( std::complex< double > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [5/12]

std::complex<float>* etl::impl::safe_cast ( etl::complex< float > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [6/12]

std::complex<double>* etl::impl::safe_cast ( etl::complex< double > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [7/12]

const float* etl::impl::safe_cast ( const float *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [8/12]

const double* etl::impl::safe_cast ( const double *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [9/12]

const std::complex<float>* etl::impl::safe_cast ( const std::complex< float > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [10/12]

const std::complex<double>* etl::impl::safe_cast ( const std::complex< double > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [11/12]

const std::complex<float>* etl::impl::safe_cast ( const etl::complex< float > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer

◆ safe_cast() [12/12]

const std::complex<double>* etl::impl::safe_cast ( const etl::complex< double > *  in)
inline

Cast any complex pointer to etl::complex pointer.

Parameters
inThe input pointer
Returns
The casted pointer