Class JSci.maths.IntegerTridiagonalMatrix
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.maths.IntegerTridiagonalMatrix
java.lang.Object
|
+----JSci.maths.Matrix
|
+----JSci.maths.IntegerMatrix
|
+----JSci.maths.IntegerSquareMatrix
|
+----JSci.maths.IntegerTridiagonalMatrix
- public class IntegerTridiagonalMatrix
- extends IntegerSquareMatrix
The IntegerTridiagonalMatrix class provides an object for encapsulating tridiagonal matrices containing integers.
-
IntegerTridiagonalMatrix()
- Constructs a matrix.
-
IntegerTridiagonalMatrix(int)
- Constructs an empty matrix.
-
IntegerTridiagonalMatrix(int[][])
- Constructs a matrix from an array.
-
clone()
- Creates a clone of this matrix.
-
columns()
- Returns the number of columns.
-
equals(Object)
- Compares two integer tridiagonal matrices for equality.
-
frobeniusNorm()
- Returns the Frobenius norm.
-
getElement(int, int)
- Returns an element of the matrix.
-
infNorm()
- Returns the l(infinity)-norm.
-
rows()
- Returns the number of rows.
-
setElement(int, int, int)
- Sets the value of an element of the matrix.
-
toComplexMatrix()
- Converts this matrix to a complex matrix.
-
toDoubleMatrix()
- Converts this matrix to a double matrix.
-
toString()
- Returns a string representing this matrix.
-
trace()
- Returns the trace.
IntegerTridiagonalMatrix
protected IntegerTridiagonalMatrix()
- Constructs a matrix.
IntegerTridiagonalMatrix
public IntegerTridiagonalMatrix(int size)
- Constructs an empty matrix.
- Parameters:
- size - the number of rows/columns
IntegerTridiagonalMatrix
public IntegerTridiagonalMatrix(int 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 integer tridiagonal matrices for equality.
- Parameters:
- m - a integer tridiagonal matrix
- Overrides:
- equals in class IntegerMatrix
clone
public Object clone()
- Creates a clone of this matrix.
- Returns:
- a copy of this matrix.
- Overrides:
- clone in class IntegerSquareMatrix
toString
public String toString()
- Returns a string representing this matrix.
- Overrides:
- toString in class IntegerMatrix
toDoubleMatrix
public DoubleMatrix toDoubleMatrix()
- Converts this matrix to a double matrix.
- Returns:
- a double tridiagonal matrix
- Overrides:
- toDoubleMatrix in class IntegerMatrix
toComplexMatrix
public ComplexMatrix toComplexMatrix()
- Converts this matrix to a complex matrix.
- Returns:
- a complex tridiagonal matrix
- Overrides:
- toComplexMatrix in class IntegerMatrix
getElement
public int 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 IntegerMatrix
setElement
public void setElement(int i,
int j,
int x)
- Sets the value of an element of the matrix.
- Parameters:
- i - row index of the element
- j - column index of the element
- x - a number
- Throws: MatrixDimensionException
- If attempting to access an invalid element.
- Overrides:
- setElement in class IntegerMatrix
trace
public int trace()
- Returns the trace.
- Overrides:
- trace in class IntegerSquareMatrix
infNorm
public int infNorm()
- Returns the l(infinity)-norm.
- Overrides:
- infNorm in class IntegerMatrix
frobeniusNorm
public double frobeniusNorm()
- Returns the Frobenius norm.
- Overrides:
- frobeniusNorm in class IntegerMatrix
rows
public int rows()
- Returns the number of rows.
- Overrides:
- rows in class IntegerMatrix
columns
public int columns()
- Returns the number of columns.
- Overrides:
- columns in class IntegerMatrix
All Packages Class Hierarchy This Package Previous Next Index