JavaView® v2.12

jvx.numeric
Class PnJacobi

java.lang.Object
  |
  +--jvx.numeric.PnJacobi

public class PnJacobi
extends java.lang.Object

Compute eigenvectors and eigenvalues of a given matrix and store in result vectors.

Version:
08.11.00, 2.20 revised (kp) Replace formatting with PuString rather than Fmt.
08.09.99, 2.10 revised (kp) Moved to project jv.numeric from jv.geom.
07.09.99, 2.00 revised (kp) ComputeEigenvectors() converted to static method.
00.00.98, 1.00 created (kp)
Author:
Konrad Polthier

Constructor Summary
PnJacobi()
           
 
Method Summary
static int computeEigenvectors(PdMatrix mat, int dim, PdVector eValue, PdVector[] eVector)
          Compute eigenvectors and eigenvalues of a given matrix and store in result vectors.
static void main(java.lang.String[] args)
           
static void printEigenvalues(int dim, PdVector eValue)
           
static void printEigenvectors(int dim, PdVector eValue, PdVector[] eVector)
           
static boolean test(PdMatrix mat, int dim, PdVector eValue, PdVector[] eVector)
           
static boolean testWayneExample(double a, double b, double c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PnJacobi

public PnJacobi()
Method Detail

computeEigenvectors

public static int computeEigenvectors(PdMatrix mat,
                                      int dim,
                                      PdVector eValue,
                                      PdVector[] eVector)
Compute eigenvectors and eigenvalues of a given matrix and store in result vectors. Method modifies the original matrix for internal use.
Parameters:
mat - Matrix whose eigenvalues and -vectors should be computed.
dim - Size of square matrix, length of vectors
eValue - Vector to store the computed eigenvalues
eValue - Array of vectors to store the computed eigenvectors
Returns:
Number of used iterations.

printEigenvectors

public static void printEigenvectors(int dim,
                                     PdVector eValue,
                                     PdVector[] eVector)

printEigenvalues

public static void printEigenvalues(int dim,
                                    PdVector eValue)

test

public static boolean test(PdMatrix mat,
                           int dim,
                           PdVector eValue,
                           PdVector[] eVector)

testWayneExample

public static boolean testWayneExample(double a,
                                       double b,
                                       double c)

main

public static void main(java.lang.String[] args)

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.