Menu

[r151]: / trunk / include / _zhematrix- / _zhematrix-double.hpp  Maximize  Restore  History

Download this file

16 lines (14 with data), 526 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//=============================================================================
/*! _zhematrix*double operator */
inline _zhematrix operator*(const _zhematrix& mat, const double& d)
{CPPL_VERBOSE_REPORT;
zdscal_(mat.n*mat.n, d, mat.array, 1);
return mat;
}
//=============================================================================
/*! _zhematrix/double operator */
inline _zhematrix operator/(const _zhematrix& mat, const double& d)
{CPPL_VERBOSE_REPORT;
zdscal_(mat.n*mat.n, 1./d, mat.array, 1);
return mat;
}
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.