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

dgematrix-unary.hpp File Reference

Go to the source code of this file.

Functions

const dgematrixoperator+ (const dgematrix &mat)
_dgematrix operator- (const dgematrix &mat)


Function Documentation

const dgematrix& operator+ const dgematrix mat  )  [inline]
 

+dgematrix operator

Definition at line 3 of file dgematrix-unary.hpp.

00004 {
00005   return mat;
00006 }

_dgematrix operator- const dgematrix mat  )  [inline]
 

-dgematrix operator

Definition at line 10 of file dgematrix-unary.hpp.

References dgematrix::Array, _dgematrix::Array, dgematrix::M, _dgematrix::Ml, dgematrix::N, and _dgematrix::Nl.

00011 {
00012   _dgematrix newmat(mat.M,mat.N);
00013   for(long i=0; i<newmat.Ml*newmat.Nl; i++){ newmat.Array[i]=-mat.Array[i]; }
00014   return newmat;
00015 }


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