Menu

[r147]: / trunk / include / double- / double-dssmatrix.hpp  Maximize  Restore  History

Download this file

11 lines (10 with data), 400 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
//=============================================================================
/*! double*dssmatrix operator */
inline _dssmatrix operator*(const double& d, const dssmatrix& mat)
{VERBOSE_REPORT;
dssmatrix newmat(mat.n, mat.data.size());
for(std::vector<dcomponent>::const_iterator it=mat.data.begin(); it!=mat.data.end(); it++){
newmat.put(it->i, it->j, d*it->v);
}
return _(newmat);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.