//=============================================================================
/*! dssmatrix*=double operator */
inline dssmatrix& dssmatrix::operator*=(const double& d)
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] dssmatrix::operator*=(const double&)" << std::endl;
#endif//CPPL_VERBOSE
//dscal_(VOL, d, Array, 1);
for(std::vector<dcomponent>::iterator it=Data.begin(); it!=Data.end(); it++){
it->v *=d;
}
return *this;
}
//=============================================================================
/*! dssmatrix/=double operator */
inline dssmatrix& dssmatrix::operator/=(const double& d)
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] dssmatrix::operator/=(const double&)" << std::endl;
#endif//CPPL_VERBOSE
//dscal_(VOL, 1./d, Array, 1);
for(std::vector<dcomponent>::iterator it=Data.begin(); it!=Data.end(); it++){
it->v /=d;
}
return *this;
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//=============================================================================
/*! dssmatrix*double operator */
inline _dssmatrix operator*(const dssmatrix& mat, const double& d)
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] operator*(const dssmatrix&, const double&)" << std::endl;
#endif//CPPL_VERBOSE
dssmatrix newmat(mat);
for(std::vector<dcomponent>::iterator it=newmat.Data.begin(); it!=mat.Data.end(); it++){
it->v *=d;
}
return _(newmat);
}
//=============================================================================
/*! dssmatrix/double operator */
inline _dssmatrix operator/(const dssmatrix& mat, const double& d)
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] operator/(const dssmatrix&, const double&)" << std::endl;
#endif//CPPL_VERBOSE
dssmatrix newmat(mat);
for(std::vector<dcomponent>::iterator it=newmat.Data.begin(); it!=mat.Data.end(); it++){
it->v /=d;
}
return _(newmat);
}