Skip to content
Snippets Groups Projects
Commit a63625b9 authored by Oliver Sander's avatar Oliver Sander
Browse files

added constructor FieldMatrix<K,1,1>(K) because FieldMatrix<K,n,m> has it, too

[[Imported from SVN: r1969]]
parent 71c27cb6
No related branches found
No related tags found
No related merge requests found
......@@ -1263,6 +1263,18 @@ namespace Dune {
m = 1
};
//===== constructors
/** \brief Default constructor
*/
FieldMatrix () {}
/** \brief Constructor initializing the whole matrix with a scalar
*/
FieldMatrix (const K& k)
{
a = k;
}
//===== random access interface to rows of the matrix
//! random access to the rows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment