ENH: add identity matrix constructor to RectangularMatrix

This commit is contained in:
Kutalmis Bercin
2019-11-13 16:02:57 +00:00
parent 64614cfce8
commit 3a5ad7eed7
2 changed files with 22 additions and 0 deletions

View File

@ -80,6 +80,11 @@ public:
//- initializing all elements to the given value
inline RectangularMatrix(const label m, const label n, const Type& val);
//- Construct for given number of rows/columns
//- initializing all elements to zero, and diagonal to one
template<class AnyType>
inline RectangularMatrix(const labelPair& dims, const Identity<AnyType>);
//- Construct given number of rows/columns
inline explicit RectangularMatrix(const labelPair& dims);