Changeset 857 in Sophya for trunk/SophyaProg/Tests/tsttmat.cc
- Timestamp:
- Apr 10, 2000, 3:04:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tsttmat.cc
r768 r857 7 7 #include "ntoolsinit.h" 8 8 #include "pexceptions.h" 9 #include " tmatrix.h"10 #include " nbrandom.h"9 #include "array.h" 10 #include "srandgen.h" 11 11 12 12 //////////////////////////////////////////////////////////////////////////////////////// … … 24 24 { 25 25 cout << " Test ecriture PPersist TMatrix " << endl; 26 FIO_T Matrix<r_8> ftm(A);26 FIO_TArray<r_8> ftm(A); 27 27 ftm.Write("tmtx.ppf"); 28 28 } 29 29 { 30 30 cout << " Test lecture PPersist TMatrix " << endl; 31 FIO_T Matrix<r_8> ftm("tmtx.ppf");31 FIO_TArray<r_8> ftm("tmtx.ppf"); 32 32 cout<<"Alue:"<<(TMatrix<r_8>)ftm<<endl; 33 33 } … … 182 182 { 183 183 Matrix M(X); cout<<"Matrix M"<<endl<<M<<endl; 184 Matrix MI = M.Inverse(); cout<<"MI"<<endl<<MI;184 Matrix MI = Inverse(M); cout<<"MI"<<endl<<MI; 185 185 MI *= M; cout<<"MI*M"<<endl<<MI; 186 186 r_8 xmin=-1.; … … 196 196 cout<<"TMatrix X"<<endl<<X; 197 197 TMatrix<r_8> Xinv; 198 Xinv = X.Inverse();198 Xinv = Inverse(X); 199 199 cout<<"TMatrix Xinv"<<endl<<Xinv; 200 200 Xinv *= X; … … 213 213 cout<<"MI"<<endl<<MI; 214 214 { 215 TMatrix<r_8> L(MI.NRows(),MI.NCol(),MI.Data(),new Bridge); 216 cout<<"L"<<endl<<L; 217 L *= 100.; cout<<"L*=100."<<endl<<L; 215 uint_4 siz[5]; 216 siz[0] = MI.NCols(); 217 siz[1] = MI.NRows(); 218 TArray<r_8> A(2, siz, MI.Data(), 1, 0, new Bridge); 219 TMatrix<r_8> L(A); 220 cout<<"L"<<endl<<L; 221 L *= 100.; cout<<"L*=100."<<endl<<L; 218 222 } // destruction de L 219 223 cout<<"MI(4,4)="<<MI(4,4)<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.