drasys.or.matrix
Interface SizableMatrixI

All Known Implementing Classes:
ArrayMatrix, CompressedMatrix, ContiguousMatrix, SparseMatrix

public interface SizableMatrixI
extends MatrixI

Matrices that can be resized.


Method Summary
 void addColumn(VectorI vector)
          Adds a new column and any non-null elements in vector to the end of the matrix .
 void addRow(VectorI vector)
          Adds a new row and any non-null elements in vector to the end of the matrix .
 int capacityOfColumns()
          Returns the number of columns the matrix can hold without reallocating memory.
 int capacityOfRows()
          Returns the number of rows the matrix can hold without reallocating memory.
 void setCapacity(int capacityOfRows, int capacityOfColumns)
          Allocates memory so the matrix can hold this many rows and columns without reallocating memory.
 void setSize(int sizeOfRows, int sizeOfColumns)
          Sets the number of rows and columns in the matrix.
 
Methods inherited from interface drasys.or.matrix.MatrixI
columnElements, elementAt, elements, equals, getArray, isColumnMajor, isNull, isRowMajor, rowElements, setColumn, setDiagonal, setElementAt, setElements, setElements, setRow, sizeOfColumns, sizeOfElements, sizeOfRows, sum, sum, sum, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquares, sumOfSquares, sumOfSquares
 
Methods inherited from interface drasys.or.matrix.RealContainerI
equals, getEpsilon, setEpsilon
 

Method Detail

capacityOfRows

public int capacityOfRows()
Returns the number of rows the matrix can hold without reallocating memory.

capacityOfColumns

public int capacityOfColumns()
Returns the number of columns the matrix can hold without reallocating memory.

setSize

public void setSize(int sizeOfRows,
                    int sizeOfColumns)
Sets the number of rows and columns in the matrix.

setCapacity

public void setCapacity(int capacityOfRows,
                        int capacityOfColumns)
Allocates memory so the matrix can hold this many rows and columns without reallocating memory.

addRow

public void addRow(VectorI vector)
Adds a new row and any non-null elements in vector to the end of the matrix . If 'vector' is null then no new elements will be modified in the new row.

addColumn

public void addColumn(VectorI vector)
Adds a new column and any non-null elements in vector to the end of the matrix . If 'vector' is null then no new elements will be changed in the new column.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com