Class JSci.maths.MatrixMath
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.MatrixMath

java.lang.Object
   |
   +----JSci.maths.MatrixMath

public final class MatrixMath
extends Object
The matrix math library. This class cannot be subclassed or instantiated because all methods are static.

Method Index

 o add(ComplexDiagonalMatrix, ComplexDiagonalMatrix)
Returns the addition of two diagonal matrices.
 o add(ComplexMatrix, ComplexMatrix)
Returns the addition of two matrices.
 o add(ComplexSquareMatrix, ComplexSquareMatrix)
Returns the addition of two square matrices.
 o add(ComplexTridiagonalMatrix, ComplexTridiagonalMatrix)
Returns the addition of two tridiagonal matrices.
 o add(DoubleDiagonalMatrix, DoubleDiagonalMatrix)
Returns the addition of two diagonal matrices.
 o add(DoubleMatrix, DoubleMatrix)
Returns the addition of two matrices.
 o add(DoubleSquareMatrix, DoubleSquareMatrix)
Returns the addition of two square matrices.
 o add(DoubleTridiagonalMatrix, DoubleTridiagonalMatrix)
Returns the addition of two tridiagonal matrices.
 o add(IntegerDiagonalMatrix, IntegerDiagonalMatrix)
Returns the addition of two diagonal matrices.
 o add(IntegerMatrix, IntegerMatrix)
Returns the addition of two matrices.
 o add(IntegerSquareMatrix, IntegerSquareMatrix)
Returns the addition of two square matrices.
 o add(IntegerTridiagonalMatrix, IntegerTridiagonalMatrix)
Returns the addition of two tridiagonal matrices.
 o conjugate(ComplexDiagonalMatrix)
Returns the complex conjugate of a complex diagonal matrix.
 o conjugate(ComplexMatrix)
Returns the complex conjugate of a complex matrix.
 o conjugate(ComplexSquareMatrix)
Returns the complex conjugate of a complex square matrix.
 o conjugate(ComplexTridiagonalMatrix)
Returns the complex conjugate of a complex tridiagonal matrix.
 o eigenSolveSymmetric(DoubleSquareMatrix, DoubleVector[])
This method finds the eigenvalues and eigenvectors of a symmetric square matrix.
 o eigenSolveSymmetric(DoubleTridiagonalMatrix, DoubleVector[])
This method finds the eigenvalues and eigenvectors of a symmetric tridiagonal matrix by the QL method.
 o eigenvalueSolveSymmetric(DoubleSquareMatrix)
This method finds the eigenvalues of a symmetric square matrix.
 o eigenvalueSolveSymmetric(DoubleTridiagonalMatrix)
This method finds the eigenvalues of a symmetric tridiagonal matrix by the QL method.
 o hermitianAdjoint(ComplexMatrix)
Returns the hermitian adjoint of a complex matrix.
 o hermitianAdjoint(ComplexSquareMatrix)
Returns the hermitian adjoint of a complex square matrix.
 o hermitianAdjoint(ComplexTridiagonalMatrix)
Returns the hermitian adjoint of a complex tridiagonal matrix.
 o inverse(ComplexDiagonalMatrix)
Returns the inverse of a matrix.
 o inverse(ComplexSquareMatrix)
Returns the inverse of a matrix.
 o inverse(DoubleDiagonalMatrix)
Returns the inverse of a matrix.
 o inverse(DoubleSquareMatrix)
Returns the inverse of a matrix.
 o inverse(IntegerDiagonalMatrix)
Returns the inverse of a matrix.
 o inverse(IntegerSquareMatrix)
Returns the inverse of a matrix.
 o LUDecomposition(ComplexSquareMatrix)
Returns the LU decomposition of a matrix.
 o LUDecomposition(DoubleSquareMatrix)
Returns the LU decomposition of a matrix.
 o LUDecomposition(IntegerSquareMatrix)
