Package JSci.maths.matrices

Examples of JSci.maths.matrices.DoubleSquareMatrix


       
        final int           N = szData - 1;         // vector/matrix dimensions
        final double        c = Math.sqrt(2.0/N);   // normalization constant
       
        // Create matrix kernel and compute element values
        DoubleSquareMatrix  K = new DoubleSquareMatrix( N + 1 );
        for (m=0; m<=N; m++)
            for (n=m; n<=N; n++)    {
                k = c*Math.sin(Math.PI*m*n/N);
               
                K.setElement(m, n, k);
                K.setElement(n, m, k);
            }
       
        this.szData = N + 1;
        this.matKer = K;
    }
View Full Code Here

TOP

Related Classes of JSci.maths.matrices.DoubleSquareMatrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.