Skip to content
Snippets Groups Projects
Commit 136afcdd authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Add a few minor features

viz.:

field_type
blocklevel
operator=(scalar)

[[Imported from SVN: r9583]]
parent 408c0310
Branches
No related tags found
No related merge requests found
......@@ -15,8 +15,14 @@ namespace Dune {
template <class T, int N>
class SymmetricMatrix
{
public:
/** \brief The type used for scalars
*/
typedef T field_type;
enum {blocklevel = 0};
/** \brief Default constructor
*
* Tensor is initialized containing zeros if no argument is given.
......@@ -25,6 +31,12 @@ public:
SymmetricMatrix()
{}
SymmetricMatrix<T,N>& operator=(const T& s)
{
data_ = s;
return *this;
}
/** \brief Matrix style random read/write access to components
* \param i line index
* \param j column index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment