Changeset 377 for trunk/test/svd_test.cc


Ignore:
Timestamp:
Aug 8, 2005, 1:33:13 AM (17 years ago)
Author:
Jari Häkkinen
Message:

Replaced utility::random_singleton.* with random::random.*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/svd_test.cc

    r358 r377  
    33#include <c++_tools/utility/SVD.h>
    44#include <c++_tools/gslapi/matrix.h>
    5 #include <c++_tools/utility/random_singleton.h>
     5#include <c++_tools/random/random.h>
    66#include <c++_tools/gslapi/vector.h>
    77
     
    1919
    2020
    21 bool test(size_t m, size_t n, utility::SVD::SVDalgorithm algo) {
    22 
     21bool test(size_t m, size_t n, utility::SVD::SVDalgorithm algo)
     22{
    2323  // accepted error, Jari: should be picked up from GSL
    2424  double MAXTOL=1e-13;
    25   utility::random_singleton* rng=utility::random_singleton::instance(-1);
    2625
    2726  // initialise a random test-matrix
     27  theplu::random::ContinuousUniform rnd;
    2828  gslapi::matrix A(m,n);
    2929  for (size_t i=0; i<m; ++i)
    3030    for(size_t j=0; j<n; ++j)
    31       A(i,j)=1000*rng->uniform_double();
     31      A(i,j)=1000*rnd();
    3232
    3333  utility::SVD svd(A);
Note: See TracChangeset for help on using the changeset viewer.