CPPLapack
 All Classes Files Functions Variables Friends
Functions
zhematrix-double.hpp File Reference

Go to the source code of this file.

Functions

_zhematrix operator* (const zhematrix &mat, const double &d)
_zhematrix operator/ (const zhematrix &mat, const double &d)

Function Documentation

_zhematrix operator* ( const zhematrix mat,
const double &  d 
) [inline]

zhematrix*double operator

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

References _(), zhematrix::array, i(), and zhematrix::n.

{VERBOSE_REPORT;
  zhematrix newmat(mat.n);
  for(long i=0; i<mat.n*mat.n; i++){ newmat.array[i] =mat.array[i]*d; }
  
  return _(newmat);
}
_zhematrix operator/ ( const zhematrix mat,
const double &  d 
) [inline]

zhematrix/double operator

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

References _(), zhematrix::array, i(), and zhematrix::n.

{VERBOSE_REPORT;
  zhematrix newmat(mat.n);
  for(long i=0; i<mat.n*mat.n; i++){ newmat.array[i] =mat.array[i]/d; }
  
  return _(newmat);
}
 All Classes Files Functions Variables Friends