Main Page | Class List | File List | Class Members | File Members | Related Pages

drovector-misc.hpp File Reference

Go to the source code of this file.

Functions

void swap (drovector &u, drovector &v)


Function Documentation

void swap drovector u,
drovector v
[inline]
 

swap two vectors

Definition at line 95 of file drovector-misc.hpp.

References drovector::Array, drovector::Desc, drovector::L, and drovector::Ll.

00096 {
00097   long u_L(u.L), u_Ll(u.Ll), u_Desc[9];
00098   double* u_Array(u.Array);
00099   u.L=v.L; u.Ll=v.Ll;  u.Array=v.Array;
00100   v.L=u_L; v.Ll=u_Ll;  v.Array=u_Array;
00101   for(int i=0; i<9; i++){
00102     u_Desc[i] =u.Desc[i];
00103     u.Desc[i] =v.Desc[i];
00104     v.Desc[i] =u_Desc[i];
00105   }
00106 }


Generated on Sat Jan 31 19:25:44 2004 for CPPScaLapack by doxygen 1.3.5