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 _zcovector::array, _zrovector::array, _zcovector::l, and _zrovector::l.

{VERBOSE_REPORT;
  _zcovector covec;
  covec.l =rovec.l;
  delete [] covec.array;
  covec.array =rovec.array;
  
  return covec;
}
_zrovector conj ( const _zrovector vec) [inline]

return its conjugated vector

Definition at line 15 of file _zrovector-calc.hpp.

References conj(), i(), and _zrovector::l.

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

return a conjugate transposed column vector

Definition at line 23 of file _zrovector-calc.hpp.

References _(), conj(), _zrovector::destroy(), i(), and _zrovector::l.

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

return its Euclidean norm

Definition at line 38 of file _zrovector-calc.hpp.

References _zrovector::array, _zrovector::destroy(), and _zrovector::l.

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

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

Definition at line 48 of file _zrovector-calc.hpp.

References _zrovector::array, _zrovector::destroy(), i(), and _zrovector::l.

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

return its largest absolute value

Definition at line 57 of file _zrovector-calc.hpp.

References _zrovector::array, _zrovector::destroy(), and _zrovector::l.

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