Changeset 3572 in Sophya for trunk/SophyaPI/PIext/pipodrw.cc
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pipodrw.cc
r3145 r3572 56 56 57 57 58 #ifdef SANS_EVOLPLANCK59 58 60 // ----------------------------------------------------------61 // Adaptateur de vecteurs Peida++ a P1DArrayAdapter62 // ----------------------------------------------------------63 64 /* --Methode-- */65 POVectorAdapter::POVectorAdapter(Vector* v, bool ad)66 : P1DArrayAdapter(v->NElts())67 {68 aDel = ad; mVec = v;69 }70 71 /* --Methode-- */72 POVectorAdapter::~POVectorAdapter()73 {74 if (aDel) delete mVec;75 }76 77 /* --Methode-- */78 double POVectorAdapter::Value(int i)79 {80 return((*mVec)(i));81 }82 83 ------- FIN SUPPRESSION */84 85 // ----------------------------------------------------------86 // Adaptateur de matrice Peida++ a P2DArrayAdapter87 // Attention Y: Lignes (rows) X: Colonnes88 // ----------------------------------------------------------89 90 /* --Methode-- */91 POMatrixAdapter::POMatrixAdapter(Matrix* mtx, bool ad)92 : P2DArrayAdapter(mtx->NCol(), mtx->NRows())93 {94 aDel = ad; mMtx = mtx;95 }96 97 /* --Methode-- */98 POMatrixAdapter::~POMatrixAdapter()99 {100 if (aDel) delete mMtx;101 }102 103 /* --Methode-- */104 double POMatrixAdapter::Value(int ix, int iy)105 {106 // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)107 return((*mMtx)(iy, ix));108 }109 110 #endif // SANS_EVOLPLANCK111
Note:
See TracChangeset
for help on using the changeset viewer.