Changeset 1099 in Sophya for trunk/SophyaLib/TArray/basarr.h


Ignore:
Timestamp:
Jul 26, 2000, 6:29:46 PM (25 years ago)
Author:
ansari
Message:

Protection integrite TMatrix,TVector - operateur = (BaseArray & pour TVector et operations entre matrices avec <> MemMapping (Pas termine) Reza 27/6/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/basarr.h

    r1081 r1099  
    6262
    6363  // Returns true if ndim and sizes are equal
    64   virtual bool CompareSizes(const BaseArray& a);
     64  virtual bool CompareSizes(const BaseArray& a, bool& smo);
    6565
    6666  // Compacts \b size=1 array dimensions
     
    8383  inline uint_4 Size(int ka) const { return(size_[CheckDI(ka,1)]); }
    8484
    85   uint_4 MaxSizeKA() const ;
     85  int MaxSizeKA() const ;
    8686
    8787  //! Get memory organization
    88   inline short GetMemoryMapping() const
     88  inline short  GetMemoryMapping() const
    8989         { return ( (marowi_ == 1) ? CMemoryMapping : FortranMemoryMapping) ; }
    9090  //! line index dimension
    91   inline uint_4 RowsKA() const {return marowi_; }
     91  inline int    RowsKA() const {return marowi_; }
    9292  //! column index dimension
    93   inline uint_4 ColsKA() const {return macoli_; }
     93  inline int    ColsKA() const {return macoli_; }
    9494  //! Index dimension of the elements of a vector
    95   inline uint_4 VectKA() const {return veceli_; }
     95  inline int    VectKA() const {return veceli_; }
    9696  void          SetMemoryMapping(short mm=AutoMemoryMapping);
    9797
     
    126126  inline uint_4 Step(int ka) const { return(step_[CheckDI(ka,3)]); }
    127127
    128   uint_4 MinStepKA() const ;
     128  int MinStepKA() const ;
    129129
    130130  // Offset of element ip
     
    137137  virtual MuTyV & ValueAtPosition(uint_8 ip) const = 0;
    138138
    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, ...
    140143  void           Show(ostream& os, bool si=false) const;
    141144  //! Show information on \b cout
     
    166169  uint_4 size_[BASEARRAY_MAXNDIMS]; //!< array of the size in each dimension
    167170  uint_8 totsize_; //!< Total number of elements
     171  uint_8 offset_;  //!< global offset -\> position of elem[0] in DataBlock
    168172  //! two consecutive elements distance in a given dimension
    169173  uint_4 step_[BASEARRAY_MAXNDIMS];
    170174  uint_4 minstep_; //!< minimal step (in any axes)
    171175  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
    177180  DVList* mInfo;    //!< Infos (variables) attached to the array
    178181
Note: See TracChangeset for help on using the changeset viewer.