Reference documentation for deal.II version 9.0.0
|
#include <deal.II/lac/tensor_product_matrix.h>
Public Member Functions | |
unsigned int | m () const |
unsigned int | n () const |
void | vmult (const ArrayView< Number > &dst, const ArrayView< const Number > &src) const |
void | apply_inverse (const ArrayView< Number > &dst, const ArrayView< const Number > &src) const |
Protected Member Functions | |
TensorProductMatrixSymmetricSumBase ()=default | |
Protected Attributes | |
std::array< Table< 2, Number >, dim > | mass_matrix |
std::array< Table< 2, Number >, dim > | derivative_matrix |
std::array< AlignedVector< Number >, dim > | eigenvalues |
std::array< Table< 2, Number >, dim > | eigenvectors |
Private Attributes | |
AlignedVector< Number > | tmp_array |
Threads::Mutex | mutex |
This is an abstract base class used for a special matrix class, namely the TensorProductMatrixSymmetricSum.
First, the base class acts like a container storing 1D mass matrices and 1D derivative matrices as well as the generalized eigenvalues and eigenvectors for each tensor direction. For a detailed definition of these matrices and corresponding generalized eigenproblems we refer to the main documentation of TensorProductMatrixSymmetricSum.
Second, it implements the matrix-vector product with the tensor product matrix (vmult()) and its inverse (apply_inverse()) as described in the main documentation of TensorProductMatrixSymmetricSum.
dim | Dimension of the problem. Currently, 1D, 2D, and 3D codes are implemented. |
Number | Arithmetic type of the underlying array elements. |
size | Compile-time array lengths. By default at -1, which means that the run-time information stored in the matrices passed to the reinit() function is used. |
Definition at line 67 of file tensor_product_matrix.h.
|
protecteddefault |
Default constructor.
unsigned int TensorProductMatrixSymmetricSumBase< dim, Number, size >::m | ( | ) | const |
Return the number of rows of the tensor product matrix resulting from the Kronecker product of 1D matrices, which is described in the main documentation of TensorProductMatrixSymmetricSum.
unsigned int TensorProductMatrixSymmetricSumBase< dim, Number, size >::n | ( | ) | const |
Return the number of columns of the tensor product matrix resulting from the Kronecker product of 1D matrices, which is described in the main documentation of TensorProductMatrixSymmetricSum.
void TensorProductMatrixSymmetricSumBase< dim, Number, size >::vmult | ( | const ArrayView< Number > & | dst, |
const ArrayView< const Number > & | src | ||
) | const |
Implements a matrix-vector product with the underlying matrix as described in the main documentation of TensorProductMatrixSymmetricSum. This function is operating on ArrayView to allow checks of array bounds with respect to dst
and src
.
void TensorProductMatrixSymmetricSumBase< dim, Number, size >::apply_inverse | ( | const ArrayView< Number > & | dst, |
const ArrayView< const Number > & | src | ||
) | const |
Implements a matrix-vector product with the underlying matrix as described in the main documentation of TensorProductMatrixSymmetricSum. This function is operating on ArrayView to allow checks of array bounds with respect to dst
and src
.
|
protected |
An array containing a mass matrix for each tensor direction.
Definition at line 111 of file tensor_product_matrix.h.
|
protected |
An array containing a derivative matrix for each tensor direction.
Definition at line 116 of file tensor_product_matrix.h.
|
protected |
An array storing the generalized eigenvalues for each tensor direction.
Definition at line 122 of file tensor_product_matrix.h.
|
protected |
An array storing the generalized eigenvectors for each tensor direction.
Definition at line 128 of file tensor_product_matrix.h.
|
mutableprivate |
An array for temporary data.
Definition at line 134 of file tensor_product_matrix.h.
|
mutableprivate |
A mutex that guards access to the array tmp_array
.
Definition at line 139 of file tensor_product_matrix.h.