Changes in src/LinearAlgebra/Matrix.hpp [57f243:5b4605]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/LinearAlgebra/Matrix.hpp
r57f243 r5b4605 51 51 52 52 /** 53 * Set all matrix entries to zero. 54 */ 55 void zero(); 56 57 /** 53 58 * Access the matrix at index (i,j) 54 59 */ … … 96 101 Matrix invert() const; 97 102 103 /** 104 * Diagonalizes a matrix and sets its rows to the resulting eigenvalues. 105 * The eigenvalues are returned as a vector. 106 * 107 * Rather costly, so use precomputation as often as possible. 108 */ 109 Vector transformToEigenbasis(); 110 111 /** 112 * Calculate the transpose of the matrix. 113 */ 114 Matrix transpose() const; 115 void transpose(); 116 98 117 // operators 99 118 Matrix &operator=(const Matrix&); 100 119 101 Matrix &operator+=(const Matrix&);102 Matrix &operator-=(const Matrix&);103 Matrix &operator*=(const Matrix&);120 const Matrix &operator+=(const Matrix&); 121 const Matrix &operator-=(const Matrix&); 122 const Matrix &operator*=(const Matrix&); 104 123 105 Matrix &operator*=(const double);124 const Matrix &operator*=(const double); 106 125 107 Matrix operator+(const Matrix&) const;108 Matrix operator-(const Matrix&) const;109 Matrix operator*(const Matrix&) const;126 const Matrix operator+(const Matrix&) const; 127 const Matrix operator-(const Matrix&) const; 128 const Matrix operator*(const Matrix&) const; 110 129 111 130 bool operator==(const Matrix&) const; … … 121 140 }; 122 141 123 Matrix operator*(const double,const Matrix&);124 Matrix operator*(const Matrix&,const double);142 const Matrix operator*(const double,const Matrix&); 143 const Matrix operator*(const Matrix&,const double); 125 144 126 145 /**
Note:
See TracChangeset
for help on using the changeset viewer.