JIGL
v1.6

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.


Field Summary
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityMatrix

public IdentityMatrix(int n)
This constructor creates an identity matrix of order n.

Method Detail

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.


JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu