Complex z = new Complex(Math.cos(h), Math.sin(h));
// Create matrix kernel and compute element values
final double c = Math.sqrt(1.0/N); // normalization constant
ComplexSquareMatrix Kf = new ComplexSquareMatrix( N );
ComplexSquareMatrix Ki = new ComplexSquareMatrix( N );
for (int m=0; m<N; m++) {
for (int n=m; n<N; n++) {
double cos = c*Math.cos(h*m*n);
double sin = c*Math.sin(h*m*n);
Kf.setElement(m, n, cos, -sin);
Kf.setElement(n, m, cos, -sin);
Ki.setElement(m, n, cos, sin);
Ki.setElement(n, m, cos, sin);
}
}
this.szData = N;
this.cpxZ = z;