Returns the LU decomposition of a matrix.
 o mapElements(ComplexDiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(ComplexMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(ComplexSquareMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(ComplexTridiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(DoubleDiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(DoubleMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(DoubleSquareMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(DoubleTridiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(IntegerDiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(IntegerMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(IntegerSquareMatrix, Mapping)
Applies a function on all the matrix elements.
 o mapElements(IntegerTridiagonalMatrix, Mapping)
Applies a function on all the matrix elements.
 o multiply(ComplexDiagonalMatrix, ComplexDiagonalMatrix)
Returns the multiplication of two diagonal matrices.
 o multiply(ComplexDiagonalMatrix, ComplexVector)
Returns the multiplication of a vector by a matrix.
 o multiply(ComplexMatrix, ComplexMatrix)
Returns the multiplication of two matrices.
 o multiply(ComplexMatrix, ComplexVector)
Returns the multiplication of a vector by a matrix.
 o multiply(ComplexSquareMatrix, ComplexSquareMatrix)
Returns the multiplication of two square matrices.
 o multiply(DoubleDiagonalMatrix, DoubleDiagonalMatrix)
Returns the multiplication of two diagonal matrices.
 o multiply(DoubleDiagonalMatrix, DoubleVector)
Returns the multiplication of a vector by a matrix.
 o multiply(DoubleMatrix, DoubleMatrix)
Returns the multiplication of two matrices.
 o multiply(DoubleMatrix, DoubleVector)
Returns the multiplication of a vector by a matrix.
 o multiply(DoubleSquareMatrix, DoubleSquareMatrix)
Returns the multiplication of two square matrices.
 o multiply(IntegerDiagonalMatrix, IntegerDiagonalMatrix)
Returns the multiplication of two diagonal matrices.
 o multiply(IntegerDiagonalMatrix, IntegerVector)
Returns the multiplication of a vector by a matrix.
 o multiply(IntegerMatrix, IntegerMatrix)
Returns the multiplication of two matrices.
 o multiply(IntegerMatrix, IntegerVector)
Returns the multiplication of a vector by a matrix.
 o multiply(IntegerSquareMatrix, IntegerSquareMatrix)
Returns the multiplication of two square matrices.
 o scalarMultiply(Complex, ComplexDiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(Complex, ComplexMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(Complex, ComplexSquareMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(Complex, ComplexTridiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(double, DoubleDiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(double, DoubleMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(double, DoubleSquareMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(double, DoubleTridiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(int, IntegerDiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(int, IntegerMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(int, IntegerSquareMatrix)
Returns the multiplication of a matrix by a scalar.
 o scalarMultiply(int, IntegerTridiagonalMatrix)
Returns the multiplication of a matrix by a scalar.
 o subtract(ComplexDiagonalMatrix, ComplexDiagonalMatrix)
Returns the subtraction of two diagonal matrices.
 o subtract(ComplexMatrix, ComplexMatrix)
Returns the subtraction of two matrices.
 o subtract(ComplexSquareMatrix, ComplexSquareMatrix)
Returns the subtraction of two square matrices.
 o subtract(ComplexTridiagonalMatrix, ComplexTridiagonalMatrix)
Returns the subtraction of two tridiagonal matrices.
 o subtract(DoubleDiagonalMatrix, DoubleDiagonalMatrix)
Returns the subtraction of two diagonal matrices.
 o subtract(DoubleMatrix, DoubleMatrix)
Returns the subtraction of two matrices.
 o subtract(DoubleSquareMatrix, DoubleSquareMatrix)
Returns the subtraction of two square matrices.
 o subtract(DoubleTridiagonalMatrix, DoubleTridiagonalMatrix)
Returns the subtraction of two tridiagonal matrices.
 o subtract(IntegerDiagonalMatrix, IntegerDiagonalMatrix)
Returns the subtraction of two diagonal matrices.
 o subtract(IntegerMatrix, IntegerMatrix)
Returns the subtraction of two matrices.
 o subtract(IntegerSquareMatrix, IntegerSquareMatrix)
Returns the subtraction of two square matrices.
 o subtract(IntegerTridiagonalMatrix, IntegerTridiagonalMatrix)
Returns the subtraction of two tridiagonal matrices.
 o transpose(ComplexMatrix)
Returns the transpose of a matrix.
 o transpose(ComplexSquareMatrix)
Returns the transpose of a square matrix.
 o transpose(ComplexTridiagonalMatrix)
Returns the transpose of a tridiagonal matrix.
 o transpose(DoubleMatrix)
Returns the transpose of a matrix.
 o transpose(DoubleSquareMatrix)
Returns the transpose of a square matrix.
 o transpose(DoubleTridiagonalMatrix)
Returns the transpose of a tridiagonal matrix.
 o transpose(IntegerMatrix)
Returns the transpose of a matrix.
 o transpose(IntegerSquareMatrix)
Returns the transpose of a square matrix.
 o transpose(IntegerTridiagonalMatrix)
Returns the transpose of a tridiagonal matrix.

Methods

 o hermitianAdjoint
  public static ComplexMatrix hermitianAdjoint(ComplexMatrix m)
Returns the hermitian adjoint of a complex matrix.
Parameters:
m - a complex matrix
 o hermitianAdjoint
  public static ComplexSquareMatrix hermitianAdjoint(ComplexSquareMatrix m)
Returns the hermitian adjoint of a complex square matrix.
Parameters:
m - a complex square matrix
 o hermitianAdjoint
  public static ComplexTridiagonalMatrix hermitianAdjoint(ComplexTridiagonalMatrix m)
Returns the hermitian adjoint of a complex tridiagonal matrix.
Parameters:
m - a complex tridiagonal matrix
 o conjugate
  public static ComplexMatrix conjugate(ComplexMatrix m)
Returns the complex conjugate of a complex matrix.
Parameters:
m - a complex matrix
 o conjugate
  public static ComplexSquareMatrix conjugate(ComplexSquareMatrix m)
Returns the complex conjugate of a complex square matrix.
Parameters:
m - a complex square matrix
 o conjugate
  public static ComplexTridiagonalMatrix conjugate(ComplexTridiagonalMatrix m)
Returns the complex conjugate of a complex tridiagonal matrix.
Parameters:
m - a complex tridiagonal matrix
 o conjugate
  public static ComplexDiagonalMatrix conjugate(ComplexDiagonalMatrix m)
Returns the complex conjugate of a complex diagonal matrix.
Parameters:
m - a complex diagonal matrix
 o add
  public static IntegerMatrix add(IntegerMatrix a,
                                  IntegerMatrix b)
Returns the addition of two matrices.
Parameters:
a - an integer matrix
b - an integer matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static IntegerSquareMatrix add(IntegerSquareMatrix a,
                                        IntegerSquareMatrix b)
Returns the addition of two square matrices.
Parameters:
a - an integer square matrix
b - an integer square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static IntegerTridiagonalMatrix add(IntegerTridiagonalMatrix a,
                                             IntegerTridiagonalMatrix b)
Returns the addition of two tridiagonal matrices.
Parameters:
a - an integer tridiagonal matrix
b - an integer tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static IntegerDiagonalMatrix add(IntegerDiagonalMatrix a,
                                          IntegerDiagonalMatrix b)
Returns the addition of two diagonal matrices.
Parameters:
a - an integer diagonal matrix
b - an integer diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static DoubleMatrix add(DoubleMatrix a,
                                 DoubleMatrix b)
Returns the addition of two matrices.
Parameters:
a - a double matrix
b - a double matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static DoubleSquareMatrix add(DoubleSquareMatrix a,
                                       DoubleSquareMatrix b)
Returns the addition of two square matrices.
Parameters:
a - a double square matrix
b - a double square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static DoubleTridiagonalMatrix add(DoubleTridiagonalMatrix a,
                                            DoubleTridiagonalMatrix b)
Returns the addition of two tridiagonal matrices.
Parameters:
a - a double tridiagonal matrix
b - a double tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static DoubleDiagonalMatrix add(DoubleDiagonalMatrix a,
                                         DoubleDiagonalMatrix b)
Returns the addition of two diagonal matrices.
Parameters:
a - a double diagonal matrix
b - a double diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static ComplexMatrix add(ComplexMatrix a,
                                  ComplexMatrix b)
Returns the addition of two matrices.
Parameters:
a - a complex matrix
b - a complex matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static ComplexSquareMatrix add(ComplexSquareMatrix a,
                                        ComplexSquareMatrix b)
Returns the addition of two square matrices.
Parameters:
a - a complex square matrix
b - a complex square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static ComplexTridiagonalMatrix add(ComplexTridiagonalMatrix a,
                                             ComplexTridiagonalMatrix b)
Returns the addition of two tridiagonal matrices.
Parameters:
a - a complex tridiagonal matrix
b - a complex tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o add
  public static ComplexDiagonalMatrix add(ComplexDiagonalMatrix a,
                                          ComplexDiagonalMatrix b)
Returns the addition of two diagonal matrices.
Parameters:
a - a complex diagonal matrix
b - a complex diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static IntegerMatrix subtract(IntegerMatrix a,
                                       IntegerMatrix b)
Returns the subtraction of two matrices.
Parameters:
a - an integer matrix
b - an integer matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static IntegerSquareMatrix subtract(IntegerSquareMatrix a,
                                             IntegerSquareMatrix b)
Returns the subtraction of two square matrices.
Parameters:
a - an integer square matrix
b - an integer square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static IntegerTridiagonalMatrix subtract(IntegerTridiagonalMatrix a,
                                                  IntegerTridiagonalMatrix b)
Returns the subtraction of two tridiagonal matrices.
Parameters:
a - an integer tridiagonal matrix
b - an integer tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static IntegerDiagonalMatrix subtract(IntegerDiagonalMatrix a,
                                               IntegerDiagonalMatrix b)
Returns the subtraction of two diagonal matrices.
Parameters:
a - an integer diagonal matrix
b - an integer diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static DoubleMatrix subtract(DoubleMatrix a,
                                      DoubleMatrix b)
Returns the subtraction of two matrices.
Parameters:
a - a double matrix
b - a double matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static DoubleSquareMatrix subtract(DoubleSquareMatrix a,
                                            DoubleSquareMatrix b)
Returns the subtraction of two square matrices.
Parameters:
a - a double square matrix
b - a double square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static DoubleTridiagonalMatrix subtract(DoubleTridiagonalMatrix a,
                                                 DoubleTridiagonalMatrix b)
Returns the subtraction of two tridiagonal matrices.
Parameters:
a - a double tridiagonal matrix
b - a double tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static DoubleDiagonalMatrix subtract(DoubleDiagonalMatrix a,
                                              DoubleDiagonalMatrix b)
Returns the subtraction of two diagonal matrices.
Parameters:
a - a double diagonal matrix
b - a double diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static ComplexMatrix subtract(ComplexMatrix a,
                                       ComplexMatrix b)
Returns the subtraction of two matrices.
Parameters:
a - a complex matrix
b - a complex matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static ComplexSquareMatrix subtract(ComplexSquareMatrix a,
                                             ComplexSquareMatrix b)
Returns the subtraction of two square matrices.
Parameters:
a - a complex square matrix
b - a complex square matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static ComplexTridiagonalMatrix subtract(ComplexTridiagonalMatrix a,
                                                  ComplexTridiagonalMatrix b)
Returns the subtraction of two tridiagonal matrices.
Parameters:
a - a complex tridiagonal matrix
b - a complex tridiagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o subtract
  public static ComplexDiagonalMatrix subtract(ComplexDiagonalMatrix a,
                                               ComplexDiagonalMatrix b)
Returns the subtraction of two diagonal matrices.
Parameters:
a - a complex diagonal matrix
b - a complex diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o multiply
  public static IntegerVector multiply(IntegerMatrix m,
                                       IntegerVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - an integer matrix
a - an integer vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o multiply
  public static IntegerVector multiply(IntegerDiagonalMatrix m,
                                       IntegerVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - an integer diagonal matrix
a - an integer vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o multiply
  public static DoubleVector multiply(DoubleMatrix m,
                                      DoubleVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - a double matrix
a - a double vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o multiply
  public static DoubleVector multiply(DoubleDiagonalMatrix m,
                                      DoubleVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - a double diagonal matrix
a - a double vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o multiply
  public static ComplexVector multiply(ComplexMatrix m,
                                       ComplexVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - a complex matrix
a - a complex vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o multiply
  public static ComplexVector multiply(ComplexDiagonalMatrix m,
                                       ComplexVector a)
Returns the multiplication of a vector by a matrix.
Parameters:
m - a complex diagonal matrix
a - a complex vector
Throws: DimensionException
If the matrix and vector are incompatible.
 o scalarMultiply
  public static IntegerMatrix scalarMultiply(int x,
                                             IntegerMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - an integer
m - an integer matrix
 o scalarMultiply
  public static IntegerSquareMatrix scalarMultiply(int x,
                                                   IntegerSquareMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - an integer
m - an integer square matrix
 o scalarMultiply
  public static IntegerTridiagonalMatrix scalarMultiply(int x,
                                                        IntegerTridiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - an integer
m - an integer tridiagonal matrix
 o scalarMultiply
  public static IntegerDiagonalMatrix scalarMultiply(int x,
                                                     IntegerDiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - an integer
m - an integer diagonal matrix
 o scalarMultiply
  public static DoubleMatrix scalarMultiply(double x,
                                            DoubleMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - a double
m - a double matrix
 o scalarMultiply
  public static DoubleSquareMatrix scalarMultiply(double x,
                                                  DoubleSquareMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - a double
m - a double square matrix
 o scalarMultiply
  public static DoubleTridiagonalMatrix scalarMultiply(double x,
                                                       DoubleTridiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - a double
m - a double tridiagonal matrix
 o scalarMultiply
  public static DoubleDiagonalMatrix scalarMultiply(double x,
                                                    DoubleDiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
x - a double
m - a double diagonal matrix
 o scalarMultiply
  public static ComplexMatrix scalarMultiply(Complex z,
                                             ComplexMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
z - a complex number
m - a complex matrix
 o scalarMultiply
  public static ComplexSquareMatrix scalarMultiply(Complex z,
                                                   ComplexSquareMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
z - a complex number
m - a complex square matrix
 o scalarMultiply
  public static ComplexTridiagonalMatrix scalarMultiply(Complex z,
                                                        ComplexTridiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
z - a complex number
m - a complex tridiagonal matrix
 o scalarMultiply
  public static ComplexDiagonalMatrix scalarMultiply(Complex z,
                                                     ComplexDiagonalMatrix m)
Returns the multiplication of a matrix by a scalar.
Parameters:
z - a complex number
m - a complex diagonal matrix
 o multiply
  public static IntegerMatrix multiply(IntegerMatrix a,
                                       IntegerMatrix b)
Returns the multiplication of two matrices.
Parameters:
a - an integer matrix
b - an integer matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static IntegerSquareMatrix multiply(IntegerSquareMatrix a,
                                             IntegerSquareMatrix b)
Returns the multiplication of two square matrices.
Parameters:
a - an integer square matrix
b - an integer square matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static IntegerDiagonalMatrix multiply(IntegerDiagonalMatrix a,
                                               IntegerDiagonalMatrix b)
Returns the multiplication of two diagonal matrices.
Parameters:
a - an integer diagonal matrix
b - an integer diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o multiply
  public static DoubleMatrix multiply(DoubleMatrix a,
                                      DoubleMatrix b)
Returns the multiplication of two matrices.
Parameters:
a - a double matrix
b - a double matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static DoubleSquareMatrix multiply(DoubleSquareMatrix a,
                                            DoubleSquareMatrix b)
Returns the multiplication of two square matrices.
Parameters:
a - a double square matrix
b - a double square matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static DoubleDiagonalMatrix multiply(DoubleDiagonalMatrix a,
                                              DoubleDiagonalMatrix b)
Returns the multiplication of two diagonal matrices.
Parameters:
a - a double diagonal matrix
b - a double diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o multiply
  public static ComplexMatrix multiply(ComplexMatrix a,
                                       ComplexMatrix b)
Returns the multiplication of two matrices.
Parameters:
a - a complex matrix
b - a complex matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static ComplexSquareMatrix multiply(ComplexSquareMatrix a,
                                             ComplexSquareMatrix b)
Returns the multiplication of two square matrices.
Parameters:
a - a complex square matrix
b - a complex square matrix
Throws: MatrixDimensionException
If the matrices are incompatible.
 o multiply
  public static ComplexDiagonalMatrix multiply(ComplexDiagonalMatrix a,
                                               ComplexDiagonalMatrix b)
Returns the multiplication of two diagonal matrices.
Parameters:
a - a complex diagonal matrix
b - a complex diagonal matrix
Throws: MatrixDimensionException
If the matrices are different sizes.
 o transpose
  public static IntegerMatrix transpose(IntegerMatrix m)
Returns the transpose of a matrix.
Parameters:
m - an integer matrix
 o transpose
  public static IntegerSquareMatrix transpose(IntegerSquareMatrix m)
Returns the transpose of a square matrix.
Parameters:
m - an integer square matrix
 o transpose
  public static IntegerTridiagonalMatrix transpose(IntegerTridiagonalMatrix m)
Returns the transpose of a tridiagonal matrix.
Parameters:
m - an integer tridiagonal matrix
 o transpose
  public static DoubleMatrix transpose(DoubleMatrix m)
Returns the transpose of a matrix.
Parameters:
m - a double matrix
 o transpose
  public static DoubleSquareMatrix transpose(DoubleSquareMatrix m)
Returns the transpose of a square matrix.
Parameters:
m - a double square matrix
 o transpose
  public static DoubleTridiagonalMatrix transpose(DoubleTridiagonalMatrix m)
Returns the transpose of a tridiagonal matrix.
Parameters:
m - a double tridiagonal matrix
 o transpose
  public static ComplexMatrix transpose(ComplexMatrix m)
Returns the transpose of a matrix.
Parameters:
m - a complex matrix
 o transpose
  public static ComplexSquareMatrix transpose(ComplexSquareMatrix m)
Returns the transpose of a square matrix.
Parameters:
m - a complex square matrix
 o transpose
  public static ComplexTridiagonalMatrix transpose(ComplexTridiagonalMatrix m)
Returns the transpose of a tridiagonal matrix.
Parameters:
m - a complex tridiagonal matrix
 o inverse
  public static DoubleSquareMatrix inverse(IntegerSquareMatrix m)
Returns the inverse of a matrix.
Parameters:
m - an integer square matrix
 o inverse
  public static DoubleDiagonalMatrix inverse(IntegerDiagonalMatrix m)
Returns the inverse of a matrix.
Parameters:
m - an integer diagonal matrix
 o inverse
  public static DoubleSquareMatrix inverse(DoubleSquareMatrix m)
Returns the inverse of a matrix.
Parameters:
m - a double square matrix
 o inverse
  public static DoubleDiagonalMatrix inverse(DoubleDiagonalMatrix m)
Returns the inverse of a matrix.
Parameters:
m - a double diagonal matrix
 o inverse
  public static ComplexSquareMatrix inverse(ComplexSquareMatrix m)
Returns the inverse of a matrix.
Parameters:
m - a complex square matrix
 o inverse
  public static ComplexDiagonalMatrix inverse(ComplexDiagonalMatrix m)
Returns the inverse of a matrix.
Parameters:
m - a complex diagonal matrix
 o mapElements
  public static DoubleMatrix mapElements(IntegerMatrix m,
                                         Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - an integer matrix
f - a user-defined function
Returns:
a double matrix
 o mapElements
  public static DoubleSquareMatrix mapElements(IntegerSquareMatrix m,
                                               Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - an integer square matrix
f - a user-defined function
Returns:
a double square matrix
 o mapElements
  public static DoubleTridiagonalMatrix mapElements(IntegerTridiagonalMatrix m,
                                                    Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - an integer tridiagonal matrix
f - a user-defined function
Returns:
a double tridiagonal matrix
 o mapElements
  public static DoubleDiagonalMatrix mapElements(IntegerDiagonalMatrix m,
                                                 Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - an integer diagonal matrix
f - a user-defined function
Returns:
a double diagonal matrix
 o mapElements
  public static DoubleMatrix mapElements(DoubleMatrix m,
                                         Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a double matrix
f - a user-defined function
Returns:
a double matrix
 o mapElements
  public static DoubleSquareMatrix mapElements(DoubleSquareMatrix m,
                                               Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a double square matrix
f - a user-defined function
Returns:
a double square matrix
 o mapElements
  public static DoubleTridiagonalMatrix mapElements(DoubleTridiagonalMatrix m,
                                                    Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a double tridiagonal matrix
f - a user-defined function
Returns:
a double tridiagonal matrix
 o mapElements
  public static DoubleDiagonalMatrix mapElements(DoubleDiagonalMatrix m,
                                                 Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a double diagonal matrix
f - a user-defined function
Returns:
a double diagonal matrix
 o mapElements
  public static ComplexMatrix mapElements(ComplexMatrix m,
                                          Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a complex matrix
f - a user-defined function
Returns:
a complex matrix
 o mapElements
  public static ComplexSquareMatrix mapElements(ComplexSquareMatrix m,
                                                Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a complex square matrix
f - a user-defined function
Returns:
a complex square matrix
 o mapElements
  public static ComplexTridiagonalMatrix mapElements(ComplexTridiagonalMatrix m,
                                                     Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a complex tridiagonal matrix
f - a user-defined function
Returns:
a complex tridiagonal matrix
 o mapElements
  public static ComplexDiagonalMatrix mapElements(ComplexDiagonalMatrix m,
                                                  Mapping f)
Applies a function on all the matrix elements.
Parameters:
m - a complex diagonal matrix
f - a user-defined function
Returns:
a complex diagonal matrix
 o LUDecomposition
  public static DoubleSquareMatrix[] LUDecomposition(DoubleSquareMatrix m)
Returns the LU decomposition of a matrix.
Parameters:
m - a double square matrix
Returns:
an array with [0] containing the L-matrix and [1] containing the U-matrix.
 o LUDecomposition
  public static ComplexSquareMatrix[] LUDecomposition(ComplexSquareMatrix m)
Returns the LU decomposition of a matrix.
Parameters:
m - a complex square matrix
Returns:
an array with [0] containing the L-matrix and [1] containing the U-matrix.
 o LUDecomposition
  public static DoubleSquareMatrix[] LUDecomposition(IntegerSquareMatrix m)
Returns the LU decomposition of a matrix.
Parameters:
m - an integer square matrix
Returns:
an array with [0] containing the L-matrix and [1] containing the U-matrix.
 o eigenvalueSolveSymmetric
  public static double[] eigenvalueSolveSymmetric(DoubleTridiagonalMatrix matrix) throws MaximumIterationsExceededException
This method finds the eigenvalues of a symmetric tridiagonal matrix by the QL method. It is based on the NETLIB algol/fortran procedure tql1 by Bowdler, Martin, Reinsch and Wilkinson.
Parameters:
matrix - a double symmetric tridiagonal matrix
Returns:
an array containing the eigenvalues
Throws: MaximumIterationsExceededException
If it takes more than 50 iterations to determine an eigenvalue.
 o eigenSolveSymmetric
  public static double[] eigenSolveSymmetric(DoubleTridiagonalMatrix matrix,
                                             DoubleVector eigenvector[]) throws MaximumIterationsExceededException
This method finds the eigenvalues and eigenvectors of a symmetric tridiagonal matrix by the QL method. It is based on the NETLIB algol/fortran procedure tql2 by Bowdler, Martin, Reinsch and Wilkinson.
Parameters:
matrix - a double symmetric tridiagonal matrix
eigenvector - an empty array of double vectors to hold the eigenvectors
Returns:
an array containing the eigenvalues
Throws: MaximumIterationsExceededException
If it takes more than 50 iterations to determine an eigenvalue.
 o eigenvalueSolveSymmetric
  public static double[] eigenvalueSolveSymmetric(DoubleSquareMatrix matrix) throws MaximumIterationsExceededException
This method finds the eigenvalues of a symmetric square matrix. The matrix is reduced to tridiagonal form and then the QL method is applied. It is based on the NETLIB algol/fortran procedure tred1/tql1 by Bowdler, Martin, Reinsch and Wilkinson.
Parameters:
matrix - a double symmetric square matrix
Returns:
an array containing the eigenvalues
Throws: MaximumIterationsExceededException
If it takes more than 50 iterations to determine an eigenvalue.
 o eigenSolveSymmetric
  public static double[] eigenSolveSymmetric(DoubleSquareMatrix matrix,
                                             DoubleVector eigenvector[]) throws MaximumIterationsExceededException
This method finds the eigenvalues and eigenvectors of a symmetric square matrix. The matrix is reduced to tridiagonal form and then the QL method is applied. It is based on the NETLIB algol/fortran procedure tred2/tql2 by Bowdler, Martin, Reinsch and Wilkinson.
Parameters:
matrix - a double symmetric square matrix
eigenvector - an empty array of double vectors to hold the eigenvectors
Returns:
an array containing the eigenvalues
Throws: MaximumIterationsExceededException
If it takes more than 50 iterations to determine an eigenvalue.

All Packages  Class Hierarchy  This Package  Previous  Next  Index