00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_MATRIX_H_
00028 #define CEYLAN_MATRIX_H_
00029
00030
00031 #include "CeylanLinear.h"
00032 #include "CeylanTypes.h"
00033
00034 #include "CeylanTextDisplayable.h"
00035
00036 #include <string>
00037
00038
00039
00040
00041 namespace Ceylan
00042 {
00043
00044
00045 namespace Maths
00046 {
00047
00048
00049 namespace Linear
00050 {
00051
00052
00053
00083 class CEYLAN_DLL Matrix : public TextDisplayable
00084 {
00085
00086
00087 public:
00088
00089
00090
00095 Matrix() ;
00096
00097
00098
00100 virtual ~Matrix() throw() ;
00101
00102
00103
00109 virtual void nullify() ;
00110
00111
00112
00118 virtual void setAllElementsTo( Real commonValue ) = 0 ;
00119
00120
00121
00131 virtual Real getElementAt( MatrixIndex abscissa,
00132 MatrixIndex ordinate ) const = 0 ;
00133
00134
00135
00145 virtual void setElementAt( MatrixIndex abscissa,
00146 MatrixIndex ordinate, Real newValue ) = 0 ;
00147
00148
00149
00151 virtual void setToIdentity() ;
00152
00153
00154
00160 virtual void setToDiagonal( Real diagonalTerm ) = 0 ;
00161
00162
00163
00165 virtual void transpose() = 0 ;
00166
00167
00168
00170 virtual Real trace() const = 0 ;
00171
00172
00173
00175 virtual Real determinant() const = 0 ;
00176
00177
00178
00191 virtual const std::string toString(
00192 VerbosityLevels level = high ) const ;
00193
00194
00195
00202 static const MatrixIndex Dimensions = 0 ;
00203
00204
00205
00206 } ;
00207
00208 }
00209
00210 }
00211
00212 }
00213
00214
00215 #endif // CEYLAN_MATRIX_H_