Download this file
14 lines (11 with data), 475 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13 | //=============================================================================
/*! complex*zgsmatrix operator */
inline _zgsmatrix operator*(const std::complex<double>& d, const zgsmatrix& mat)
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] operator*(const std::complex<double>&, const zgsmatrix&)" << std::endl;
#endif//CPPL_VERBOSE
zgsmatrix newmat(mat.M, mat.N, mat.CAP);
for(long i=0; i<mat.VOL; i++){ newmat.Array[i] =d*mat.Array[i]; }
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.