ru.tunegov.mathematic
Interface MatrixElementSet

All Superinterfaces:
java.lang.Cloneable, ElementSet, java.io.Serializable
All Known Implementing Classes:
Matrix

public interface MatrixElementSet
extends ElementSet

This is a abstract class that represents matrixes.

Since:
Mathematic 1.0

Method Summary
 int getCols()
          Returns number of columns in the matrix.
 ElementSet getItem(int row, int col)
          Returns value of the cell in matrix.
 ElementSet[][] getItems()
          Returns array of values of the matrix.
 int getRows()
          Returns number of rows in the matrix.
 ElementSet norm()
          Returns the k norm of given element.
 void setItem(int row, int col, ElementSet value)
          This method was created in VisualAge.
 void setItems(ElementSet[][] value)
          This method was created in VisualAge.
 MatrixElementSet transpose()
          Returns the transpose matrix.
 
Methods inherited from interface ru.tunegov.mathematic.ElementSet
abs, add, add, add, add, add, clone, cos, divide, divide, divide, divide, divide, divideInverse, divideInverse, divideInverse, divideInverse, exp, inverse, log, multiply, multiply, multiply, multiply, multiply, negate, pow, root, sin, sqrt, subtract, subtract, subtract, subtract, subtract, subtractInverse, subtractInverse, subtractInverse, subtractInverse, tan, toFormattedString
 

Method Detail

getCols

public int getCols()
Returns number of columns in the matrix.
Returns:
The number of columns in the matrix

getItem

public ElementSet getItem(int row,
                          int col)
Returns value of the cell in matrix.
Parameters:
row - The row in matrix
col - The column in matrix
Returns:
The value of the cell in matrix

getItems

public ElementSet[][] getItems()
Returns array of values of the matrix.
Returns:
The array of values of the matrix

getRows

public int getRows()
Returns number of rows in the matrix.
Returns:
The number of rows in the matrix

norm

public ElementSet norm()
Returns the k norm of given element.
Returns:
The k norm of given element

setItem

public void setItem(int row,
                    int col,
                    ElementSet value)
This method was created in VisualAge.
Returns:
UndefinedObject[][]

setItems

public void setItems(ElementSet[][] value)
This method was created in VisualAge.
Returns:
UndefinedObject[][]

transpose

public MatrixElementSet transpose()
Returns the transpose matrix.
Returns:
The transpose matrix