WaveletMatrix class