xnn.cnn.fast.spherical_kernels.SpectralPlan#

class xnn.cnn.fast.spherical_kernels.SpectralPlan(table, J, L, S, so3, padded=False)[source]#

Bases: object

One transform between a grid and compact spectra, for the contraction kernels.

Parameters:
  • table (Tensor) – T[(m, n), j, l], shape ((2L - 1)^2, J, L) (SO(3)) or (2L - 1, J, L) (S^2), frequencies ordered m, n = -(L - 1) .. L - 1; contiguous, in the precision of the signals.

  • J (int) – Samples of beta.

  • L (int) – Bandwidth of the spectra.

  • S (int) – Samples of each FFT axis.

  • so3 (bool) – SO(3) grids (two FFT axes) or S^2 grids (one).

  • padded (bool, optional) – Blocks of 2L - 1 entries per index m and n for every degree, centered (m + L - 1) and zero outside |m|, |n| <= l, instead of 2l + 1.

grid_shape(lead)[source]#

The real view of an FFT grid with leading dimensions lead.

Return type:

List[int]