Package oracle.spatial.network.lod
Class Matrix<E>
- java.lang.Object
-
- oracle.spatial.network.lod.Matrix<E>
-
public class Matrix<E> extends java.lang.Object
A simple double array matrix implementation.- Since:
- 11gR2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
get(int row, int col)
Returns the element at the specified row and column.E[]
getColumn(int col)
int
getColumnDimension()
Returns the column dimension.E[]
getRow(int row)
int
getRowDimension()
Returns the row dimension.void
set(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)
-
-