Exercises

ex01-kronecker-basic

Easy

Let B=[1234]\mathbf{B} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and C=[0110]\mathbf{C} = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}.

(a) Compute BβŠ—C\mathbf{B} \otimes \mathbf{C}. (b) Compute CβŠ—B\mathbf{C} \otimes \mathbf{B}. (c) Verify that BβŠ—Cβ‰ CβŠ—B\mathbf{B} \otimes \mathbf{C} \neq \mathbf{C} \otimes \mathbf{B}. (d) Compute the eigenvalues of both products and verify the eigenvalue product property.

ex02-vec-identity

Easy

Verify the vec identity (BβŠ—C)vec(X)=vec(CXBT)(\mathbf{B} \otimes \mathbf{C})\text{vec}(\mathbf{X}) = \text{vec}(\mathbf{C}\mathbf{X}\mathbf{B}^T) for B=[1002]\mathbf{B} = \begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix}, C=[1101]\mathbf{C} = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}, and X=[1234]\mathbf{X} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.

ex03-storage-saving

Easy

A 3D imaging system has Nt=8N_t = 8, Nr=16N_r = 16, Nf=32N_f = 32, and the scene grid is 24Γ—24Γ—2424 \times 24 \times 24.

(a) Compute MM (number of measurements) and NN (number of voxels). (b) Compute the storage for the full A\mathbf{A} in MB (16 bytes per complex double). (c) Compute the storage for the Kronecker factors in KB. (d) What is the storage ratio?

ex04-adjoint-kronecker

Easy

Show that the adjoint of a Kronecker product satisfies (BβŠ—C)H=BHβŠ—CH(\mathbf{B} \otimes \mathbf{C})^H = \mathbf{B}^H \otimes \mathbf{C}^H directly from the definition.

ex05-condition-product

Medium

Let A1∈C4Γ—8\mathbf{A}_{1} \in \mathbb{C}^{4 \times 8} and A2∈C6Γ—10\mathbf{A}_{2} \in \mathbb{C}^{6 \times 10} with ΞΊ(A1)=5\kappa(\mathbf{A}_{1}) = 5 and ΞΊ(A2)=12\kappa(\mathbf{A}_{2}) = 12.

(a) What is ΞΊ(A1βŠ—A2)\kappa(\mathbf{A}_{1} \otimes \mathbf{A}_{2})? (b) If we add a third factor A3\mathbf{A}_{3} with ΞΊ(A3)=3\kappa(\mathbf{A}_{3}) = 3, what is the overall condition number? (c) Which factor should be improved first to most effectively reduce the overall conditioning?

ex06-svd-kronecker

Medium

Let A1=[2101]\mathbf{A}_{1} = \begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix} and A2=[1003]\mathbf{A}_{2} = \begin{bmatrix} 1 & 0 \\ 0 & 3 \end{bmatrix}.

(a) Compute the singular values of A1\mathbf{A}_{1} and A2\mathbf{A}_{2}. (b) Compute all singular values of A1βŠ—A2\mathbf{A}_{1} \otimes \mathbf{A}_{2}. (c) Verify by computing the SVD of the full 4Γ—44 \times 4 matrix.

ex07-coherence-ula

Medium

A ULA with N=16N = 16 elements at half-wavelength spacing observes a scene discretized into Q=32Q = 32 angular bins uniformly spaced in u=sin⁑θ∈[βˆ’1,1]u = \sin\theta \in [-1, 1].

(a) Write the (n,q)(n, q) entry of the sensing matrix. (b) Compute the coherence between adjacent bins. (c) Compute the Welch bound and compare. (d) How many bins must be removed (from the edges) to reduce the coherence below 0.5?

ex08-preconditioned-convergence

Medium

A Tikhonov problem with ΞΊ(AHA)=10,000\kappa(\mathbf{A}^{H}\mathbf{A}) = 10{,}000 is solved by CG.

(a) Estimate the number of CG iterations to reduce the residual by a factor of 10βˆ’410^{-4} without preconditioning. (b) A Kronecker preconditioner reduces the effective condition number to 25. How many iterations are needed now? (c) If each preconditioned iteration costs 3Γ—3\times as much as an unpreconditioned iteration, is preconditioning worthwhile?

ex09-mode-product

Medium

A tensor X∈R3Γ—4Γ—5\boldsymbol{\mathcal{X}} \in \mathbb{R}^{3 \times 4 \times 5} and a matrix M∈R2Γ—4\mathbf{M} \in \mathbb{R}^{2 \times 4}.

(a) What is the size of Y=XΓ—2M\boldsymbol{\mathcal{Y}} = \boldsymbol{\mathcal{X}} \times_2 \mathbf{M}? (b) Express the mode-2 product in terms of a standard matrix multiplication using unfolding. (c) Compute the total number of multiplications.

ex10-psf-analysis

Medium

For a 2D imaging system with A=AangβŠ—Af\mathbf{A} = \mathbf{A}_{\text{ang}} \otimes \mathbf{A}_{f} where Aang∈C16Γ—32\mathbf{A}_{\text{ang}} \in \mathbb{C}^{16 \times 32} is a partial DFT and Af∈C8Γ—16\mathbf{A}_{f} \in \mathbb{C}^{8 \times 16} is a partial DFT:

(a) Compute the Gram matrix G=AHA\mathbf{G} = \mathbf{A}^{H}\mathbf{A} as a Kronecker product. (b) Show that the diagonal of G\mathbf{G} is constant (all columns have equal norm) for a DFT matrix. (c) Derive the PSF main-lobe width in the angular and range dimensions.

ex11-rip-kronecker-bound

Hard

Let A1∈Rm1Γ—n1\mathbf{A}_{1} \in \mathbb{R}^{m_1 \times n_1} satisfy the RIP of order s1s_1 with constant Ξ΄s1(1)=0.1\delta_{s_1}^{(1)} = 0.1, and A2∈Rm2Γ—n2\mathbf{A}_{2} \in \mathbb{R}^{m_2 \times n_2} satisfy the RIP of order s2s_2 with constant Ξ΄s2(2)=0.15\delta_{s_2}^{(2)} = 0.15.

(a) Using the Jokar-Mehta bound, compute the RIP constant of A1βŠ—A2\mathbf{A}_{1} \otimes \mathbf{A}_{2} at order s1s2s_1 s_2. (b) Is this sufficient for LASSO recovery (requires Ξ΄2s<2βˆ’1β‰ˆ0.414\delta_{2s} < \sqrt{2} - 1 \approx 0.414)? (c) What is the maximum per-factor RIP constant that still guarantees LASSO recovery for the product?

ex12-near-field-correction

Hard

A Tx ULA with Nt=8N_t = 8 elements at half-wavelength spacing at f0=28f_0 = 28 GHz images a scene at distance R=5R = 5 m.

(a) Compute the Fraunhofer distance RF=2D2/Ξ»R_F = 2D^2/\lambda where DD is the array aperture. (b) Is the far-field assumption valid? (c) Write the exact (near-field) phase for each element and quantify the deviation from the far-field Kronecker model. (d) Propose a first-order correction to maintain approximate Kronecker structure.

ex13-optimal-precond

Hard

For a 2D Kronecker system A=A2βŠ—A1\mathbf{A} = \mathbf{A}_{2} \otimes \mathbf{A}_{1} with Ak∈CmkΓ—nk\mathbf{A}_{k} \in \mathbb{C}^{m_k \times n_k}:

(a) Show that the optimal (in spectral norm) diagonal preconditioner is P=diag(AHA)\mathbf{P} = \text{diag}(\mathbf{A}^{H}\mathbf{A}). (b) Compute the effective condition number after diagonal preconditioning for a specific example with Οƒ(A1)={4,2,1}\sigma(\mathbf{A}_{1}) = \{4, 2, 1\} and Οƒ(A2)={3,1}\sigma(\mathbf{A}_{2}) = \{3, 1\}. (c) Compare to the Kronecker preconditioner.

ex14-hutchinson-trace

Hard

The OAMP algorithm (Ch 17) requires computing div(c^)=tr(βˆ‚c^/βˆ‚y)\text{div}(\hat{\mathbf{c}}) = \text{tr}(\partial \hat{\mathbf{c}} / \partial \mathbf{y}), which involves the trace of the LMMSE matrix (AHA+Ο„βˆ’1I)βˆ’1AHA(\mathbf{A}^{H}\mathbf{A} + \tau^{-1}\mathbf{I})^{-1}\mathbf{A}^{H}\mathbf{A}.

