| # | Line 55 | Line 55 | namespace oopse { | |
|---|---|---|
| 55 | data_[i][j] = 0.0; | |
| 56 | } | |
| 57 | ||
| 58 | + | /** Constructs and initializes every element of this matrix to a scalar */ | 
| 59 | + | SquareMatrix(Real s) : RectMatrix<Real, Dim, Dim>(s){ | 
| 60 | + | } | 
| 61 | + | |
| 62 | + | /** Constructs and initializes from an array */ | 
| 63 | + | SquareMatrix(Real* array) : RectMatrix<Real, Dim, Dim>(array){ | 
| 64 | + | } | 
| 65 | + | |
| 66 | + | |
| 67 | /** copy constructor */ | |
| 68 | SquareMatrix(const RectMatrix<Real, Dim, Dim>& m) : RectMatrix<Real, Dim, Dim>(m) { | |
| 69 | } | |
| – | Removed lines | 
| + | Added lines | 
| < | Changed lines | 
| > | Changed lines |