dataStructures
Class LinkedSparseMatrix

java.lang.Object
  |
  +--dataStructures.LinkedSparseMatrix

public class LinkedSparseMatrix
extends java.lang.Object


Constructor Summary
LinkedSparseMatrix(int theRows, int theColumns, int estimatedMaxSize, java.lang.Object theZero)
           
LinkedSparseMatrix(int theRows, int theColumns, java.lang.Object theZero)
          use a default estimated maximum size of 1
LinkedSparseMatrix(java.lang.Object theZero)
          defaults are rows = cols = estimatedMaxSize = 1
 
Method Summary
static LinkedSparseMatrix input(java.lang.Object theZero, MyInputStream stream)
          input a sparse matrix into this from the given input stream
static void main(java.lang.String[] args)
          test program
 java.lang.String toString()
          convert the matrix into a string so it can be output
 LinkedSparseMatrix transpose()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkedSparseMatrix

public LinkedSparseMatrix(int theRows,
                          int theColumns,
                          int estimatedMaxSize,
                          java.lang.Object theZero)

LinkedSparseMatrix

public LinkedSparseMatrix(int theRows,
                          int theColumns,
                          java.lang.Object theZero)
use a default estimated maximum size of 1

LinkedSparseMatrix

public LinkedSparseMatrix(java.lang.Object theZero)
defaults are rows = cols = estimatedMaxSize = 1
Method Detail

toString

public java.lang.String toString()
convert the matrix into a string so it can be output
Overrides:
toString in class java.lang.Object

input

public static LinkedSparseMatrix input(java.lang.Object theZero,
                                       MyInputStream stream)
input a sparse matrix into this from the given input stream

transpose

public LinkedSparseMatrix transpose()
Returns:
the transpose of this matrix values are not cloned

main

public static void main(java.lang.String[] args)
test program