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

_dgematrix-calc.hpp File Reference

Go to the source code of this file.

Functions

_dgematrix t (const _dgematrix &mat)


Function Documentation

_dgematrix t const _dgematrix mat  )  [inline]
 

return transposed _dgematrix

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

References _dgematrix::destroy(), _dgematrix::M, and _dgematrix::N.

00004 {
00005   _dgematrix newmat(mat.N,mat.M);
00006   
00007   for(long i=0; i<newmat.M; i++){ for(long j=0; j<newmat.N; j++){
00008     newmat(i,j) =mat(j,i);
00009   }}
00010   
00011   mat.destroy();
00012   return newmat;
00013 }


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