ArticleslgStudy

mathematics

Hierarchical matrix

Hierarchical matrix is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hierarchical matrix rather than just read about it. In short: In numerical mathematics, hierarchical matrices (H-matrices) are used as data-sparse approximations of non-sparse matrices. While a sparse matrix of dimension n can be represented efficiently in O(n) units of storage by storing only its non-zero entries, a non-sparse matrix would require O(n2) units of storage, and using this type of matrices for large problems would therefore be prohibitively expensive in terms of…

Key takeaways

  • Hierarchical matrix belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hierarchical matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hierarchical matrix from memory before moving on to harder problems.

Reference excerpt

In numerical mathematics, hierarchical matrices (H-matrices) are used as data-sparse approximations of non-sparse matrices. While a sparse matrix of dimension n can be represented efficiently in O(n) units of storage by storing only its non-zero entries, a non-sparse matrix would require O(n2) units of storage, and using this type of matrices for large problems would therefore be prohibitively expensive in terms of storage and computing time. Hierarchical matrices provide an approximation requiring only O(nklog⁡(n)) units of storage, where k is a parameter controlling the accuracy of the approximation. In typical applications, e.g., when discretizing integral equations, preconditioning the resulting systems of linear equations, or solving elliptic partial differential equations, a rank proportional to log⁡(1/ϵ)γ with a small constant γ is sufficient to ensure an accuracy of ϵ. Compared to many other data-sparse representations of non-sparse matrices, hierarchical matrices offer a major advantage: the results of matrix arithmetic operations like matrix multiplication, factorization or inversion can be approximated in O(nkαlog⁡(n)β) operations, where α,β∈{1,2,3}.

Basic idea Hierarchical matrices rely on local low-rank approximations: let I,J be index sets, and let G∈ℝI×J denote the matrix we have to approximate. In many applications (see above), we can find subsets t⊆I,s⊆J such that G|t×s can be approximated by a rank-k matrix. This approximation can be represented in factorized form G|t×s≈AB∗ with factors A∈ℝt×k,B∈ℝs×k. While the standard representation of the matrix G|t×s requires O((#t)(#s)) units of storage, the factorized representation requires only O(k(#t+#s)) units. If k is not too large, the storage requirements are reduced significantly. In order to approximate the entire matrix G, it is split into a family of submatrices. Large submatrices are stored in factorized representation, while small submatrices are stored in standard representation in order to improve efficiency. Low-rank matrices are closely related to degenerate expansions used in panel clustering and the fast multipole method to approximate integral operators. In this sense, hierarchical matrices can be considered the algebraic counterparts of these techniques.

Application to integral operators Hierarchical matrices are successfully used to treat integral equations, e.g., the single and double layer potential operators appearing in the boundary element method. A typical operator has the form

𝒢[u](x)=∫Ωκ(x,y)u(y)dy. The Galerkin method leads to matrix entries of the form

gij=∫Ω∫Ωκ(x,y)φi(x)ψj(y)dydx, where (φi)i∈I and (ψj)j∈J are families of finite element basis functions. If the kernel function κ is sufficiently smooth, we can approximate it by polynomial interpolation to obtain

κ~(x,y)=∑ν=1kκ(x,ξν)ℓν(y), where (ξν)ν=1k is the family of interpolation points and (ℓν)ν=1k is the corresponding family of Lagrange polynomials. Replacing κ by κ~ yields an approximation

g~ij=∫Ω∫Ωκ~(x,y)φi(x)ψj(y)dydx=∑ν=1k∫Ωκ(x,ξν)φi(x)dx∫Ωℓν(y)ψj(y)dy=∑ν=1kaiνbjν with the coefficients

aiν=∫Ωκ(x,ξν)φi(x)dx, bjν=∫Ωℓν(y)ψj(y)dy. If we choose t⊆I,s⊆J and use the same interpolation points for all i∈t,j∈s, we obtain G|t×s≈AB∗. Obviously, any other approximation separating the variables x and y, e.g., the multipole expansion, would also allow us to split the double integral into two single integrals and thus arrive at a similar factorized low-rank matrix. Of particular interest are cross approximation techniques that use only the entries of the original matrix G to construct a low-rank approximation.

Application to elliptic partial differential equations Since the solution operator of an elliptic partial differential equation can be expressed as an integral operator involving Green's function, it is not surprising that the inverse of the stiffness matrix arising from the finite element method and spectral method can be approximated by a hierarchical matrix. Green's function depends on the shape of the computational domain, therefore it is usually not known. Nevertheless, approximate arithmetic operations can be employed to compute an approximate inverse without knowing the function explicitly. Surprisingly, it is possible to prove that the inverse can be approximated even if the differential operator involves non-smooth coefficients and Green's function is therefore not smooth.

Arithmetic operations The most important innovation of the hierarchical matrix method is the development of efficient algorithms for performing (approximate) matrix arithmetic operations on non-sparse matrices, e.g., to compute approximate inverses, LU decompositions and solutions to matrix equations. The central algorithm is the efficient matrix-matrix multiplication, i.e., the computation of Z=Z+αXY for hierarchical matrices X,Y,Z and a scalar factor α. The algorithm requires the submatrices of the hierarchical matrices to be organized in a block tree structure and takes advantage of the properties of factorized low-rank matrices to compute the updated Z in O(nk2log⁡(n)2) operations. Taking advantage of the block structure, the inverse can be computed by using recursion to compute inverses and Schur complements of diagonal blocks and combining both using the matrix-matrix multiplication. In a similar way, the LU decomposition can be constructed using only recursion and multiplication. Both operations also require O(nk2log⁡(n)2) operations.

H2-matrices In order to treat very large problems, the structure of hierarchical matrices can be improved: H2-matrices replace the general low-rank structure of the blocks by a hierarchical representation closely related to the fast multipole method in order to reduce the storage complexity to O(nk). In the context of boundary integral operators, replacing the fixed rank k by block-dependent ranks leads to approximations that preserve the rate of convergence of the underlying boundary element method at a complexity of O(n). Arithmetic operations like multiplication, inversion, and Cholesky or LR factorization of H2-matrices can be implemented based on two fundamental operations: the matrix-vector multiplication with submatrices and the low-rank update of submatrices. While the matrix-vector multiplication is straightforward, implementing efficient low-rank updates with adaptively optimized cluster bases poses a significant challenge.

Literature

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Hierarchical matrix

Start with the simplest possible case. Write down what Hierarchical matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hierarchical matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hierarchical matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hierarchical matrix

In research
Hierarchical matrix appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hierarchical matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hierarchical matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Matrices (mathematics), so understanding it makes those chapters shorter.
In everyday life
Look for Hierarchical matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hierarchical matrix” →

How to study Hierarchical matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hierarchical matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hierarchical matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hierarchical matrix in simple terms?

In numerical mathematics, hierarchical matrices (H-matrices) are used as data-sparse approximations of non-sparse matrices. While a sparse matrix of dimension n can be represented efficiently in O(n) units of storage by storing only its non-zero entries, a non-sparse matrix would require O(n2) unit…

Why does Hierarchical matrix matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hierarchical matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hierarchical matrix.

Tags

  • Matrices (mathematics)

Keep exploring