CVM Class Library  8.1
This C++ class library encapsulates concepts of vector and different matrices including square, band, symmetric and hermitian ones in Euclidean space of real and complex numbers.
 All Classes Files Functions Variables Typedefs Friends Macros Pages
Functions
arrays.cpp File Reference
#include "cvm.h"
#include "blas.h"
#include <cmath>
Include dependency graph for arrays.cpp:

Go to the source code of this file.

Functions

template<>
CVM_NAMESPACE_BEG CVM_API tint __norm< tint, tint > (const tint *pd, tint nSize, tint nIncr)
template<>
CVM_API void __scal< tint, tint > (tint *pd, tint nSize, tint nIncr, tint dScal)
template<>
CVM_API tint __idamax< tint > (const tint *pd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamin< tint > (const tint *pd, tint nSize, tint nIncr)
template<>
CVM_API float __norm< float, float > (const float *mpd, tint nSize, tint nIncr)
template<>
CVM_API double __norm< double, double > (const double *mpd, tint nSize, tint nIncr)
template<>
CVM_API float __norm< float, std::complex< float > > (const std::complex< float > *mpd, tint nSize, tint nIncr)
template<>
CVM_API double __norm< double, std::complex< double > > (const std::complex< double > *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamax< float > (const float *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamax< double > (const double *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamin< float > (const float *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamin< double > (const double *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamax< std::complex< float > > (const std::complex< float > *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamax< std::complex< double > > (const std::complex< double > *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamin< std::complex< float > > (const std::complex< float > *mpd, tint nSize, tint nIncr)
template<>
CVM_API tint __idamin< std::complex< double > > (const std::complex< double > *mpd, tint nSize, tint nIncr)
template<>
CVM_API void __add< float > (float *mpd, tint mnSize, tint mnIncr, const float *pv, tint nIncr)
template<>
CVM_API void __add< double > (double *mpd, tint mnSize, tint mnIncr, const double *pv, tint nIncr)
template<>
CVM_API void __subtract< float > (float *mpd, tint mnSize, tint mnIncr, const float *pv, tint nIncr)
template<>
CVM_API void __subtract< double > (double *mpd, tint mnSize, tint mnIncr, const double *pv, tint nIncr)
template<>
CVM_API void __add< std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, const std::complex< float > *pv, tint nIncr)
template<>
CVM_API void __add< std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, const std::complex< double > *pv, tint nIncr)
template<>
CVM_API void __subtract< std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, const std::complex< float > *pv, tint nIncr)
template<>
CVM_API void __subtract< std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, const std::complex< double > *pv, tint nIncr)
template<>
CVM_API void __scal< float, float > (float *mpd, tint mnSize, tint mnIncr, float dScal)
template<>
CVM_API void __scal< double, double > (double *mpd, tint mnSize, tint mnIncr, double dScal)
template<>
CVM_API void __scal< float, std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, float dScal)
template<>
CVM_API void __scal< double, std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, double dScal)
template<>
CVM_API void __copy2< float, std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, const float *pRe, const float *pIm, tint nReIncr, tint nImIncr)
template<>
CVM_API void __copy2< double, std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, const double *pRe, const double *pIm, tint nReIncr, tint nImIncr)
template<>
CVM_API void __copy_real< float, std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, const float *pRe, tint nReIncr)
template<>
CVM_API void __copy_real< double, std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, const double *pRe, tint nReIncr)
template<>
CVM_API void __copy_imag< float, std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr, const float *pIm, tint nImIncr)
template<>
CVM_API void __copy_imag< double, std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr, const double *pIm, tint nImIncr)
template<>
CVM_API void __conj< std::complex< float > > (std::complex< float > *mpd, tint mnSize, tint mnIncr)
template<>
CVM_API void __conj< std::complex< double > > (std::complex< double > *mpd, tint mnSize, tint mnIncr)
template<>
CVM_API void __randomize< float > (float *mpd, tint mnSize, tint mnIncr, float dFrom, float dTo)
template<>
CVM_API void __randomize< double > (double *mpd, tint mnSize, tint mnIncr, double dFrom, double dTo)
template<>
CVM_API void __randomize_real< std::complex< float >, float > (std::complex< float > *mpd, tint mnSize, tint mnIncr, float dFrom, float dTo)
template<>
CVM_API void __randomize_real< std::complex< double >, double > (std::complex< double > *mpd, tint mnSize, tint mnIncr, double dFrom, double dTo)
template<>
CVM_API void __randomize_imag< std::complex< float >, float > (std::complex< float > *mpd, tint mnSize, tint mnIncr, float dFrom, float dTo)
template<>
CVM_API void __randomize_imag< std::complex< double >, double > (std::complex< double > *mpd, tint mnSize, tint mnIncr, double dFrom, double dTo)

Function Documentation

