pyFDN.kronecker_matrix#
- pyFDN.kronecker_matrix(angles, kernel_type='rotation')[source]#
Build the explicit Kronecker feedback matrix
Psi_M.Formed by the recursion
Psi_0 = 1,Psi_m = K_m kron Psi_{m-1}, soangles[0]is the innermost kerneltheta_1andangles[-1]the outermosttheta_M. The result is orthogonal for any angles.Use this for analysis and plotting; for rendering prefer
kronecker_transform(), which never forms the matrix and costsO(N log2 N)per input vector.- Parameters:
- Return type:
- Returns:
np.ndarray – Orthogonal matrix of shape
(2**M, 2**M).Example:: – >>> import numpy as np >>> A = kronecker_matrix([np.pi / 4] * 3, “reflection”) >>> np.allclose(A @ A.T, np.eye(8)) True