Changeset 1099 in Sophya for trunk/SophyaLib/TArray/basarr.h
- Timestamp:
- Jul 26, 2000, 6:29:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/basarr.h
r1081 r1099 62 62 63 63 // Returns true if ndim and sizes are equal 64 virtual bool CompareSizes(const BaseArray& a );64 virtual bool CompareSizes(const BaseArray& a, bool& smo); 65 65 66 66 // Compacts \b size=1 array dimensions … … 83 83 inline uint_4 Size(int ka) const { return(size_[CheckDI(ka,1)]); } 84 84 85 uint_4MaxSizeKA() const ;85 int MaxSizeKA() const ; 86 86 87 87 //! Get memory organization 88 inline short GetMemoryMapping() const88 inline short GetMemoryMapping() const 89 89 { return ( (marowi_ == 1) ? CMemoryMapping : FortranMemoryMapping) ; } 90 90 //! line index dimension 91 inline uint_4RowsKA() const {return marowi_; }91 inline int RowsKA() const {return marowi_; } 92 92 //! column index dimension 93 inline uint_4ColsKA() const {return macoli_; }93 inline int ColsKA() const {return macoli_; } 94 94 //! Index dimension of the elements of a vector 95 inline uint_4VectKA() const {return veceli_; }95 inline int VectKA() const {return veceli_; } 96 96 void SetMemoryMapping(short mm=AutoMemoryMapping); 97 97 … … 126 126 inline uint_4 Step(int ka) const { return(step_[CheckDI(ka,3)]); } 127 127 128 uint_4MinStepKA() const ;128 int MinStepKA() const ; 129 129 130 130 // Offset of element ip … … 137 137 virtual MuTyV & ValueAtPosition(uint_8 ip) const = 0; 138 138 139 // Impression, I/O, ... 139 // Pour recuperer pas et numero d'axe pour operations sur deux arrays 140 void GetOpeParams(const BaseArray& a, bool smo, int& ax, int& axa, uint_8& step, 141 uint_8& stepa, uint_8& gpas, uint_8& naxa); 142 // Impression, I/O, ... 140 143 void Show(ostream& os, bool si=false) const; 141 144 //! Show information on \b cout … … 166 169 uint_4 size_[BASEARRAY_MAXNDIMS]; //!< array of the size in each dimension 167 170 uint_8 totsize_; //!< Total number of elements 171 uint_8 offset_; //!< global offset -\> position of elem[0] in DataBlock 168 172 //! two consecutive elements distance in a given dimension 169 173 uint_4 step_[BASEARRAY_MAXNDIMS]; 170 174 uint_4 minstep_; //!< minimal step (in any axes) 171 175 uint_4 moystep_; //!< mean step, if == 0 --\> non regular steps 172 uint_8 offset_; //!< global offset -\> position of elem[0] in DataBlock 173 uint_4 marowi_; //!< For matrices, Row index in dimensions 174 uint_4 macoli_; //!< For matrices, Column index in dimensions 175 uint_4 veceli_; //!< For vectors, dimension index = marowi_/macoli_ (Row/Col vectors) 176 bool ck_memo_vt_; //!< if true, check MemoryOrg./VectorType for CompareSize 176 int_2 marowi_; //!< For matrices, Row index in dimensions 177 int_2 macoli_; //!< For matrices, Column index in dimensions 178 int_2 veceli_; //!< For vectors, dimension index = marowi_/macoli_ (Row/Col vectors) 179 int_2 arrtype_; //!< 0 a TArray, 1 TMatrix , 2 TVector 177 180 DVList* mInfo; //!< Infos (variables) attached to the array 178 181
Note:
See TracChangeset
for help on using the changeset viewer.