Changeset 857 in Sophya for trunk/SophyaProg/Tests/tsttvec.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/tsttvec.cc

    r768 r857  
    88#include "pexceptions.h"
    99
    10 #include "tvector.h"
    11 #include "nbrandom.h"
     10#include "array.h"
     11#include "srandgen.h"
    1212
    1313////////////////////////////////////////////////////////////////////////////////////////
     
    2424{
    2525cout << " Test ecriture PPersist TVector " << endl;
    26 FIO_TVector<r_8> ftv(v1);
     26FIO_TArray<r_8> ftv(v1);
    2727ftv.Write("tvec.ppf");
    2828}
    2929{
    3030cout << " Test lecture PPersist TVector " << endl;
    31 FIO_TVector<r_8> ftv("tvec.ppf");
     31FIO_TArray<r_8> ftv("tvec.ppf");
    3232cout<<"Vlue:"<<(TVector<r_8>)ftv<<endl;
    3333}
    3434
    3535
    36 cout<<"TVector(10,v,br)"<<endl;
    37 TVector<r_8> v2(10,v,new Bridge); cout<<v2;
     36cout<<"TVector(10,v,br) (v2)"<<endl;
     37uint_4 siz[5];
     38siz[1] = 10;
     39siz[0] = 1;
     40TVector<r_8> v2(TArray<r_8>(2,siz,v,1,0,new Bridge)); cout<<v2;
    3841
    3942cout<<"TVector()"<<endl;
     
    4649v3 = 123456.; cout<<v3;
    4750
    48 cout<<"ps = v1 * v2"<<endl;
    49 r_8 ps = v1 * v2; cout<<"ps="<<ps<<endl;
     51cout<<"ps =  v2.Transpose() * v1"<<endl;
     52r_8 ps = (v2.Transpose()*v1).toScalar(); cout<<"ps="<<ps<<endl;
    5053
    5154cout<<"v2 = 10.*v1"<<endl;
Note: See TracChangeset for help on using the changeset viewer.