Download this file
1 2 3 4 5 6 7 8 9
//============================================================================= /*! complex*_zgsmatrix operator */ inline _zgsmatrix operator*(const comple& d, const _zgsmatrix& mat) {VERBOSE_REPORT; for(std::vector<zcomponent>::iterator it=mat.data.begin(); it!=mat.data.end(); it++){ it->v *= d; } return mat; }