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

Go to the source code of this file.

Functions

_zcovector t (const zrovector &rovec)
_zrovector conj (const zrovector &vec)
_zcovector conjt (const zrovector &rovec)
double nrm2 (const zrovector &vec)
long idamax (const zrovector &vec)
comple damax (const zrovector &vec)

Function Documentation

_zcovector t ( const zrovector rovec) [inline]

return a transposed column vector

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

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

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

return its conjugated vector

Definition at line 13 of file zrovector-calc.hpp.

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

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

return a conjugate transposed column vector

Definition at line 26 of file zrovector-calc.hpp.

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

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

return its Euclidean norm

Definition at line 43 of file zrovector-calc.hpp.

References zrovector::array, and zrovector::l.

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

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

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

References zrovector::array, and zrovector::l.

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

return its largest absolute value

Definition at line 58 of file zrovector-calc.hpp.

References zrovector::array, and zrovector::l.

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