Skip to content
Snippets Groups Projects
Commit 7971518a authored by Elias Pipping's avatar Elias Pipping Committed by pipping
Browse files

doc: Use latex for vectors

[[Imported from SVN: r8352]]
parent f285905a
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,5 @@ EXAMPLE_PATH += ...@@ -4,3 +4,5 @@ EXAMPLE_PATH +=
EXAMPLE_PATTERNS += EXAMPLE_PATTERNS +=
IMAGE_PATH += IMAGE_PATH +=
PREDEFINED += DOXYGEN PREDEFINED += DOXYGEN
EXTRA_PACKAGES = amsmath
...@@ -138,36 +138,48 @@ struct GenericVector ...@@ -138,36 +138,48 @@ struct GenericVector
} }
/** \brief weave two vector blocks into each other e.g. [[u1...un][w1...wn]] --> [[u1 w1]...[un wn]] /** \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 * interlace: \f$\left((R^k)^m\right)^n\longrightarrow(R^k\cdot n)^m\f$, i.e. for example
/ / /a11\ \ \ / /a11\ \ *
| | \a12/ | | | | a12 | | * \f[
| | /a21\ | | | | b11 | | * \begin{pmatrix}
| | \a22/ | | | | b12 | | * \begin{pmatrix}
| | /a31\ | | | | c11 | | * \begin{pmatrix} a_{11}\\ a_{12} \end{pmatrix}\\
| \ \a32/ / | | | c12 | | * \begin{pmatrix} a_{21}\\ a_{22} \end{pmatrix}\\
| | | | d11 | | * \begin{pmatrix} a_{31}\\ a_{32} \end{pmatrix}
| / /b11\ \ | | \d12/ | * \end{pmatrix}\\
| | \b12/ | | | | * \begin{pmatrix}
| | /b21\ | | | /a21\ | * \begin{pmatrix} b_{11}\\ b_{12} \end{pmatrix}\\
| | \b22/ | | | | a22 | | * \begin{pmatrix} b_{21}\\ b_{22} \end{pmatrix}\\
| | /b31\ | | | | b21 | | * \begin{pmatrix} b_{31}\\ b_{32} \end{pmatrix}
| \ \b32/ / | interlace | | b22 | | * \end{pmatrix}\\
| | ----------> | | c11 | | * \begin{pmatrix}
| / /c11\ \ | | | c22 | | * \begin{pmatrix} c_{11}\\ c_{12} \end{pmatrix}\\
| | \c12/ | | | | d21 | | * \begin{pmatrix} c_{21}\\ c_{22} \end{pmatrix}\\
| | /c21\ | | | \d22/ | * \begin{pmatrix} c_{31}\\ c_{32} \end{pmatrix}
| | \c22/ | | | | * \end{pmatrix}\\
| | /c31\ | | | /a31\ | * \begin{pmatrix}
| \ \c32/ / | | | a32 | | * \begin{pmatrix} d_{11}\\ d_{12} \end{pmatrix}\\
| | | | b31 | | * \begin{pmatrix} d_{21}\\ d_{22} \end{pmatrix}\\
| / /d11\ \ | | | b32 | | * \begin{pmatrix} d_{31}\\ d_{32} \end{pmatrix}
| | \d12/ | | | | c31 | | * \end{pmatrix}
| | /d21\ | | | | c32 | | * \end{pmatrix}
| | \d22/ | | | | d31 | | *
| | /d31\ | | | \d32/ | * \xrightarrow{interlace}
\ \ \d32/ / / \ / *
*/ * \begin{pmatrix}
* \begin{pmatrix}
* a_{11}\\ a_{12}\\ b_{11}\\ b_{12}\\ c_{11}\\ c_{12}\\ d_{11}\\ d_{12}
* \end{pmatrix}\\
* \begin{pmatrix}
* a_{21}\\ a_{22}\\ b_{21}\\ b_{22}\\ c_{21}\\ c_{22}\\ d_{21}\\ d_{22}
* \end{pmatrix}\\
* \begin{pmatrix}
* a_{31}\\ a_{32}\\ b_{31}\\ b_{32}\\ c_{31}\\ c_{32}\\ d_{31}\\ d_{32}
* \end{pmatrix}
* \end{pmatrix}
* \f]
*/
template <class LVectorBlock, class RVectorBlock> template <class LVectorBlock, class RVectorBlock>
static void interlace(const Dune::BlockVector<Dune::BlockVector<LVectorBlock> >& lvec, Dune::BlockVector<RVectorBlock>& rvec) 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