Go to the source code of this file.
Functions | |
_dgematrix | t (const dgematrix &mat) |
|
return transposed dgematrix Definition at line 16 of file dgematrix-calc.hpp. References _dgematrix::M, dgematrix::M, _dgematrix::N, and dgematrix::N.
00017 { 00018 _dgematrix newmat(mat.N,mat.M); 00019 00020 for(long i=0; i<newmat.M; i++){ for(long j=0; j<newmat.N; j++){ 00021 newmat(i,j) =mat(j,i); 00022 }} 00023 00024 return newmat; 00025 } |