Class JSci.maths.ComplexTridiagonalMatrix
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.maths.ComplexTridiagonalMatrix
java.lang.Object
|
+----JSci.maths.Matrix
|
+----JSci.maths.ComplexMatrix
|
+----JSci.maths.ComplexSquareMatrix
|
+----JSci.maths.ComplexTridiagonalMatrix
- public class ComplexTridiagonalMatrix
- extends ComplexSquareMatrix
The ComplexTridiagonalMatrix class provides an object for encapsulating tridiagonal matrices containing complex numbers.
-
ComplexTridiagonalMatrix()
- Constructs a matrix.
-
ComplexTridiagonalMatrix(Complex[][])
- Constructs a matrix from an array.
-
ComplexTridiagonalMatrix(int)
- Constructs an empty matrix.
-
clone()
- Creates a clone of this matrix.
-
columns()
- Returns the number of columns.
-
equals(Object)
- Compares two complex tridiagonal matrices for equality.
-
frobeniusNorm()
- Returns the Frobenius norm.
-
getElement(int, int)
- Returns an element of the matrix.
-
imag()
- Returns the imaginary part of this complex matrix.
-
infNorm()
- Returns the l(infinity)-norm.
-
real()
- Returns the real part of this complex matrix.
-
rows()
- Returns the number of rows.
-
setElement(int, int, Complex)
- Sets the value of an element of the matrix.
-
toString()
- Returns a string representing this matrix.
-
trace()
- Returns the trace.
ComplexTridiagonalMatrix
protected ComplexTridiagonalMatrix()
- Constructs a matrix.
ComplexTridiagonalMatrix
public ComplexTridiagonalMatrix(int size)
- Constructs an empty matrix.
- Parameters:
- size - the number of rows/columns
ComplexTridiagonalMatrix
public ComplexTridiagonalMatrix(Complex array[][])
- Constructs a matrix from an array.
- Parameters:
- array - an assigned value
- Throws: MatrixDimensionException
- If the array is not square.
equals
public boolean equals(Object m)
- Compares two complex tridiagonal matrices for equality.
- Parameters:
- m - a complex tridiagonal matrix
- Overrides:
- equals in class ComplexMatrix
clone
public Object clone()
- Creates a clone of this matrix.
- Returns:
- a copy of this matrix.
- Overrides:
- clone in class ComplexSquareMatrix
toString
public String toString()
- Returns a string representing this matrix.
- Overrides:
- toString in class ComplexMatrix
real
public DoubleMatrix real()
- Returns the real part of this complex matrix.
- Returns:
- a double tridiagonal matrix
- Overrides:
- real in class ComplexMatrix
imag
public DoubleMatrix imag()
- Returns the imaginary part of this complex matrix.
- Returns:
- a double tridiagonal matrix
- Overrides:
- imag in class ComplexMatrix
getElement
public Complex getElement(int i,
int j)
- Returns an element of the matrix.
- Parameters:
- i - row index of the element
- j - column index of the element
- Throws: MatrixDimensionException
- If attempting to access an invalid element.
- Overrides:
- getElement in class ComplexMatrix
setElement
public void setElement(int i,
int j,
Complex z)
- Sets the value of an element of the matrix.
- Parameters:
- i - row index of the element
- j - column index of the element
- z - a complex number
- Throws: MatrixDimensionException
- If attempting to access an invalid element.
- Overrides:
- setElement in class ComplexMatrix
trace
public Complex trace()
- Returns the trace.
- Overrides:
- trace in class ComplexSquareMatrix
infNorm
public double infNorm()
- Returns the l(infinity)-norm.
- Overrides:
- infNorm in class ComplexMatrix
frobeniusNorm
public double frobeniusNorm()
- Returns the Frobenius norm.
- Overrides:
- frobeniusNorm in class ComplexMatrix
rows
public int rows()
- Returns the number of rows.
- Overrides:
- rows in class ComplexMatrix
columns
public int columns()
- Returns the number of columns.
- Overrides:
- columns in class ComplexMatrix
All Packages Class Hierarchy This Package Previous Next Index