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

Go to the source code of this file.

Functions

_drovector t (const dcovector &covec)
double nrm2 (const dcovector &vec)
long idamax (const dcovector &vec)
double damax (const dcovector &vec)

Function Documentation

_drovector t ( const dcovector covec) [inline]

return a transposed row vector

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

References _(), dcovector::array, drovector::array, and dcovector::l.

{VERBOSE_REPORT;
  drovector rovec(covec.l);
  dcopy_(covec.l, covec.array, 1, rovec.array, 1);
  
  return _(rovec);
}
double nrm2 ( const dcovector vec) [inline]

return its Euclidean norm

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

References dcovector::array, and dcovector::l.

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

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

Definition at line 21 of file dcovector-calc.hpp.

References dcovector::array, and dcovector::l.

{VERBOSE_REPORT;
  return idamax_(vec.l, vec.array, 1) -1;
}
double damax ( const dcovector vec) [inline]

return its largest absolute value

Definition at line 28 of file dcovector-calc.hpp.

References dcovector::array, and dcovector::l.

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