--- trunk/OOPSE-2.0/src/math/SquareMatrix.hpp 2004/10/22 23:09:57 1639 +++ trunk/OOPSE-2.0/src/math/SquareMatrix.hpp 2004/10/25 22:46:19 1644 @@ -55,6 +55,15 @@ namespace oopse { data_[i][j] = 0.0; } + /** Constructs and initializes every element of this matrix to a scalar */ + SquareMatrix(Real s) : RectMatrix(s){ + } + + /** Constructs and initializes from an array */ + SquareMatrix(Real* array) : RectMatrix(array){ + } + + /** copy constructor */ SquareMatrix(const RectMatrix& m) : RectMatrix(m) { }