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

dgematrix-double.hpp File Reference

Go to the source code of this file.

Functions

_dgematrix operator * (const dgematrix &mat, const double &d)
_dgematrix operator/ (const dgematrix &mat, const double &d)


Function Documentation

_dgematrix operator * const dgematrix mat,
const double &  d
[inline]
 

dgematrix*double operator

Definition at line 23 of file dgematrix-double.hpp.

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

00024 {
00025   _dgematrix newmat(mat.M, mat.N);
00026   for(int i=0; i<mat.Ml*mat.Nl; i++){ newmat.Array[i] =mat.Array[i]*d; }
00027   
00028   return newmat;
00029 }

_dgematrix operator/ const dgematrix mat,
const double &  d
[inline]
 

dgematrix/double operator

Definition at line 33 of file dgematrix-double.hpp.

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

00034 {
00035   double inv_d(1./d);
00036   
00037   _dgematrix newmat(mat.M, mat.N);
00038   for(int i=0; i<mat.Ml*mat.Nl; i++){ newmat.Array[i] =mat.Array[i]*inv_d; }
00039   
00040   return newmat;
00041 }


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