![]() |
KerMor
0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
|
MatUtils: Matrix utility functions. More...
MatUtils: Matrix utility functions.
This class is part of the framework
Homepage
http://www.morepas.org/software/index.htmlDocumentation
http://www.morepas.org/software/kermor/index.htmlLicense
KerMor license conditions Definition at line 17 of file MatUtils.m.
Static Public Member Functions | |
static function [ A , idxmat ] = | laplacemat (h, d1, d2) |
Computes a 2D diffusion sparse matrix with zero neuman boundary conditions. More... | |
static function matrix < double > A = | divcdivumat (px, py, gradc) |
Computes the 2D matrix for the expression \(\nabla c(x) \cdot \nabla u\) arising in the general spatial-dependent diffusion term \(\nabla\cdot(c(x)\nabla u(x))\). More... | |
static function A = | laplacemat3D (h, g) |
Computes a 3D laplacian sparse matrix. More... | |
static function A = | generalizedLaplacemat3D (h, g, sigma) |
Computes a 3D generalized laplacian sparse matrix \(\nabla\cdot\sigma\nabla\). More... | |
static function Kinv = | getExtendedInverse (Kinv, v, mode) |
For a matrix K with known inverse Kinv the matrix is extended by the vector. More... | |
static function
Asparse = | toSparse (matrix< double > A,rowvec< integer > rowidx, n) |
Converts a full matrix A to a sparse matrix, where the entries of A are split up to the row indices specified by rowidx. More... | |
static function res = | test_DivCDivUMat () |
static function | test_ExtendedInverseDirect () |
Tests direct inversion extension for a matrix of size s for a fixed number of experiments each. More... | |
static function | test_ExtendedInverseSequential () |
Computes the 2D matrix for the expression \(\nabla c(x) \cdot \nabla u\) arising in the general spatial-dependent diffusion term \(\nabla\cdot(c(x)\nabla u(x))\).
The coordinates in px and py have to be equally spaced, e.g. meshgrid'ed. Further the coordinate system origin is assumed to be in the top left corner, so x+ to the right and y+ to the bottom (accorcind
A | The matrix with discretized entries |
Definition at line 104 of file MatUtils.m.
Referenced by test_DivCDivUMat().
|
static |
Computes a 3D generalized laplacian sparse matrix \(\nabla\cdot\sigma\nabla\).
Definition at line 304 of file MatUtils.m.
References k.
|
static |
For a matrix K with known inverse Kinv the matrix is extended by the vector.
Definition at line 424 of file MatUtils.m.
References t.
Referenced by test_ExtendedInverseDirect(), and test_ExtendedInverseSequential().
|
static |
Computes a 2D diffusion sparse matrix with zero neuman boundary conditions.
Definition at line 34 of file MatUtils.m.
References t.
Referenced by models.pcd.PCDSystem2D.newSysDimension().
|
static |
Computes a 3D laplacian sparse matrix.
Definition at line 187 of file MatUtils.m.
References k.
Referenced by models.pcd.PCDSystem3D.newSysDimension().
|
static |
Definition at line 488 of file MatUtils.m.
References divcdivumat().
|
static |
Tests direct inversion extension for a matrix of size s for a fixed number of experiments each.
Repeats all experiments for different kernel widths.
Definition at line 507 of file MatUtils.m.
References getExtendedInverse(), t, and X.
|
static |
Definition at line 560 of file MatUtils.m.
References getExtendedInverse(), t, and X.
Converts a full matrix A to a sparse matrix, where the entries of A are split up to the row indices specified by rowidx.
A | The matrix to "sparsify" |
rowidx | The row indices of A rows inside the sparse matrix |
n | The row size of the target sparse matrix. |
Definition at line 467 of file MatUtils.m.
Referenced by general.POD.computePOD(), and general.MatrixDEIM.updateOrderData().