[585] | 1 | #include "machdefs.h"
|
---|
| 2 | #include <stdlib.h>
|
---|
| 3 | #include <typeinfo>
|
---|
[2322] | 4 | #include <iostream>
|
---|
[585] | 5 | #include <string>
|
---|
| 6 | #include <complex>
|
---|
| 7 |
|
---|
[1224] | 8 | #include "datatype.h"
|
---|
| 9 |
|
---|
[585] | 10 | #include "tvector.h"
|
---|
[1207] | 11 | #include "objfitter.h"
|
---|
[585] | 12 | #include "nomtmatvecadapter.h"
|
---|
[1905] | 13 | #include "piyfxdrw.h"
|
---|
[585] | 14 | #include "pitvmaad.h"
|
---|
| 15 |
|
---|
[810] | 16 | #include "fioarr.h"
|
---|
[1321] | 17 | #include "fitstarray.h"
|
---|
[585] | 18 |
|
---|
| 19 |
|
---|
| 20 | //----------------------------------------------------------------
|
---|
| 21 | // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet TMatrix<T>
|
---|
| 22 | //----------------------------------------------------------------
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | /* --Methode-- */
|
---|
| 26 | template <class T>
|
---|
| 27 | NOMAdapter_TMatrix<T>::NOMAdapter_TMatrix(TMatrix<T>* o)
|
---|
| 28 | : NObjMgrAdapter(o)
|
---|
| 29 | {
|
---|
| 30 | mMtx = o;
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | /* --Methode-- */
|
---|
| 34 | template <class T>
|
---|
| 35 | NOMAdapter_TMatrix<T>::~NOMAdapter_TMatrix()
|
---|
| 36 | {
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | /* --Methode-- */
|
---|
| 40 | template <class T>
|
---|
| 41 | NObjMgrAdapter* NOMAdapter_TMatrix<T>::Clone(AnyDataObj* o)
|
---|
| 42 | {
|
---|
| 43 | TMatrix<T>* m = dynamic_cast<TMatrix<T> *>(o);
|
---|
| 44 | if (m) return ( new NOMAdapter_TMatrix<T>(m) );
|
---|
| 45 | return ( new NObjMgrAdapter(o) );
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | /* --Methode-- */
|
---|
| 49 | template <class T>
|
---|
[1165] | 50 | string NOMAdapter_TMatrix<T>::GetDataObjType()
|
---|
[585] | 51 | {
|
---|
[1165] | 52 | string type = "TMatrix< ";
|
---|
| 53 |
|
---|
| 54 | TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 55 | if (v != NULL) type = "TVector< ";
|
---|
| 56 |
|
---|
[1224] | 57 | // type += DecodeTypeIdName(typeid(T).name());
|
---|
[1237] | 58 | type += DataTypeInfo<T>::getTypeName();
|
---|
[1165] | 59 | type += " > ";
|
---|
| 60 | return(type);
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | /* --Methode-- */
|
---|
| 64 | template <class T>
|
---|
[1315] | 65 | AnyDataObj* NOMAdapter_TMatrix<T>::CloneDataObj(bool share)
|
---|
[1165] | 66 | {
|
---|
[585] | 67 | if (mMtx == NULL) return(NULL);
|
---|
| 68 | TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
|
---|
[1315] | 69 | if (v != NULL) return( new TVector<T>(*v, share) );
|
---|
| 70 | else return ( new TMatrix<T>(*mMtx, share) );
|
---|
[585] | 71 | }
|
---|
| 72 |
|
---|
| 73 | /* --Methode-- */
|
---|
| 74 | template <class T>
|
---|
[1321] | 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 -----
|
---|
[2343] | 89 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1321] | 90 | void NOMAdapter_TMatrix< complex<r_4> >::ReadFits(string const & flnm)
|
---|
| 91 | {
|
---|
| 92 | cout << " NOMAdapter_TMatrix< complex<r_4> >::ReadFits() - Error "
|
---|
| 93 | << " Not supported (complex data type)" << endl;
|
---|
| 94 | }
|
---|
[2343] | 95 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1321] | 96 | void NOMAdapter_TMatrix< complex<r_4> >::SaveFits(string const & flnm)
|
---|
| 97 | {
|
---|
| 98 | cout << " NOMAdapter_TMatrix< complex<r_4> >::SaveFits() - Error "
|
---|
| 99 | << " Not supported (complex data type)" << endl;
|
---|
| 100 | }
|
---|
| 101 |
|
---|
[2343] | 102 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1321] | 103 | void NOMAdapter_TMatrix< complex<r_8> >::ReadFits(string const & flnm)
|
---|
| 104 | {
|
---|
| 105 | cout << " NOMAdapter_TMatrix< complex<r_8> >::ReadFits() - Error "
|
---|
| 106 | << " Not supported (complex data type)" << endl;
|
---|
| 107 | }
|
---|
[2343] | 108 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1321] | 109 | void NOMAdapter_TMatrix< complex<r_8> >::SaveFits(string const & flnm)
|
---|
| 110 | {
|
---|
| 111 | cout << " NOMAdapter_TMatrix< complex<r_8> >::SaveFits() - Error "
|
---|
| 112 | << " Not supported (complex data type)" << endl;
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | /* --Methode-- */
|
---|
| 116 | template <class T>
|
---|
[585] | 117 | void NOMAdapter_TMatrix<T>::SavePPF(POutPersist& pos, string const & nom)
|
---|
| 118 | {
|
---|
| 119 | if (mMtx == NULL) return;
|
---|
| 120 | TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 121 | if (v != NULL) {
|
---|
[810] | 122 | FIO_TArray<T> fio(v);
|
---|
[585] | 123 | fio.Write(pos, nom);
|
---|
| 124 | }
|
---|
| 125 | else {
|
---|
[810] | 126 | FIO_TArray<T> fio(mMtx);
|
---|
[585] | 127 | fio.Write(pos, nom);
|
---|
| 128 | }
|
---|
| 129 | }
|
---|
| 130 |
|
---|
| 131 | /* --Methode-- */
|
---|
| 132 | template <class T>
|
---|
| 133 | void NOMAdapter_TMatrix<T>::Print(ostream& os)
|
---|
| 134 | {
|
---|
| 135 | TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 136 | if (v != NULL) os << (*v);
|
---|
| 137 | else os << (*mMtx);
|
---|
| 138 | }
|
---|
| 139 |
|
---|
| 140 | /* --Methode-- */
|
---|
| 141 | template <class T>
|
---|
| 142 | PIDrawer* NOMAdapter_TMatrix<T>::GetDrawer(string & dopt)
|
---|
| 143 | {
|
---|
| 144 | TVector<T>* v = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 145 | if (v == NULL) return(NULL);
|
---|
| 146 | else {
|
---|
[1971] | 147 | dopt = "thinline " + dopt;
|
---|
[585] | 148 | return( new PIYfXDrawer( new POTVectorAdapter<T>(v, false), NULL, true) );
|
---|
| 149 | }
|
---|
| 150 | }
|
---|
| 151 |
|
---|
| 152 | /* --Methode-- */
|
---|
| 153 | template <class T>
|
---|
| 154 | P2DArrayAdapter* NOMAdapter_TMatrix<T>::Get2DArray(string &)
|
---|
| 155 | {
|
---|
| 156 | return ( new POTMatrixAdapter<T>(mMtx, false) );
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | /* --Methode-- */
|
---|
| 160 | template <class T>
|
---|
| 161 | NTupleInterface* NOMAdapter_TMatrix<T>::GetNTupleInterface(bool& adel)
|
---|
| 162 | {
|
---|
| 163 | adel = true;
|
---|
| 164 | return( new NTupInt_TMatrix<T>(mMtx) );
|
---|
| 165 | }
|
---|
| 166 |
|
---|
| 167 |
|
---|
[1207] | 168 | /* --Methode-- */
|
---|
| 169 | template <class T>
|
---|
| 170 | GeneralFitData* NOMAdapter_TMatrix<T>::GetGeneralFitData(bool& adel
|
---|
| 171 | ,GeneralFitData::FitErrType errtype,double errscale,double errmin
|
---|
| 172 | ,int i1,int i2,int j1,int j2)
|
---|
| 173 | {
|
---|
| 174 | adel = false;
|
---|
| 175 | if(!mMtx) return(NULL);
|
---|
[585] | 176 |
|
---|
[1207] | 177 | int nx,ny;
|
---|
| 178 | TVector<T>* vec = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 179 |
|
---|
| 180 | if(vec) { // C'est un TVector
|
---|
| 181 | nx = vec->NElts();
|
---|
| 182 | ny = 1;
|
---|
| 183 | } else {
|
---|
| 184 | nx = mMtx->NRows();
|
---|
| 185 | ny = mMtx->NCol();
|
---|
| 186 | if(nx<=0 || ny<=0) return(NULL);
|
---|
| 187 | }
|
---|
| 188 |
|
---|
| 189 | i1 = (i1<0||i1>=nx)? 0: i1;
|
---|
| 190 | i2 = (i2<0||i2>=nx||i2<i1)? nx-1: i2;
|
---|
| 191 | j1 = (j1<0||j1>=ny)? 0: j1;
|
---|
| 192 | j2 = (j2<0||j2>=ny||j2<j1)? ny-1: j2;
|
---|
| 193 |
|
---|
| 194 | GeneralFitData* mGData = NULL;
|
---|
| 195 |
|
---|
| 196 | if(vec) { // C'est un TVector
|
---|
| 197 | mGData = new GeneralFitData(1,(i2-i1+1),0);
|
---|
| 198 | adel = true;
|
---|
| 199 | for(int i=i1;i<=i2;i++) {
|
---|
| 200 | double x = (double) i;
|
---|
| 201 | double f = (*vec)(i);
|
---|
| 202 | double e = 1.;
|
---|
| 203 | e = GeneralFitData::ComputeError(f,e,errtype,errscale,errmin);
|
---|
| 204 | mGData->AddData1(x,f,e);
|
---|
| 205 | }
|
---|
| 206 | } else {
|
---|
| 207 | mGData = new GeneralFitData(2,(i2-i1+1)*(j2-j1+1),0);
|
---|
| 208 | adel = true;
|
---|
| 209 | for(int i=i1;i<=i2;i++) for(int j=j1;j<=j2;j++) {
|
---|
| 210 | double x = (double) i;
|
---|
| 211 | double y = (double) j;
|
---|
| 212 | double f = (*mMtx)(i,j);
|
---|
| 213 | double e = 1.;
|
---|
| 214 | e = GeneralFitData::ComputeError(f,e,errtype,errscale,errmin);
|
---|
| 215 | mGData->AddData2(x,y,f,e);
|
---|
| 216 | }
|
---|
| 217 | }
|
---|
| 218 |
|
---|
| 219 | return mGData;
|
---|
| 220 | }
|
---|
| 221 |
|
---|
| 222 | template <class T>
|
---|
| 223 | AnyDataObj* NOMAdapter_TMatrix<T>::FitResidusObj(GeneralFit& mfit)
|
---|
| 224 | {
|
---|
| 225 | TVector<T>* vec = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 226 | if(vec) {
|
---|
| 227 | TVector<T>* v = new TVector<T>(ObjectFitter::FitResidus(*vec,mfit),true);
|
---|
| 228 | return v;
|
---|
| 229 | } else {
|
---|
| 230 | TMatrix<T>* m = new TMatrix<T>(ObjectFitter::FitResidus(*mMtx,mfit),true);
|
---|
| 231 | return m;
|
---|
| 232 | }
|
---|
| 233 | }
|
---|
| 234 |
|
---|
| 235 | template <class T>
|
---|
| 236 | AnyDataObj* NOMAdapter_TMatrix<T>::FitFunctionObj(GeneralFit& mfit)
|
---|
| 237 | {
|
---|
| 238 | TVector<T>* vec = dynamic_cast<TVector<T> *>(mMtx);
|
---|
| 239 | if(vec) {
|
---|
| 240 | TVector<T>* v = new TVector<T>(ObjectFitter::FitFunction(*vec,mfit),true);
|
---|
| 241 | return v;
|
---|
| 242 | } else {
|
---|
| 243 | TMatrix<T>* m = new TMatrix<T>(ObjectFitter::FitFunction(*mMtx,mfit),true);
|
---|
| 244 | return m;
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
| 247 |
|
---|
[1315] | 248 | // ---- Specialisation pour complexes -----
|
---|
[2343] | 249 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 250 | GeneralFitData* NOMAdapter_TMatrix< complex<r_4> >::GetGeneralFitData(bool& adel
|
---|
| 251 | ,GeneralFitData::FitErrType errtype,double errscale,double errmin
|
---|
| 252 | ,int i1,int i2,int j1,int j2)
|
---|
| 253 | {
|
---|
| 254 | return(NULL);
|
---|
| 255 | }
|
---|
[1207] | 256 |
|
---|
[2343] | 257 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 258 | AnyDataObj* NOMAdapter_TMatrix< complex<r_4> >::FitResidusObj(GeneralFit& mfit)
|
---|
| 259 | {
|
---|
| 260 | return(NULL);
|
---|
| 261 | }
|
---|
| 262 |
|
---|
[2343] | 263 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 264 | AnyDataObj* NOMAdapter_TMatrix< complex<r_4> >::FitFunctionObj(GeneralFit& mfit)
|
---|
| 265 | {
|
---|
| 266 | return(NULL);
|
---|
| 267 | }
|
---|
| 268 |
|
---|
[2343] | 269 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 270 | GeneralFitData* NOMAdapter_TMatrix< complex<r_8> >::GetGeneralFitData(bool& adel
|
---|
| 271 | ,GeneralFitData::FitErrType errtype,double errscale,double errmin
|
---|
| 272 | ,int i1,int i2,int j1,int j2)
|
---|
| 273 | {
|
---|
| 274 | return(NULL);
|
---|
| 275 | }
|
---|
| 276 |
|
---|
[2343] | 277 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 278 | AnyDataObj* NOMAdapter_TMatrix< complex<r_8> >::FitResidusObj(GeneralFit& mfit)
|
---|
| 279 | {
|
---|
| 280 | return(NULL);
|
---|
| 281 | }
|
---|
| 282 |
|
---|
[2343] | 283 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 284 | AnyDataObj* NOMAdapter_TMatrix< complex<r_8> >::FitFunctionObj(GeneralFit& mfit)
|
---|
| 285 | {
|
---|
| 286 | return(NULL);
|
---|
| 287 | }
|
---|
| 288 |
|
---|
[585] | 289 | // -------------------------------------------------------------
|
---|
| 290 |
|
---|
| 291 | /* --Methode-- */
|
---|
| 292 | template <class T>
|
---|
| 293 | NTupInt_TMatrix<T>::NTupInt_TMatrix(TMatrix<T>* m)
|
---|
| 294 | {
|
---|
| 295 | mMtx = m;
|
---|
| 296 | }
|
---|
| 297 |
|
---|
| 298 | /* --Methode-- */
|
---|
| 299 | template <class T>
|
---|
| 300 | NTupInt_TMatrix<T>::~NTupInt_TMatrix()
|
---|
| 301 | {
|
---|
| 302 | }
|
---|
| 303 |
|
---|
| 304 | /* --Methode-- */
|
---|
| 305 | template <class T>
|
---|
| 306 | uint_4 NTupInt_TMatrix<T>::NbLines() const
|
---|
| 307 | {
|
---|
| 308 | return( mMtx->NRows()*mMtx->NCols() );
|
---|
| 309 | }
|
---|
| 310 |
|
---|
| 311 | /* --Methode-- */
|
---|
| 312 | template <class T>
|
---|
| 313 | uint_4 NTupInt_TMatrix<T>::NbColumns() const
|
---|
| 314 | {
|
---|
| 315 | return(8);
|
---|
| 316 | }
|
---|
| 317 |
|
---|
| 318 | /* --Methode-- */
|
---|
| 319 | template <class T>
|
---|
| 320 | r_8* NTupInt_TMatrix<T>::GetLineD(int n) const
|
---|
| 321 | {
|
---|
| 322 | int i,j;
|
---|
| 323 | if ((n < 0) || (n >= (int)(mMtx->NRows()*mMtx->NCols()) )) {
|
---|
| 324 | mRet[0] = n;
|
---|
| 325 | for(i=1; i<8; i++) mRet[i] = 0.;
|
---|
| 326 | }
|
---|
| 327 | else {
|
---|
| 328 | i = n/mMtx->NCols(); j = n%mMtx->NCols();
|
---|
| 329 | mRet[0] = n; mRet[1] = i; mRet[2] = j;
|
---|
| 330 | mRet[3] = (*mMtx)(i,j);
|
---|
| 331 | mRet[4] = mRet[2]; mRet[5] = 0.;
|
---|
| 332 | mRet[6] = mRet[2]; mRet[7] = 0.;
|
---|
| 333 | }
|
---|
| 334 | return(mRet);
|
---|
| 335 | }
|
---|
| 336 |
|
---|
| 337 | /* --Methode-- */
|
---|
| 338 | template <class T>
|
---|
| 339 | string NTupInt_TMatrix<T>::VarList_C(const char* nx) const
|
---|
| 340 | {
|
---|
| 341 | string nomx;
|
---|
| 342 | if (nx) nomx = nx;
|
---|
| 343 | else nomx = "_xh_";
|
---|
| 344 | string vardec = "double n,r,c,val,real,imag,mod,phas; \n";
|
---|
| 345 | vardec += "n = " + nomx + "[0]; r = " + nomx + "[1]; c = " + nomx + "[2]; \n";
|
---|
| 346 | vardec += "val = " + nomx + "[3]; \n";
|
---|
| 347 | vardec += "real = " + nomx + "[4]; imag = " + nomx + "[5]; \n";
|
---|
| 348 | vardec += "mod = " + nomx + "[6]; phas = " + nomx + "[7]; \n";
|
---|
| 349 | return(vardec);
|
---|
| 350 | }
|
---|
| 351 |
|
---|
| 352 | /* --Methode-- */
|
---|
[2343] | 353 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 354 | r_8* NTupInt_TMatrix< complex<r_4> >::GetLineD(int n) const
|
---|
[585] | 355 | {
|
---|
| 356 | int i,j;
|
---|
| 357 | if ((n < 0) || (n >= (int)(mMtx->NRows()*mMtx->NCols()) )) {
|
---|
| 358 | mRet[0] = n;
|
---|
| 359 | for(i=1; i<8; i++) mRet[i] = 0.;
|
---|
| 360 | }
|
---|
| 361 | else {
|
---|
| 362 | i = n/mMtx->NCols(); j = n%mMtx->NCols();
|
---|
| 363 | mRet[0] = n; mRet[1] = i; mRet[2] = j;
|
---|
| 364 | mRet[4] = (*mMtx)(i,j).real(); mRet[5] = (*mMtx)(i,j).imag();
|
---|
| 365 | mRet[3] = mRet[6] = sqrt(mRet[4]*mRet[4]+mRet[5]*mRet[5]);
|
---|
| 366 | mRet[7] = atan2(mRet[5], mRet[4]);
|
---|
| 367 | }
|
---|
| 368 | return(mRet);
|
---|
| 369 | }
|
---|
| 370 |
|
---|
[2343] | 371 | DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */
|
---|
[1315] | 372 | r_8* NTupInt_TMatrix< complex<r_8> >::GetLineD(int n) const
|
---|
[585] | 373 | {
|
---|
| 374 | int i,j;
|
---|
| 375 | if ((n < 0) || (n >= (int)(mMtx->NRows()*mMtx->NCols()) )) {
|
---|
| 376 | mRet[0] = n;
|
---|
| 377 | for(i=1; i<8; i++) mRet[i] = 0.;
|
---|
| 378 | }
|
---|
| 379 | else {
|
---|
| 380 | i = n/mMtx->NCols(); j = n%mMtx->NCols();
|
---|
| 381 | mRet[0] = n; mRet[1] = i; mRet[2] = j;
|
---|
| 382 | mRet[4] = (*mMtx)(i,j).real(); mRet[5] = (*mMtx)(i,j).imag();
|
---|
| 383 | mRet[3] = mRet[6] = sqrt(mRet[4]*mRet[4]+mRet[5]*mRet[5]);
|
---|
| 384 | mRet[7] = atan2(mRet[5], mRet[4]);
|
---|
| 385 | }
|
---|
| 386 | return(mRet);
|
---|
| 387 | }
|
---|
| 388 |
|
---|
| 389 |
|
---|
| 390 | #ifdef __CXX_PRAGMA_TEMPLATES__
|
---|
| 391 | //#pragma define_template NOMAdapter_TMatrix<uint_2>
|
---|
| 392 | //#pragma define_template NOMAdapter_TMatrix<int_2>
|
---|
| 393 | #pragma define_template NOMAdapter_TMatrix<int_4>
|
---|
| 394 | #pragma define_template NOMAdapter_TMatrix<r_4>
|
---|
| 395 | #pragma define_template NOMAdapter_TMatrix<r_8>
|
---|
[1315] | 396 | #pragma define_template NOMAdapter_TMatrix< complex<r_4> >
|
---|
| 397 | #pragma define_template NOMAdapter_TMatrix< complex<r_8> >
|
---|
[585] | 398 | //#pragma define_template NTupInt_TMatrix<uint_2>
|
---|
| 399 | //#pragma define_template NTupInt_TMatrix<int_2>
|
---|
| 400 | #pragma define_template NTupInt_TMatrix<int_4>
|
---|
| 401 | #pragma define_template NTupInt_TMatrix<r_4>
|
---|
| 402 | #pragma define_template NTupInt_TMatrix<r_8>
|
---|
[719] | 403 | #pragma define_template NTupInt_TMatrix< complex<r_4> >
|
---|
| 404 | #pragma define_template NTupInt_TMatrix< complex<r_8> >
|
---|
[585] | 405 | #endif
|
---|
| 406 |
|
---|
| 407 | #if defined(ANSI_TEMPLATES)
|
---|
| 408 | //template class NOMAdapter_TMatrix<uint_2>;
|
---|
| 409 | //template class NOMAdapter_TMatrix<int_2>;
|
---|
| 410 | template class NOMAdapter_TMatrix<int_4>;
|
---|
| 411 | template class NOMAdapter_TMatrix<r_4>;
|
---|
| 412 | template class NOMAdapter_TMatrix<r_8>;
|
---|
[1315] | 413 | template class NOMAdapter_TMatrix< complex<r_4> >;
|
---|
| 414 | template class NOMAdapter_TMatrix< complex<r_8> >;
|
---|
[585] | 415 | // template class NTupInt_TMatrix<uint_2>;
|
---|
| 416 | // template class NTupInt_TMatrix<int_2>;
|
---|
| 417 | template class NTupInt_TMatrix<int_4>;
|
---|
| 418 | template class NTupInt_TMatrix<r_4>;
|
---|
| 419 | template class NTupInt_TMatrix<r_8>;
|
---|
[719] | 420 | template class NTupInt_TMatrix< complex<r_4> >;
|
---|
| 421 | template class NTupInt_TMatrix< complex<r_8> >;
|
---|
[585] | 422 | #endif
|
---|