template<>
CVM_NAMESPACE_BEG CVM_API tint __norm< tint, tint > ( const tint pd,
tint  nSize,
tint  nIncr 
)

Definition at line 17 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __scal< tint, tint > ( tint pd,
tint  nSize,
tint  nIncr,
tint  dScal 
)

Definition at line 29 of file arrays.cpp.

template<>
CVM_API tint __idamax< tint > ( const tint pd,
tint  nSize,
tint  nIncr 
)

Definition at line 39 of file arrays.cpp.

template<>
CVM_API tint __idamin< tint > ( const tint pd,
tint  nSize,
tint  nIncr 
)

Definition at line 55 of file arrays.cpp.

template<>
CVM_API float __norm< float, float > ( const float *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 71 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API double __norm< double, double > ( const double *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 78 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API float __norm< float, std::complex< float > > ( const std::complex< float > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 85 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API double __norm< double, std::complex< double > > ( const std::complex< double > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 92 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamax< float > ( const float *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 99 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamax< double > ( const double *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 106 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamin< float > ( const float *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 113 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamin< double > ( const double *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 120 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamax< std::complex< float > > ( const std::complex< float > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 127 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamax< std::complex< double > > ( const std::complex< double > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 134 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamin< std::complex< float > > ( const std::complex< float > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 141 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API tint __idamin< std::complex< double > > ( const std::complex< double > *  mpd,
tint  nSize,
tint  nIncr 
)

Definition at line 148 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __add< float > ( float *  mpd,
tint  mnSize,
tint  mnIncr,
const float *  pv,
tint  nIncr 
)

Definition at line 155 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __add< double > ( double *  mpd,
tint  mnSize,
tint  mnIncr,
const double *  pv,
tint  nIncr 
)

Definition at line 164 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __subtract< float > ( float *  mpd,
tint  mnSize,
tint  mnIncr,
const float *  pv,
tint  nIncr 
)

Definition at line 173 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __subtract< double > ( double *  mpd,
tint  mnSize,
tint  mnIncr,
const double *  pv,
tint  nIncr 
)

Definition at line 182 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __add< std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
const std::complex< float > *  pv,
tint  nIncr 
)

Definition at line 191 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __add< std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
const std::complex< double > *  pv,
tint  nIncr 
)

Definition at line 200 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __subtract< std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
const std::complex< float > *  pv,
tint  nIncr 
)

Definition at line 209 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __subtract< std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
const std::complex< double > *  pv,
tint  nIncr 
)

Definition at line 218 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __scal< float, float > ( float *  mpd,
tint  mnSize,
tint  mnIncr,
float  dScal 
)

Definition at line 227 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __scal< double, double > ( double *  mpd,
tint  mnSize,
tint  mnIncr,
double  dScal 
)

Definition at line 234 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __scal< float, std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
float  dScal 
)

Definition at line 241 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __scal< double, std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
double  dScal 
)

Definition at line 248 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy2< float, std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
const float *  pRe,
const float *  pIm,
tint  nReIncr,
tint  nImIncr 
)

Definition at line 271 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy2< double, std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
const double *  pRe,
const double *  pIm,
tint  nReIncr,
tint  nImIncr 
)

Definition at line 306 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy_real< float, std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
const float *  pRe,
tint  nReIncr 
)

Definition at line 341 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy_real< double, std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
const double *  pRe,
tint  nReIncr 
)

Definition at line 354 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy_imag< float, std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
const float *  pIm,
tint  nImIncr 
)

Definition at line 367 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __copy_imag< double, std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
const double *  pIm,
tint  nImIncr 
)

Definition at line 380 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __conj< std::complex< float > > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr 
)

Definition at line 393 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __conj< std::complex< double > > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr 
)

Definition at line 399 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize< float > ( float *  mpd,
tint  mnSize,
tint  mnIncr,
float  dFrom,
float  dTo 
)

Definition at line 405 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize< double > ( double *  mpd,
tint  mnSize,
tint  mnIncr,
double  dFrom,
double  dTo 
)

Definition at line 415 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize_real< std::complex< float >, float > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
float  dFrom,
float  dTo 
)

Definition at line 425 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize_real< std::complex< double >, double > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
double  dFrom,
double  dTo 
)

Definition at line 439 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize_imag< std::complex< float >, float > ( std::complex< float > *  mpd,
tint  mnSize,
tint  mnIncr,
float  dFrom,
float  dTo 
)

Definition at line 453 of file arrays.cpp.

Here is the call graph for this function:

template<>
CVM_API void __randomize_imag< std::complex< double >, double > ( std::complex< double > *  mpd,
tint  mnSize,
tint  mnIncr,
double  dFrom,
double  dTo 
)

Definition at line 467 of file arrays.cpp.

Here is the call graph for this function: