Changeset 857 in Sophya for trunk/SophyaProg/Tests/tsttvec.cc
- Timestamp:
- Apr 10, 2000, 3:04:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tsttvec.cc
r768 r857 8 8 #include "pexceptions.h" 9 9 10 #include " tvector.h"11 #include " nbrandom.h"10 #include "array.h" 11 #include "srandgen.h" 12 12 13 13 //////////////////////////////////////////////////////////////////////////////////////// … … 24 24 { 25 25 cout << " Test ecriture PPersist TVector " << endl; 26 FIO_T Vector<r_8> ftv(v1);26 FIO_TArray<r_8> ftv(v1); 27 27 ftv.Write("tvec.ppf"); 28 28 } 29 29 { 30 30 cout << " Test lecture PPersist TVector " << endl; 31 FIO_T Vector<r_8> ftv("tvec.ppf");31 FIO_TArray<r_8> ftv("tvec.ppf"); 32 32 cout<<"Vlue:"<<(TVector<r_8>)ftv<<endl; 33 33 } 34 34 35 35 36 cout<<"TVector(10,v,br)"<<endl; 37 TVector<r_8> v2(10,v,new Bridge); cout<<v2; 36 cout<<"TVector(10,v,br) (v2)"<<endl; 37 uint_4 siz[5]; 38 siz[1] = 10; 39 siz[0] = 1; 40 TVector<r_8> v2(TArray<r_8>(2,siz,v,1,0,new Bridge)); cout<<v2; 38 41 39 42 cout<<"TVector()"<<endl; … … 46 49 v3 = 123456.; cout<<v3; 47 50 48 cout<<"ps = v1 * v2"<<endl;49 r_8 ps = v1 * v2; cout<<"ps="<<ps<<endl;51 cout<<"ps = v2.Transpose() * v1"<<endl; 52 r_8 ps = (v2.Transpose()*v1).toScalar(); cout<<"ps="<<ps<<endl; 50 53 51 54 cout<<"v2 = 10.*v1"<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.