jigl.math
Class IdentityMatrix
java.lang.Object
|
+--jigl.math.Matrix
|
+--jigl.math.IdentityMatrix
- All Implemented Interfaces:
- Cloneable
- public class IdentityMatrix
- extends Matrix
This class allows a programmer to create a (square) identity matrix of arbitrary order. See
Identity Matrix for more
information about it.
| Fields inherited from class jigl.math.Matrix |
mem |
|
Constructor Summary |
IdentityMatrix(int n)
This constructor creates an identity matrix of order n. |
|
Method Summary |
static void |
main(String[] args)
Tests IdentityMatrix class: creating an IdentityMatrix object of order 4, then
multiplying it by 3 and getting a new matrix, finally displaying the two matrices. |
| Methods inherited from class jigl.math.Matrix |
add, assign, assign, clone, eigsrt, equals, gaussj, get, getColumn, getRow, jacobi, mult, mult, mult, nColumns, nRows, pythag, set, sign, sub, svbksb, svdcmp, t, toString |
IdentityMatrix
public IdentityMatrix(int n)
- This constructor creates an identity matrix of order
n.
main
public static void main(String[] args)
- Tests IdentityMatrix class: creating an IdentityMatrix object of order 4, then
multiplying it by 3 and getting a new matrix, finally displaying the two matrices.
Submit a bug or feature
Revised in May 2002 by Weiming Liu