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

Go to the source code of this file.

Functions

void swap (zcovector &u, zcovector &v)
_zcovector _ (zcovector &vec)

Function Documentation

void swap ( zcovector u,
zcovector v 
) [inline]

swap two vectors

Definition at line 87 of file zcovector-misc.hpp.

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

{VERBOSE_REPORT;
  long u_l(u.l);
  comple* u_array(u.array);
  u.l=v.l; u.array=v.array;
  v.l=u_l; v.array=u_array;
}
_zcovector _ ( zcovector vec) [inline]

convert user object to smart-temporary object

Definition at line 97 of file zcovector-misc.hpp.

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

{VERBOSE_REPORT;
  _zcovector newvec;
  
  //////// shallow copy ////////
  newvec.l =vec.l;
  newvec.array =vec.array;
  
  //////// nullify ////////
  vec.l =0;
  vec.array =NULL;
  
  return newvec;
}
 All Classes Files Functions Variables Friends