*** empty log message ***

This commit is contained in:
jiri
2008-03-03 15:35:37 +00:00
parent 5f84d14ce2
commit 687224f7e9
7 changed files with 129 additions and 1 deletions

View File

@@ -132,6 +132,12 @@ const T NRSMat<T>::trace() const
return tmp;
}
template<>
void NRSMat<double>::randomize(const double &x)
{
for(int i=0; i<NN2; ++i) v[i] = x*(2.*random()/(1.+RAND_MAX) -1.);
}
// write matrix to the file with specific format