Class NonNegativeMatrix

java.lang.Object
  extended byNonNegativeMatrix

public class NonNegativeMatrix
extends java.lang.Object

This class implements algorithms on nonnegative matrices. The matrices are square matrices with real coefficients.


Constructor Summary
NonNegativeMatrix(int n)
          Creates an n times n matrix.
 
Method Summary
 NonNegativeVector approximateEigenvector(NonNegativeVector x, float ra)
          Returns a vector y such that My >= ra y iterating the transformation y = (1 / r(y)) M y starting with y = x with r(y) = min((My)_i / y_i) the Wielandt function.
 float dominantEigenvalue(NonNegativeVector x, float epsilon)
          Returns an approximate value of rho_M, the maximal eigenvalue of the matrix M.
static NonNegativeMatrix golden()
          The classical 2 by 2 matrix of the golden mean system.
 NonNegativeVector leftAction(NonNegativeVector x)
          Returns the result of the action of the matrix on the comlumn vector x.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonNegativeMatrix

public NonNegativeMatrix(int n)
Creates an n times n matrix.

Method Detail

leftAction

public NonNegativeVector leftAction(NonNegativeVector x)
Returns the result of the action of the matrix on the comlumn vector x.


dominantEigenvalue

public float dominantEigenvalue(NonNegativeVector x,
                                float epsilon)
Returns an approximate value of rho_M, the maximal eigenvalue of the matrix M. The matrix M is supposed to be primitive.

Parameters:
x - a positive vector

approximateEigenvector

public NonNegativeVector approximateEigenvector(NonNegativeVector x,
                                                float ra)
Returns a vector y such that My >= ra y iterating the transformation y = (1 / r(y)) M y starting with y = x with r(y) = min((My)_i / y_i) the Wielandt function.


golden

public static NonNegativeMatrix golden()
The classical 2 by 2 matrix of the golden mean system.


main

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