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

6
vec.cc
View File

@@ -162,6 +162,12 @@ return nn<rhs.nn;
}
template<>
void NRVec<double>::randomize(const double &x)
{
for(int i=0; i<nn; ++i) v[i] = x*(2.*random()/(1.+RAND_MAX) -1.);
}
// axpy call for T = double (not strided)
template<>