Changeset 3713 in Sophya for trunk/SophyaPI/PIext/nomtmatvecadapter.cc
- Timestamp:
- Dec 11, 2009, 9:57:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomtmatvecadapter.cc
r3661 r3713 234 234 else { 235 235 dopt = "thinline " + dopt; 236 return( new PIYfXDrawer( new POTVectorAdapter<T>(v, false ), NULL, true) );237 } 238 } 239 240 /* --Methode-- */ 241 template <class T> 242 P2DArrayAdapter* NOMAdapter_TMatrix<T>::Get2DArray(string & )236 return( new PIYfXDrawer( new POTVectorAdapter<T>(v, false, StringToCmplxDispOption(dopt)), NULL, true) ); 237 } 238 } 239 240 /* --Methode-- */ 241 template <class T> 242 P2DArrayAdapter* NOMAdapter_TMatrix<T>::Get2DArray(string & dopt) 243 243 { 244 244 Image<T>* img = dynamic_cast<Image<T> *>(mMtx); 245 245 if (img != NULL) return ( new ImageAdapter<T>(img, false) ); 246 else return ( new POTMatrixAdapter<T>(mMtx, false) ); 247 } 246 else return ( new POTMatrixAdapter<T>(mMtx, false, StringToCmplxDispOption(dopt)) ); 247 } 248 248 249 249 250 // ---- Specialisation pour complexes ----- 250 251 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 251 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_4> >::Get2DArray(string & )252 { 253 return ( new POTMatrixAdapter< complex<r_4> >(mMtx, false) );254 } 255 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 256 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_8> >::Get2DArray(string & )257 { 258 return ( new POTMatrixAdapter< complex<r_8> >(mMtx, false) );252 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_4> >::Get2DArray(string & dopt) 253 { 254 return ( new POTMatrixAdapter< complex<r_4> >(mMtx, false, StringToCmplxDispOption(dopt) ) ); 255 } 256 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 257 P2DArrayAdapter* NOMAdapter_TMatrix< complex<r_8> >::Get2DArray(string & dopt) 258 { 259 return ( new POTMatrixAdapter< complex<r_8> >(mMtx, false, StringToCmplxDispOption(dopt) ) ); 259 260 } 260 261 // -------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.