ENH: Add null constructor to DiagonalMatrix

This commit is contained in:
laurence
2012-12-20 11:23:38 +00:00
parent 9669f47bbd
commit 19faa6ec92
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,13 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
inline Foam::DiagonalMatrix<Type>::DiagonalMatrix()
:
List<Type>()
{}
template<class Type>
template<class Form>
Foam::DiagonalMatrix<Type>::DiagonalMatrix(const Matrix<Form, Type>& a)

View File

@ -60,6 +60,9 @@ public:
// Constructors
//- Null constructor.
DiagonalMatrix<Type>();
//- Construct from diagonal component of a Matrix
template<class Form>
DiagonalMatrix<Type>(const Matrix<Form, Type>&);