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

Implement MatrixDimension for scalar types

parent 94964977
No related branches found
No related tags found
1 merge request!265Implement matlab writing for matrices with scalar entries
......@@ -202,9 +202,22 @@ namespace Dune
while(cur!=ooc.communicator().min(cur)) ;
}
// Default implementation for scalar types
template<typename M>
struct MatrixDimension
{};
{
static_assert(IsNumber<M>::value, "MatrixDimension is not implemented for this type!");
static auto rowdim(const M& A)
{
return 1;
}
static auto coldim(const M& A)
{
return 1;
}
};
template<typename B, typename TA>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment