/// <summary> /// Implements the construction of the Hartley transform matrix. /// </summary> /// <param name="n">Size</param> /// <returns>Matrix</returns> public static float[,] Matrix(int n) { int j, i; float[,] H = new float[n, n]; float s = (2.0f * Maths.Pi) / n; for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { H[i, j] = Special.Cas(s * i * j); } } return(H); }