Changeset 804 in Sophya for trunk/SophyaLib/TArray/utilarr.h


Ignore:
Timestamp:
Apr 3, 2000, 7:36:01 PM (25 years ago)
Author:
ansari
Message:

Amelioation / debugging de la classe TArray<T> - TVector et TMatrix

heritent maintenant de TArray<T> - Classe RCMatrix rendu prive au fichier
sopemtx.cc - linfit.cc integre a sopemtx.cc

Reza 03/04/2000

File:
1 edited

Legend:

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

    r785 r804  
    1818class Sequence {
    1919public:
    20   Sequence (double start=0., double step=1., Arr_DoubleFunctionOfX f=NULL);
     20  explicit Sequence (double start=0., double step=1., Arr_DoubleFunctionOfX f=NULL);
    2121  inline double & Start() { return start_; }
    2222  inline double & Step() { return step_; }
     
    2929class Range {
    3030public:
    31   Range(uint_4 start=0, uint_4 size=1, uint_4 step=1);
     31  explicit Range(uint_4 start=0, uint_4 size=1, uint_4 step=1);
    3232  inline uint_4 & Start()  {  return start_; }
    3333  inline uint_4 & Size()  {  return size_; }
    3434  inline uint_4 & Step()  {  return step_; }
    35   Range & operator = (uint_4 start);
    3635protected:
    3736  uint_4 start_, size_, step_;
     37};
     38
     39class IdentityMatrix {
     40public:
     41  explicit IdentityMatrix(double diag=1., uint_4 n=0);
     42  inline uint_4 Size() { return size_; }
     43  inline double Diag() { return diag_; }
     44protected:
     45  uint_4 size_;
     46  double diag_;
    3847};
    3948
Note: See TracChangeset for help on using the changeset viewer.