Skip to content
Snippets Groups Projects
Commit 200b5bbe authored by Uli Sack's avatar Uli Sack Committed by usack
Browse files

added type promotions for sum combinations of DiagonalMatrix<K,n> and FieldMatrix<K,n,n>

[[Imported from SVN: r5475]]
parent d4dd6320
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,18 @@ class StaticMatrix
typedef Matrix Type;
};
template<typename FieldType, int n>
struct Promote<Dune::FieldMatrix<FieldType,n,n>, Dune::DiagonalMatrix<FieldType,n> >
{
typedef Dune::FieldMatrix<FieldType,n,n> Type;
};
template<typename FieldType, int n>
struct Promote<Dune::DiagonalMatrix<FieldType,n>, Dune::FieldMatrix<FieldType,n,n> >
{
typedef Dune::FieldMatrix<FieldType,n,n> Type;
};
template<typename FieldType, int n>
struct Promote<Dune::DiagonalMatrix<FieldType,n>, Dune::ScaledIdentityMatrix<FieldType,n> >
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment