Changeset 3838 in Sophya for trunk/SophyaLib/TArray/spesqmtx.cc
- Timestamp:
- Aug 9, 2010, 7:31:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/spesqmtx.cc
r3831 r3838 9 9 #include "tmatrix.h" 10 10 11 // doit etre mis en dehors du namespace 11 namespace SOPHYA { 12 12 /*! 13 \class S OPHYA::SpecialSquareMatrix13 \class SpecialSquareMatrix 14 14 \ingroup TArray 15 15 \brief The base class for representing and manipulating special square matrices 16 16 Diagonal matrix, Symmetric matrix, Triangular matrix 17 18 17 This class implements the common operations for special square matrices. Only objects 18 19 19 from the sub-classes (DiagonalMatrix<T>, LowerTriangularMatrix<T>, SymmetricMatrix<T>) 20 20 can be instanciated. Theses classes offer similar functionalities to the TArray<T> / TMatrix<T> 21 21 classes, like reference sharing and arithmetic operations. However, no sub-matrix extraction 22 22 method is provided. 23 sub matrix extraction method. 23 24 \code 25 // Create and initialize a diagonal matrix 26 DiagonalMatrix<double> diag(3); 27 diag(0,0)=1.; diag(1,1)=2.; diag(2,2)=3.; 28 // use of multiplication by a constant operator 29 diag *= 10.; 30 // check the diagonal matrix 31 cout << diag << diag.ConvertToStdMatrix() << endl; 32 // define and initialize a general matrix 33 TMatrix<double> mx(3,3); 34 mx=RegularSequence(); 35 cout << mx; 36 // check the result of a matrix mutiplication 37 cout << mx*diag; 38 \endcode 24 39 */ 25 26 namespace SOPHYA {27 40 28 41 //! Default constructor - SpecialSquareMatrix of size 0, SetSize() should be called before the object is used
Note:
See TracChangeset
for help on using the changeset viewer.