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