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

enhance docu

[[Imported from SVN: r6542]]
parent b2abd51d
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,37 @@ struct GenericVector
DUNE_THROW(Dune::NotImplemented,"GenericVector::interlace not implemented for given VectorTypes");
}
/** \brief weave two vector blocks into each other e.g. [[u1...un][w1...wn]] --> [[u1 w1]...[un wn]]
interlace: \f$\left((R^k)^m\right)^n\longrightarrow(R^k\cdot n)^m\f$, i.e. for example
/ / /a11\ \ \ / /a11\ \
| | \a12/ | | | | a12 | |
| | /a21\ | | | | b11 | |
| | \a22/ | | | | b12 | |
| | /a31\ | | | | c11 | |
| \ \a32/ / | | | c12 | |
| | | | d11 | |
| / /b11\ \ | | \d12/ |
| | \b12/ | | | |
| | /b21\ | | | /a21\ |
| | \b22/ | | | | a22 | |
| | /b31\ | | | | b21 | |
| \ \b32/ / | interlace | | b22 | |
| | ----------> | | c11 | |
| / /c11\ \ | | | c22 | |
| | \c12/ | | | | d21 | |
| | /c21\ | | | \d22/ |
| | \c22/ | | | |
| | /c31\ | | | /a31\ |
| \ \c32/ / | | | a32 | |
| | | | b31 | |
| / /d11\ \ | | | b32 | |
| | \d12/ | | | | c31 | |
| | /d21\ | | | | c32 | |
| | \d22/ | | | | d31 | |
| | /d31\ | | | \d32/ |
\ \ \d32/ / / \ /
*/
template <class LVectorBlock, class RVectorBlock>
static void interlace(const Dune::BlockVector<Dune::BlockVector<LVectorBlock> >& lvec, Dune::BlockVector<RVectorBlock>& rvec)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment