| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--org.jutil.math.matrix.NMatrix
        |
        +--org.jutil.math.matrix.Matrix
              |
              +--org.jutil.math.matrix.Column
A class of matrices containing only 1 column.
| Class Specifications | 
| public invariant getNbColumns() == 1; | 
| Specifications inherited from class Matrix | 
| public invariant getNbDimensions() == 2; | 
| Specifications inherited from class NMatrix | 
| public invariant getDimensions().length == getNbDimensions(); public invariant ( \forall int i; i >= 0&&i < getNbDimensions(); getDimensions()[i] > 0); | 
| Field Summary | |
| static java.lang.String | CVS_REVISION | 
| Constructor Summary | |
| Column(double[] elements)Create a new Column with the given elements. | |
| Column(int size)Create a new Column with the given size. | |
| Method Summary | |
|  java.lang.Object | clone()See superclass | 
|  double | elementAt(int index)Return the element at the given index | 
|  double | norm(int p)Return the p-norm of this vector. | 
|  void | normalize()Normalize this vector | 
|  void | setElementAt(int index,
             double value)Set the element at the given index | 
|  void | setSubColumn(int lower,
             Column column)Replace a subcolumn of this Column, starting at the given position with the given column. | 
|  int | size()Return the size of this Column. | 
|  Column | subColumn(int lower,
          int upper)Return a sub-column of this column starting from | 
|  boolean | validIndex(int index)Check whether or not the given index is a valid index for this Column. | 
| Methods inherited from class org.jutil.math.matrix.Matrix | 
| add, divide, elementAt, elementAt, equals, getColumn, getDimensions, getNbColumns, getNbDimensions, getNbRows, getRow, isDiagonal, isLowerTriangular, isPermutationMatrix, isSquare, isSymmetric, isUpperTriangular, leftGivens, minus, multiply, plus, returnTranspose, rightGivens, sameDimensions, setColumn, setElementAt, setElementAt, setRow, setSubMatrix, subMatrix, subtract, times, times, toString, transpose, unity, validIndex | 
| Methods inherited from class org.jutil.math.matrix.NMatrix | 
| validIndex | 
| Methods inherited from class java.lang.Object | 
| finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String CVS_REVISION
| Constructor Detail | 
public Column(int size)
size - The size of the new column.public Column(double[] elements)
elements - An array containing the elements for this Column| Method Detail | 
public double elementAt(int index)
index - The index of the element to be retrieved.
public void setElementAt(int index,
                         double value)
index - The index of the element to be setvalue - The new value for the indexpublic int size()
public Column subColumn(int lower,
                        int upper)
lower - The lower indexupper - The upper index
public void setSubColumn(int lower,
                         Column column)
lower - The index at which the column must be pasted.column - The column to paste into this column.public double norm(int p)
p - The p in p-norm.public java.lang.Object clone()
public void normalize()
public boolean validIndex(int index)
index - The index to be verified| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||