Changeset 935 in Sophya for trunk/SophyaLib


Ignore:
Timestamp:
Apr 14, 2000, 4:03:40 PM (25 years ago)
Author:
ansari
Message:

doc + inversion de matrice template real+complex

Location:
trunk/SophyaLib/TArray
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/sopemtx.cc

    r926 r935  
    110110
    111111
    112 //! Multiply two TMatrixRC
     112//! Scalar product of two TMatrixRC
     113/*!
     114  \return sum[ a(i) * b(i) ]
     115 */
    113116template <class T>
    114117inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b)
     
    123126  }
    124127
    125 //! Get the step in datas for a TMatrix for type rckind (line/col/diag)
     128//! Get the step in datas for a TMatrix for type rckind
     129/*!
     130  \param rckind : line, column or diagonal
     131  \return step in TMatrix along TMatrixRC
     132 */
    126133template <class T>
    127134inline uint_4 TMatrixRC<T>::Step(const TMatrix<T>& m, TRCKind rckind)
     
    131138    return 0; }
    132139
    133 /*! Get the origin of datas for a TMatrix for type rckind and
    134   number index (line/col/diag). ex: origine for line "index". */
     140//! Get the origin of datas.
     141/*!
     142  Get the origin of datas in the TMatrix for a TMatrixRC for type
     143  \b rckind and index \b index .
     144  \param rckind : line, column or diagonal
     145  \param index : index of the line or column.
     146  \return adress of the first element in datas.
     147 */
    135148template <class T>
    136149inline T* TMatrixRC<T>::Org(const TMatrix<T>& m, TRCKind rckind, uint_4 index)
     
    156169
    157170////////////////////////////////////////////////////////////////
    158 //! Typedef to simplifier TMatrixRC<r_8>
     171//! Typedef to simplify TMatrixRC<r_8> writing
    159172typedef TMatrixRC<r_8> MatrixRC;
    160173
     
    428441//! Gaussian pivoting
    429442/*!
    430   Diagonalize matrix \b a, doing the same opreations on matrix \b b
    431   \return determinat of \b a
     443  Diagonalize matrix \b a, doing the same operations on matrix \b b
     444  \return determinat of \b a.
     445
     446  If \b b is identity matrix, return inverse of \b a
    432447 */ 
    433448template <class T>
     
    712727template class SimpleMatrixOperation< complex<r_8> >;
    713728#endif
     729
     730
     731
     732
     733
     734
     735
     736
     737
     738
     739
     740
     741
  • trunk/SophyaLib/TArray/sopemtx.h

    r926 r935  
    77#include "tvector.h"
    88
    9 // doivent imperativement reste avant le namespace SOPHYA !
     9////////////////////////////////////////////////////////////////
     10////////////////////////////////////////////////////////////////
     11//------------------------------------------------------------//
     12//                     Classe TMatrixRC                       //
     13//------------------------------------------------------------//
     14////////////////////////////////////////////////////////////////
     15////////////////////////////////////////////////////////////////
     16
     17namespace SOPHYA {
     18
    1019/*!
    11   \class SOPHYA::SimpleMatrixOperation
     20  \class SimpleMatrixOperation
    1221  \ingroup TArray
    1322  Class for simple operation on TMatrix
    1423  \sa TMatrix TArray
    1524  */
    16 /*!
    17   \class SOPHYA::LinFitter
    18   \ingroup TArray
    19   Class for linear fitting
    20   \sa TMatrix TArray
    21   */
    22 
    23 namespace SOPHYA {
    24 
    25 ////////////////////////////////////////////////////////////////
     25
    2626//! Class for simple operation on TMatrix
    2727template <class T>
     
    3232};
    3333
    34 ////////////////////////////////////////////////////////////////
     34} // Fin du namespace
     35
     36////////////////////////////////////////////////////////////////
     37////////////////////////////////////////////////////////////////
     38//------------------------------------------------------------//
     39//              Resolution de systemes lineaires              //
     40//------------------------------------------------------------//
     41////////////////////////////////////////////////////////////////
     42////////////////////////////////////////////////////////////////
     43
     44namespace SOPHYA {
     45
     46//------------------------------------------------------------
    3547// Resolution du systeme A*C = B
     48//------------------------------------------------------------
     49
    3650//! Solve A*C = B for C in place and return determinant
    3751/*! \ingroup TArray \fn LinSolveInPlace */
     
    7084}
    7185
    72 ////////////////////////////////////////////////////////////////
     86//------------------------------------------------------------
    7387// Resolution du systeme A*C = B, avec C retourne dans B
     88//------------------------------------------------------------
     89
    7490//! Solve A*C = B and return C and determinant
    7591/*! \ingroup TArray \fn LinSolve */
     
    108124}
    109125
    110 ////////////////////////////////////////////////////////////////
    111 // Inverse d'une matrice
     126} // Fin du namespace
     127
     128////////////////////////////////////////////////////////////////
     129////////////////////////////////////////////////////////////////
     130//------------------------------------------------------------//
     131//                   Inverse d'une matrice                    //
     132//------------------------------------------------------------//
     133////////////////////////////////////////////////////////////////
     134////////////////////////////////////////////////////////////////
     135
     136namespace SOPHYA {
     137
    112138//! To inverse a TMatrix
    113139/*! \ingroup TArray \fn Inverse */
     
    127153  {return SimpleMatrixOperation< complex<r_8> >::Inverse(A);}
    128154
    129 //--------------------------------------
    130 //        Linear fitting
    131 //--------------------------------------
     155} // Fin du namespace
     156
     157
     158////////////////////////////////////////////////////////////////
     159////////////////////////////////////////////////////////////////
     160//------------------------------------------------------------//
     161//                   Linear fitting                           //
     162//------------------------------------------------------------//
     163////////////////////////////////////////////////////////////////
     164////////////////////////////////////////////////////////////////
     165
     166namespace SOPHYA {
     167
     168/*!
     169  \class LinFitter
     170  \ingroup TArray
     171  Class for linear fitting
     172  \sa TMatrix TArray
     173  */
    132174
    133175//!  Class for linear fitting
  • trunk/SophyaLib/TArray/utilarr.cc

    r926 r935  
    2929
    3030//! Return random sequence values.
     31/*!
     32  \return If typ = Flat : return [-1,+1]*sig + mean
     33  \return If typ = Gaussian : return gaussian distributed
     34                          with \b mean mean and sigma \b sig
     35 */
    3136double RandomSequence::Rand()
    3237{
Note: See TracChangeset for help on using the changeset viewer.