Download this file
10 lines (9 with data), 292 Bytes
| //=============================================================================
/*! */
template<long n>
inline dsymatrix_small<n> operator*(const double& v, const dsymatrix_small<n>& A)
{
dsymatrix_small<n> X;
for(long k=0; k<(n*(n+1))/2; k++){ X.array[k] =v*A.array[k]; }
return X;
}
|
×
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.