Changeset 1321 in Sophya for trunk/SophyaPI/PIext/nomtmatvecadapter.cc
- Timestamp:
- Nov 13, 2000, 4:32:34 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomtmatvecadapter.cc
r1315 r1321 15 15 16 16 #include "fioarr.h" 17 17 #include "fitstarray.h" 18 18 19 19 … … 69 69 if (v != NULL) return( new TVector<T>(*v, share) ); 70 70 else return ( new TMatrix<T>(*mMtx, share) ); 71 } 72 73 /* --Methode-- */ 74 template <class T> 75 void NOMAdapter_TMatrix<T>::ReadFits(string const & flnm) 76 { 77 FitsInFile fis(flnm); 78 fis >> (*mMtx); 79 } 80 81 /* --Methode-- */ 82 template <class T> 83 void NOMAdapter_TMatrix<T>::SaveFits(string const & flnm) 84 { 85 FitsOutFile fos(flnm); 86 fos << (*mMtx); 87 } 88 // ---- Specialisation pour complexes ----- 89 void NOMAdapter_TMatrix< complex<r_4> >::ReadFits(string const & flnm) 90 { 91 cout << " NOMAdapter_TMatrix< complex<r_4> >::ReadFits() - Error " 92 << " Not supported (complex data type)" << endl; 93 } 94 void NOMAdapter_TMatrix< complex<r_4> >::SaveFits(string const & flnm) 95 { 96 cout << " NOMAdapter_TMatrix< complex<r_4> >::SaveFits() - Error " 97 << " Not supported (complex data type)" << endl; 98 } 99 100 void NOMAdapter_TMatrix< complex<r_8> >::ReadFits(string const & flnm) 101 { 102 cout << " NOMAdapter_TMatrix< complex<r_8> >::ReadFits() - Error " 103 << " Not supported (complex data type)" << endl; 104 } 105 void NOMAdapter_TMatrix< complex<r_8> >::SaveFits(string const & flnm) 106 { 107 cout << " NOMAdapter_TMatrix< complex<r_8> >::SaveFits() - Error " 108 << " Not supported (complex data type)" << endl; 71 109 } 72 110
Note:
See TracChangeset
for help on using the changeset viewer.