(a) Show that this trace can be computed exactly in O(n1+n2+n3)O(n_1 + n_2 + n_3) operations using the Kronecker eigendecomposition. (b) Compare to the Hutchinson stochastic trace estimator. (c) Under what conditions is the exact computation preferable?

ex15-kspace-coverage

Hard

A multi-static system has 3 Tx arrays and 4 Rx arrays arranged around a target at distance R=50R = 50 m, operating with Nf=32N_f = 32 subcarriers spanning W=200W = 200 MHz centered at f0=28f_0 = 28 GHz.

(a) Compute the wavenumber-domain points sampled by each Tx-Rx pair. (b) Sketch the k-space coverage for the full system. (c) Identify the direction with poorest coverage and predict which factor's condition number is largest. (d) Compute the approximate condition number in each dimension.

ex16-nkp-approximation

Challenge

When the sensing matrix is only approximately Kronecker, Aβ‰ˆA2βŠ—A1\mathbf{A} \approx \mathbf{A}_{2} \otimes \mathbf{A}_{1}, the Nearest Kronecker Product (NKP) problem seeks:

min⁑B,Cβˆ₯Aβˆ’BβŠ—Cβˆ₯F.\min_{\mathbf{B}, \mathbf{C}} \|\mathbf{A} - \mathbf{B} \otimes \mathbf{C}\|_F.

(a) Show that this can be solved via the SVD of a rearranged matrix R(A)\mathcal{R}(\mathbf{A}). (b) Define the rearrangement operator R\mathcal{R} explicitly. (c) Extend to the rank-RR approximation Aβ‰ˆβˆ‘r=1RBrβŠ—Cr\mathbf{A} \approx \sum_{r=1}^R \mathbf{B}_r \otimes \mathbf{C}_r. (d) For a near-field correction term E\mathbf{E} with rank 3, estimate the computational overhead of using the NKP-3 approximation vs. the exact Kronecker structure.

ex17-randomized-kron-precond

Challenge

Design a preconditioner for the case when A\mathbf{A} does not admit an exact Kronecker factorization. Consider the approach:

  1. Compute the NKP approximation Aβ‰ˆA^2βŠ—A^1\mathbf{A} \approx \hat{\mathbf{A}}_2 \otimes \hat{\mathbf{A}}_1.
  2. Use P^=(A^2HA^2+Ξ±2I)βŠ—(A^1HA^1+Ξ±1I)\hat{\mathbf{P}} = (\hat{\mathbf{A}}_2^H\hat{\mathbf{A}}_2 + \alpha_2\mathbf{I}) \otimes (\hat{\mathbf{A}}_1^H\hat{\mathbf{A}}_1 + \alpha_1\mathbf{I}) as a preconditioner for the exact system.

(a) Derive a bound on the effective condition number in terms of the NKP approximation error Ο΅=βˆ₯Aβˆ’A^2βŠ—A^1βˆ₯F/βˆ₯Aβˆ₯F\epsilon = \|\mathbf{A} - \hat{\mathbf{A}}_2 \otimes \hat{\mathbf{A}}_1\|_F / \|\mathbf{A}\|_F. (b) For what values of Ο΅\epsilon does this preconditioner improve over unpreconditioned CG? (c) Implement this for a simulated near-field scenario and compare convergence.

ex18-complexity-comparison

Challenge

Consider a 3D imaging problem with parameters Nt=Nr=nN_t = N_r = n, Nf=nN_f = n, and grid size n3n^3. Compare the total computational cost (in terms of nn) for reconstructing the image using:

(a) Matched filter (single application of AH\mathbf{A}^{H}). (b) Tikhonov via direct solve. (c) ISTA with TT iterations. (d) OAMP with TT iterations (LMMSE step + denoiser). (e) Learned unrolled OAMP with TT layers (forward + backward pass).

For each, give the cost with and without Kronecker exploitation, and determine the crossover point where learned OAMP becomes cheaper than classical OAMP.