Skip to content
Snippets Groups Projects
Commit a6901dd0 authored by Henry Weller's avatar Henry Weller
Browse files

MatrixSpace: Add support for block conversion into VectorSpace

parent f77e26c5
Branches
Tags
No related merge requests found
......@@ -388,7 +388,17 @@ Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::
Block<SubTensor, BRowStart, BColStart>::
operator()() const
{
return *this;
SubTensor st;
for (direction i=0; i<SubTensor::mRows; ++i)
{
for (direction j=0; j<SubTensor::nCols; ++j)
{
st[i*SubTensor::nCols + j] = operator()(i, j);
}
}
return st;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment