*** 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

9
mat.cc
View File

@@ -492,6 +492,15 @@ return r;
}
//randomize
template<>
void NRMat<double>::randomize(const double &x)
{
for(int i=0; i<nn; ++i)
for(int j=0; j<mm; ++j)
(*this)(i,j) = x*(2.*random()/(1.+RAND_MAX) -1.);
}
// Mat *= a