Changeset 894 in Sophya for trunk/SophyaLib/TArray/basarr.h
- Timestamp:
- Apr 12, 2000, 7:42:33 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/basarr.h
r890 r894 13 13 14 14 15 //! Maximum number of dimensions for an array 15 //! Maximum number of dimensions for an array 16 /*! \anchor BASEARRAY_MAXNDIMS */ 16 17 #define BASEARRAY_MAXNDIMS 5 17 18 … … 21 22 //! Base class for template arrays 22 23 /*! 23 Define base methods, enum and defaults for TArray , TMatrix and TVector 24 No data are connected to this class. 25 26 Define base methods, enum and defaults for TArray , TMatrix and TVector. 24 27 */ 25 28 class BaseArray : public AnyDataObj { … … 51 54 static inline uint_4 GetPrintLevel() { return prt_lev_; } 52 55 53 //! Set Default Memory Mapping54 56 static short SetDefaultMemoryMapping(short mm=CMemoryMapping); 55 57 //! Get Default Memory Mapping 56 58 static inline short GetDefaultMemoryMapping() { return default_memory_mapping; } 57 //! Set Default Vector Type58 59 static short SetDefaultVectorType(short vt=ColumnVector); 59 60 //! Get Default Vector Type … … 146 147 virtual string InfoString() const; 147 148 148 // Objet DVList info149 DVList& 149 // DVList info Object 150 DVList& Info(); 150 151 151 152 protected: … … 166 167 virtual void UpdateSubArraySizes(BaseArray & ra, uint_4 ndim, uint_4 * siz, uint_4 * pos, uint_4 * step) const; 167 168 168 uint_4 ndim_; //! number of dimensions of array169 uint_4 size_[BASEARRAY_MAXNDIMS]; //! array of the size in each dimension170 uint_8 totsize_; //! Total number of elements169 uint_4 ndim_; //!< number of dimensions of array 170 uint_4 size_[BASEARRAY_MAXNDIMS]; //!< array of the size in each dimension 171 uint_8 totsize_; //!< Total number of elements 171 172 //! two consecutive elements distance in a given dimension 172 173 uint_4 step_[BASEARRAY_MAXNDIMS]; 173 uint_4 minstep_; //! minimal step (in any axes)174 uint_4 moystep_; //! mean step, if == 0 --\> non regular steps175 uint_8 offset_; //! global offset -\> position of elem[0] in DataBlock176 uint_4 marowi_; //! For matrices, Row index in dimensions177 uint_4 macoli_; //! For matrices, Column index in dimensions178 uint_4 veceli_; //! For vectors, dimension index = marowi_/macoli_ (Row/Col vectors)179 bool ck_memo_vt_; //! if true, check MemoryOrg./VectorType for CompareSize180 DVList* mInfo; //! Infos (variables) attached to the array181 182 static char * ck_op_msg_[6]; //! Operation messages for CheckDI() CheckBound()183 static uint_4 max_nprt_; //! Nbmaximum number of printed elements184 static uint_4 prt_lev_; //! Print level185 static short default_memory_mapping; //! Default memory mapping186 static short default_vector_type; //! Default vector type Row/Column187 static uint_8 openmp_size_threshold; //! Size limit for parallel routine calls174 uint_4 minstep_; //!< minimal step (in any axes) 175 uint_4 moystep_; //!< mean step, if == 0 --\> non regular steps 176 uint_8 offset_; //!< global offset -\> position of elem[0] in DataBlock 177 uint_4 marowi_; //!< For matrices, Row index in dimensions 178 uint_4 macoli_; //!< For matrices, Column index in dimensions 179 uint_4 veceli_; //!< For vectors, dimension index = marowi_/macoli_ (Row/Col vectors) 180 bool ck_memo_vt_; //!< if true, check MemoryOrg./VectorType for CompareSize 181 DVList* mInfo; //!< Infos (variables) attached to the array 182 183 static char * ck_op_msg_[6]; //!< Operation messages for CheckDI() CheckBound() 184 static uint_4 max_nprt_; //!< maximum number of printed elements 185 static uint_4 prt_lev_; //!< Print level 186 static short default_memory_mapping; //!< Default memory mapping 187 static short default_vector_type; //!< Default vector type Row/Column 188 static uint_8 openmp_size_threshold; //!< Size limit for parallel routine calls 188 189 }; 189 190
Note:
See TracChangeset
for help on using the changeset viewer.