Changeset 857 in Sophya for trunk/SophyaProg/Tests/arrt.cc


Ignore:
Timestamp:
Apr 10, 2000, 3:04:05 PM (25 years ago)
Author:
ansari
Message:

Adapatation a SphereHEALPix, correction tsttmatrix.cc tsttvector.cc - Reza 10/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/arrt.cc

    r820 r857  
    44#include <iostream.h>
    55
    6 #include "nbrandom.h"
    76#include "tarrinit.h"
    87#include "array.h"
    9 // #include "fioarr.h"
    10 // #include "matharr.h"
    118#include "timing.h"
    129
     
    136133
    137134   
    138   for(int i=0; i<n; i++)
    139     for(int j=0; j<n; j++)  a(j,i) = GauRnd(0., 1.);
    140   cout << " ----- Matrix a = \n " << a << endl;
     135  //  for(int i=0; i<n; i++)
     136  //    for(int j=0; j<n; j++)  a(j,i) = GauRnd(0., 1.);
     137  a = Sequence(RandomSequence(RandomSequence::Gaussian, 0., 2.5));
     138  cout << " ----- Matrix a=Sequence(RandomSequence(RandomSequence::Gaussian, 0., 2.5)) = \n " << a << endl;
    141139  Vector x(n);
    142140  x = Sequence(1.,3.);
Note: See TracChangeset for help on using the changeset viewer.