JSci.util
Class MatrixToolkit

java.lang.Object
  extended by JSci.util.MatrixToolkit

public final class MatrixToolkit
extends java.lang.Object

This is a useful collection of matrix related methods.


Method Summary
static ComplexDiagonalMatrix randomComplexDiagonalMatrix(int size)
          Creates a random generated diagonal matrix.
static ComplexSquareMatrix randomComplexSquareMatrix(int size)
          Creates a random generated square matrix.
static ComplexTridiagonalMatrix randomComplexTridiagonalMatrix(int size)
          Creates a random generated tridiagonal matrix.
static DoubleDiagonalMatrix randomDiagonalMatrix(int size)
          Creates a random generated diagonal matrix.
static DoubleSquareMatrix randomSquareMatrix(int size)
          Creates a random generated square matrix.
static DoubleTridiagonalMatrix randomTridiagonalMatrix(int size)
          Creates a random generated tridiagonal matrix.
static DoubleSquareMatrix rosserMatrix()
           
static Complex[][] toArray(AbstractComplexMatrix v)
          Converts a matrix to an array.
static double[][] toArray(AbstractDoubleMatrix v)
          Converts a matrix to an array.
static DoubleTridiagonalMatrix wilkinsonMatrix(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

randomSquareMatrix

public static DoubleSquareMatrix randomSquareMatrix(int size)
Creates a random generated square matrix.


randomTridiagonalMatrix

public static DoubleTridiagonalMatrix randomTridiagonalMatrix(int size)
Creates a random generated tridiagonal matrix.


randomDiagonalMatrix

public static DoubleDiagonalMatrix randomDiagonalMatrix(int size)
Creates a random generated diagonal matrix.


randomComplexSquareMatrix

public static ComplexSquareMatrix randomComplexSquareMatrix(int size)
Creates a random generated square matrix.


randomComplexTridiagonalMatrix

public static ComplexTridiagonalMatrix randomComplexTridiagonalMatrix(int size)
Creates a random generated tridiagonal matrix.


randomComplexDiagonalMatrix

public static ComplexDiagonalMatrix randomComplexDiagonalMatrix(int size)
Creates a random generated diagonal matrix.


toArray

public static double[][] toArray(AbstractDoubleMatrix v)
Converts a matrix to an array.


toArray

public static Complex[][] toArray(AbstractComplexMatrix v)
Converts a matrix to an array.


rosserMatrix

public static DoubleSquareMatrix rosserMatrix()

wilkinsonMatrix

public static DoubleTridiagonalMatrix wilkinsonMatrix(int n)