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