CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
zcovector-calc.hpp File Reference

Go to the source code of this file.

Functions

_zrovector t (const zcovector &covec)
 
_zcovector conj (const zcovector &vec)
 
_zrovector conjt (const zcovector &covec)
 
double nrm2 (const zcovector &vec)
 
CPPL_INT idamax (const zcovector &vec)
 
comple damax (const zcovector &vec)
 

Function Documentation

_zrovector t ( const zcovector covec)
inline

return a transposed row vector

Definition at line 3 of file zcovector-calc.hpp.

References _(), zcovector::array, zrovector::array, and zcovector::l.

4 {CPPL_VERBOSE_REPORT;
5  zrovector rovec(covec.l);
6 
7  CPPL_INT inc =1;
8  zcopy_(&covec.l, covec.array, &inc, rovec.array, &inc);
9 
10  return _(rovec);
11 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
Complex Double-precision Row Vector Class.
Definition: zrovector.hpp:3
_dcovector _(dcovector &vec)
_zcovector conj ( const zcovector vec)
inline

return its conjugated vector

Definition at line 14 of file zcovector-calc.hpp.

References _(), i(), and zcovector::l.

Referenced by conjt().

15 {CPPL_VERBOSE_REPORT;
16  zcovector newvec(vec.l);
17 
18  for(CPPL_INT i=0; i<vec.l; i++){
19  newvec(i) =std::conj(vec(i));
20  }
21 
22  return _(newvec);
23 }
CPPL_INT l
vector size
Definition: zcovector.hpp:9
_dgematrix i(const _dgbmatrix &mat)
Complex Double-precision Column Vector Class.
Definition: zcovector.hpp:3
_dcovector _(dcovector &vec)
_zcovector conj(const zcovector &vec)
_zrovector conjt ( const zcovector covec)
inline

return a conjugate transposed row vector

Definition at line 27 of file zcovector-calc.hpp.

References _(), conj(), i(), and zcovector::l.

28 {CPPL_VERBOSE_REPORT;
29  zrovector rovec(covec.l);
30 
31  for(CPPL_INT i=0; i<covec.l; i++){
32  rovec(i) =std::conj(covec(i));
33  }
34 
35  return _(rovec);
36 }
CPPL_INT l
vector size
Definition: zcovector.hpp:9
_dgematrix i(const _dgbmatrix &mat)
Complex Double-precision Row Vector Class.
Definition: zrovector.hpp:3
_dcovector _(dcovector &vec)
_zcovector conj(const zcovector &vec)
double nrm2 ( const zcovector vec)
inline

return its Euclidean norm

Definition at line 44 of file zcovector-calc.hpp.

References zcovector::array, and zcovector::l.

45 {CPPL_VERBOSE_REPORT;
46  CPPL_INT inc =1;
47  return dznrm2_(&vec.l, vec.array, &inc);
48 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
CPPL_INT idamax ( const zcovector vec)
inline

return the index of element having the largest absolute value in 0-based numbering system

Definition at line 53 of file zcovector-calc.hpp.

References zcovector::array, and zcovector::l.

54 {CPPL_VERBOSE_REPORT;
55  CPPL_INT inc =1;
56  return izamax_(&vec.l, vec.array, &inc) -1;
57 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
comple damax ( const zcovector vec)
inline

return its largest absolute value

Definition at line 61 of file zcovector-calc.hpp.

References zcovector::array, and zcovector::l.

62 {CPPL_VERBOSE_REPORT;
63  CPPL_INT inc =1;
64  return vec.array[izamax_(&vec.l, vec.array, &inc) -1];
65 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9