~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to lib/src/Base/Type/IdentityMatrix.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-11-18 06:32:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118063222-pa0qncclrerrqkg2
Tags: 0.12.2-1
* New upstream release
* Bug fix: "New upstream release available (0.12.2)", thanks to Jerome
  Robert (Closes: #506005).
* Applied patch by J. Robert.
* debian/control: build-depends on libxml2

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
21
 *
22
22
 *  @author: $LastChangedBy: dutka $
23
 
 *  @date:   $LastChangedDate: 2008-06-26 13:50:17 +0200 (jeu, 26 jun 2008) $
24
 
 *  Id:      $Id: IdentityMatrix.hxx 862 2008-06-26 11:50:17Z dutka $
 
23
 *  @date:   $LastChangedDate: 2008-10-31 11:52:04 +0100 (ven 31 oct 2008) $
 
24
 *  Id:      $Id: IdentityMatrix.hxx 995 2008-10-31 10:52:04Z dutka $
25
25
 */
26
26
#ifndef OPENTURNS_IDENTITYMATRIX_HXX
27
27
#define OPENTURNS_IDENTITYMATRIX_HXX
53
53
        typedef Stat::CorrelationMatrix CorrelationMatrix;
54
54
 
55
55
        /** Default constructor */
56
 
        IdentityMatrix(const String & name = OT::DefaultName);
 
56
        IdentityMatrix();
57
57
         
58
58
        /** Constructor with size */ 
59
 
        IdentityMatrix(UnsignedLong dim, const String & name = OT::DefaultName);
 
59
        IdentityMatrix(const UnsignedLong dim);
60
60
 
61
61
        
62
62
        /** String converter */
68
68
#ifndef SWIG
69
69
        /** Operator () gives access to the elements of the matrix (read only) */
70
70
        /** The element of the matrix is designated by its row number i and its column number j */
71
 
        const NumericalScalar & operator () (UnsignedLong i, UnsignedLong j) const throw(InvalidDimensionException);
 
71
        const NumericalScalar & operator () (const UnsignedLong i,
 
72
                                             const UnsignedLong j) const throw(InvalidDimensionException);
72
73
#endif
73
74
        
74
75
        /** Multiplications */
82
83
        /** Resolution of a linear system */
83
84
        NumericalPoint solveLinearSystem(const NumericalPoint & b) const throw(InvalidDimensionException);
84
85
        
 
86
        MatrixImplementation solveLinearSystem(const MatrixImplementation & b) const throw(InvalidDimensionException);
 
87
        
85
88
        /** Compute determinant */
86
89
        NumericalScalar computeDeterminant() const;
87
90
        
104
107
      
105
108
        /** Operator () gives access to the elements of the matrix (to modify these elements) */
106
109
        /** The element of the matrix is designated by its row number i and its column number j */
107
 
        NumericalScalar & operator () (UnsignedLong i, UnsignedLong j) throw(InvalidDimensionException);
 
110
        NumericalScalar & operator () (const UnsignedLong i,
 
111
                                       const UnsignedLong j) throw(InvalidDimensionException);
108
112
      }
109
113
 
110
114
      ; /* class IdentityMatrix */