Changeset 894 in Sophya for trunk/SophyaLib/TArray/tvector.h


Ignore:
Timestamp:
Apr 12, 2000, 7:42:33 PM (25 years ago)
Author:
ansari
Message:

documentation cmv 12/4/00

File:
1 edited

Legend:

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

    r813 r894  
    88namespace SOPHYA {
    99
     10//! Class of vector (line or column)
     11/*!
     12  \sa TMatrix TArray
     13  */
    1014template <class T>
    1115class TVector : public TMatrix<T> {
     
    2125  virtual ~TVector();
    2226
     27  //! Operator =
    2328  inline  TVector<T>& operator = (const TVector<T>& a)
    2429                       { Set(a);  return(*this); }
     
    3136  // Sub-Vector extraction $CHECK$ Reza 03/2000  Doit-on declarer cette methode const ?
    3237  TVector<T> SubVector(Range relt) const ;
     38  //! Extract a vector define by Range \b relt
    3339  inline TVector<T> operator () (Range relt) const
    3440                    { return SubVector(relt); }
    3541
    3642  // Informations pointeur/data
     43  //! return the number of elements
    3744  inline uint_4 NElts() const {return Size(); }
    3845 
     
    4249
    4350  // Operateur d'affectation
     51  //! Fill the
    4452  inline  TMatrix<T>&  operator = (Sequence seq)    { SetSeq(seq); return(*this); }
    4553
    4654  // Operations diverses  avec une constante
     55  //! Set vector elements to constant value \b x
    4756  inline  TVector<T>&  operator = (T x)             { SetT(x); return(*this); }
     57  //! Add constant value \b x to vector elements
    4858  inline  TVector<T>&  operator += (T x)            { Add(x); return(*this); }
     59  //! Substract constant value \b x to vector elements
    4960  inline  TVector<T>&  operator -= (T x)            { Sub(x); return(*this); }
     61  //! Multiply vector elements by constant value \b x
    5062  inline  TVector<T>&  operator *= (T x)            { Mul(x); return(*this); }
     63  //! Divide vector elements by constant value \b x
    5164  inline  TVector<T>&  operator /= (T x)            { Div(x); return(*this); }
    5265
    5366  //  operations avec matrices
     67  //! += : add a vector in place
    5468  inline  TVector<T>&  operator += (const TVector<T>& a)  { AddElt(a); return(*this); }
     69  //! += : substract a vector in place
    5570  inline  TVector<T>&  operator -= (const TVector<T>& a)  { SubElt(a); return(*this); }
    5671
     
    6378
    6479//  ---- inline acces methods ------
     80
     81//! Return the value of element \b n
    6582template <class T>
    6683inline T const& TVector<T>::operator()(uint_4 n) const
     
    7390}
    7491
     92//! Return the value of element \b n
    7593template <class T>
    7694inline T & TVector<T>::operator()(uint_4 n)
     
    84102
    85103// Typedef pour simplifier et compatibilite Peida
     104//! Define Vector to be TVector<r_8>
    86105typedef TVector<r_8> Vector;
    87106
Note: See TracChangeset for help on using the changeset viewer.