Package oracle.spatial.network.lod
Class Matrix<E>
- java.lang.Object
-
- oracle.spatial.network.lod.Matrix<E>
-
public class Matrix<E> extends java.lang.ObjectA simple double array matrix implementation.- Since:
- 11gR2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eget(int row, int col)Returns the element at the specified row and column.E[]getColumn(int col)intgetColumnDimension()Returns the column dimension.E[]getRow(int row)intgetRowDimension()Returns the row dimension.voidset(int row, int col, E elem)Sets the element at the specified row and column.
-
-
-
Constructor Detail
-
Matrix
public Matrix(int rows, int cols, java.lang.Class<E> clazz)Constructs an empty matrix with the specified dimensions.- Parameters:
rows- row dimensioncols- column dimension
-
-
Method Detail
-
getColumnDimension
public int getColumnDimension()
Returns the column dimension.- Returns:
-
getRowDimension
public int getRowDimension()
Returns the row dimension.- Returns:
-
get
public E get(int row, int col)
Returns the element at the specified row and column.- Parameters:
row- row of the elementcol- column of the element- Returns:
-
set
public void set(int row, int col, E elem)Sets the element at the specified row and column.- Parameters:
row- row of the elementcol- column of the elementelem- element
-
getRow
public E[] getRow(int row)
-
getColumn
public E[] getColumn(int col)
-
-