Changeset 935 in Sophya for trunk/SophyaLib/TArray
- Timestamp:
- Apr 14, 2000, 4:03:40 PM (25 years ago)
- Location:
- trunk/SophyaLib/TArray
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/sopemtx.cc
r926 r935 110 110 111 111 112 //! Multiply two TMatrixRC 112 //! Scalar product of two TMatrixRC 113 /*! 114 \return sum[ a(i) * b(i) ] 115 */ 113 116 template <class T> 114 117 inline T operator * (const TMatrixRC<T>& a, const TMatrixRC<T>& b) … … 123 126 } 124 127 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 */ 126 133 template <class T> 127 134 inline uint_4 TMatrixRC<T>::Step(const TMatrix<T>& m, TRCKind rckind) … … 131 138 return 0; } 132 139 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 */ 135 148 template <class T> 136 149 inline T* TMatrixRC<T>::Org(const TMatrix<T>& m, TRCKind rckind, uint_4 index) … … 156 169 157 170 //////////////////////////////////////////////////////////////// 158 //! Typedef to simplif ier TMatrixRC<r_8>171 //! Typedef to simplify TMatrixRC<r_8> writing 159 172 typedef TMatrixRC<r_8> MatrixRC; 160 173 … … 428 441 //! Gaussian pivoting 429 442 /*! 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 432 447 */ 433 448 template <class T> … … 712 727 template class SimpleMatrixOperation< complex<r_8> >; 713 728 #endif 729 730 731 732 733 734 735 736 737 738 739 740 741 -
trunk/SophyaLib/TArray/sopemtx.h
r926 r935 7 7 #include "tvector.h" 8 8 9 // doivent imperativement reste avant le namespace SOPHYA ! 9 //////////////////////////////////////////////////////////////// 10 //////////////////////////////////////////////////////////////// 11 //------------------------------------------------------------// 12 // Classe TMatrixRC // 13 //------------------------------------------------------------// 14 //////////////////////////////////////////////////////////////// 15 //////////////////////////////////////////////////////////////// 16 17 namespace SOPHYA { 18 10 19 /*! 11 \class S OPHYA::SimpleMatrixOperation20 \class SimpleMatrixOperation 12 21 \ingroup TArray 13 22 Class for simple operation on TMatrix 14 23 \sa TMatrix TArray 15 24 */ 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 26 26 //! Class for simple operation on TMatrix 27 27 template <class T> … … 32 32 }; 33 33 34 //////////////////////////////////////////////////////////////// 34 } // Fin du namespace 35 36 //////////////////////////////////////////////////////////////// 37 //////////////////////////////////////////////////////////////// 38 //------------------------------------------------------------// 39 // Resolution de systemes lineaires // 40 //------------------------------------------------------------// 41 //////////////////////////////////////////////////////////////// 42 //////////////////////////////////////////////////////////////// 43 44 namespace SOPHYA { 45 46 //------------------------------------------------------------ 35 47 // Resolution du systeme A*C = B 48 //------------------------------------------------------------ 49 36 50 //! Solve A*C = B for C in place and return determinant 37 51 /*! \ingroup TArray \fn LinSolveInPlace */ … … 70 84 } 71 85 72 // //////////////////////////////////////////////////////////////86 //------------------------------------------------------------ 73 87 // Resolution du systeme A*C = B, avec C retourne dans B 88 //------------------------------------------------------------ 89 74 90 //! Solve A*C = B and return C and determinant 75 91 /*! \ingroup TArray \fn LinSolve */ … … 108 124 } 109 125 110 //////////////////////////////////////////////////////////////// 111 // Inverse d'une matrice 126 } // Fin du namespace 127 128 //////////////////////////////////////////////////////////////// 129 //////////////////////////////////////////////////////////////// 130 //------------------------------------------------------------// 131 // Inverse d'une matrice // 132 //------------------------------------------------------------// 133 //////////////////////////////////////////////////////////////// 134 //////////////////////////////////////////////////////////////// 135 136 namespace SOPHYA { 137 112 138 //! To inverse a TMatrix 113 139 /*! \ingroup TArray \fn Inverse */ … … 127 153 {return SimpleMatrixOperation< complex<r_8> >::Inverse(A);} 128 154 129 //-------------------------------------- 130 // Linear fitting 131 //-------------------------------------- 155 } // Fin du namespace 156 157 158 //////////////////////////////////////////////////////////////// 159 //////////////////////////////////////////////////////////////// 160 //------------------------------------------------------------// 161 // Linear fitting // 162 //------------------------------------------------------------// 163 //////////////////////////////////////////////////////////////// 164 //////////////////////////////////////////////////////////////// 165 166 namespace SOPHYA { 167 168 /*! 169 \class LinFitter 170 \ingroup TArray 171 Class for linear fitting 172 \sa TMatrix TArray 173 */ 132 174 133 175 //! Class for linear fitting -
trunk/SophyaLib/TArray/utilarr.cc
r926 r935 29 29 30 30 //! 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 */ 31 36 double RandomSequence::Rand() 32 37 {
Note:
See TracChangeset
for help on using the changeset viewer.