fhm.edu.fem.calc.objects.matrix
Class MatrixHullChain

java.lang.Object
  extended by fhm.edu.fem.calc.objects.matrix.MatrixHull
      extended by fhm.edu.fem.calc.objects.matrix.MatrixHullChain
All Implemented Interfaces:
MathObject, Matrix

public class MatrixHullChain
extends MatrixHull

Class Description: Test implementation of a Version of the Hull Matrix which is faster and does not have the "small" speed problems of the original MatrixHull class. ATTENTION: THIS TEST IMPLEMENTATION IS NOT WORKING AND NOT COMPLETE SO DO NOT USE IT IN A WORKING ENVIRONMENT.

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
 
Fields inherited from class fhm.edu.fem.calc.objects.matrix.MatrixHull
diagPointer, difference, env, hullDiagElementIndex, localLogger, name, prevHullDiagElementIndex, size, targetHullElementIndex
 
Constructor Summary
MatrixHullChain(MatrixHullChain m)
          Copy Constructor
MatrixHullChain(java.lang.String name, int size)
          Create a new HullMatrix with the size (x rows and x columns) (all fields are initialized with zeros)
 
Method Summary
 Matrix cholesky()
          Do the cholesky for this matrix
 java.lang.Object clone()
          Clone the matrix
 void displayChain()
           
protected  int getNextNonZeroIndexForRow(int row, int column)
          Find the next non-zero value starting from the given column index in the given row
 long getRequiredMemory()
          Retrieve the amount of required memory in this matrix (in byte)
 java.lang.String toString()
           
 
Methods inherited from class fhm.edu.fem.calc.objects.matrix.MatrixHull
add, asArray, getDiagPointer, getENV, getFirstNonZeroIndexForRow, getName, getValue, isMainDiagonalNotZero, isSymmetric, mult, mult, mult, setLineAndColumn, setName, setValue, size, storeLine, toString, transponate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatrixHullChain

public MatrixHullChain(MatrixHullChain m)
Copy Constructor

Parameters:
m, - the hull matrix to copy

MatrixHullChain

public MatrixHullChain(java.lang.String name,
                       int size)
Create a new HullMatrix with the size (x rows and x columns) (all fields are initialized with zeros)

Parameters:
name, - the name of the matrix
size, - the number of rows and columns (square matrix only!)
Method Detail

cholesky

public Matrix cholesky()
                throws CholeskyFailedException
Do the cholesky for this matrix

Specified by:
cholesky in interface Matrix
Overrides:
cholesky in class MatrixHull
Returns:
the matrix L as result of the cholesky
Throws:
CholeskyFailedException

clone

public java.lang.Object clone()
Clone the matrix

Specified by:
clone in interface Matrix
Overrides:
clone in class MatrixHull
Returns:
the cloned matrix

displayChain

public void displayChain()

getNextNonZeroIndexForRow

protected int getNextNonZeroIndexForRow(int row,
                                        int column)
                                 throws java.lang.IndexOutOfBoundsException
Find the next non-zero value starting from the given column index in the given row

Parameters:
row -
column -
Returns:
Throws:
java.lang.IndexOutOfBoundsException

getRequiredMemory

public long getRequiredMemory()
Retrieve the amount of required memory in this matrix (in byte)

Specified by:
getRequiredMemory in interface Matrix
Overrides:
getRequiredMemory in class MatrixHull
Returns:
the amount of required memory in byte

toString

public java.lang.String toString()
Specified by:
toString in interface Matrix
Overrides:
toString in class MatrixHull