ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/math/SquareMatrix.hpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/math/SquareMatrix.hpp (file contents):
Revision 1639 by tim, Fri Oct 22 23:09:57 2004 UTC vs.
Revision 1644 by tim, Mon Oct 25 22:46:19 2004 UTC

# 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              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines