public class DynamicMatrixOfVectors extends DynamicMatrix
dimension, size| Constructor and Description |
|---|
DynamicMatrixOfVectors()
Initialises the matrix (with size=1) and sets
the dimension, which cannot be changed afterwards
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(Vector vector)
Adds a new vector to the matrix, in the last available slot
|
void |
display() |
Vector |
get(int position)
Get the vector from the specified position.
|
Vector[] |
getMatrix() |
int |
length() |
static void |
main(java.lang.String[] args) |
int |
put(Vector vector,
int position)
Store the vector in the specified position of the array.
|
public DynamicMatrixOfVectors()
public static void main(java.lang.String[] args)
public Vector get(int position)
get in class DynamicMatrixposition - public int add(Vector vector)
vector - public int put(Vector vector, int position)
position - vector - public int length()
public Vector[] getMatrix()
getMatrix in class DynamicMatrixpublic void display()