CPPLapack
 All Classes Files Functions Variables Friends
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)
long 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.

{VERBOSE_REPORT;
  zrovector rovec(covec.l);
  zcopy_(covec.l, covec.array, 1, rovec.array, 1);
  
  return _(rovec);
}
_zcovector conj ( const zcovector vec) [inline]

return its conjugated vector

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

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

{VERBOSE_REPORT;
  zcovector newvec(vec.l);
  for(long i=0; i<vec.l; i++){ newvec(i) =std::conj(vec(i)); }
  
  return _(newvec);
}
_zrovector conjt ( const zcovector covec) [inline]

return a conjugate transposed row vector

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

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

{VERBOSE_REPORT;
  zrovector rovec(covec.l);
  for(long i=0; i<covec.l; i++){ rovec(i) =std::conj(covec(i)); }
  
  return _(rovec);
}
double nrm2 ( const zcovector vec) [inline]

return its Euclidean norm

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

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

{VERBOSE_REPORT;
  return dznrm2_(vec.l, vec.array, 1);
}
long idamax ( const zcovector vec) [inline]

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

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

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

{VERBOSE_REPORT;
  return izamax_(vec.l, vec.array, 1) -1;
}
comple damax ( const zcovector vec) [inline]

return its largest absolute value

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

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

{VERBOSE_REPORT;
  return vec.array[izamax_(vec.l, vec.array, 1) -1];
}
 All Classes Files Functions Variables Friends