Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Class Matrix<E>

java.lang.Object
  extended by oracle.spatial.network.lod.Matrix<E>


public class Matrix<E>
extends java.lang.Object

A simple double array matrix implementation.

Since:
Oracle Database 11g Release 2 (11.2)

Constructor Summary
Matrix(int rows, int cols)
          Constructs an empty matrix with the specified dimensions.

 

Method Summary
 E get(int row, int col)
          Returns the element at the specified row and column.
 int getColumnDimension()
          Returns the column dimension.
 int getRowDimension()
          Returns the row dimension.
 void set(int row, int col, E elem)
          Sets the element at the specified row and column.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Matrix

public Matrix(int rows,
              int cols)
Constructs an empty matrix with the specified dimensions.
Parameters:
rows - row dimension
cols - 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 element
col - 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 element
col - column of the element
elem - element

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.