# | Line 41 | Line 41 | namespace oopse { | |
---|---|---|
41 | template<typename Real> | |
42 | class SquareMatrix3 : public SquareMatrix<Real, 3> { | |
43 | public: | |
44 | + | |
45 | + | typedef Real ElemType; |
46 | + | typedef Real* ElemPoinerType; |
47 | ||
48 | /** default constructor */ | |
49 | SquareMatrix3() : SquareMatrix<Real, 3>() { | |
50 | + | } |
51 | + | |
52 | + | /** Constructs and initializes every element of this matrix to a scalar */ |
53 | + | SquareMatrix3(Real s) : SquareMatrix<Real,3>(s){ |
54 | } | |
55 | ||
56 | + | /** Constructs and initializes from an array */ |
57 | + | SquareMatrix3(Real* array) : SquareMatrix<Real,3>(array){ |
58 | + | } |
59 | + | |
60 | + | |
61 | /** copy constructor */ | |
62 | SquareMatrix3(const SquareMatrix<Real, 3>& m) : SquareMatrix<Real, 3>(m) { | |
63 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |