org.ojalgo.access
Interface Basic2D

All Known Subinterfaces:
BasicMatrix
All Known Implementing Classes:
BigMatrix, ComplexMatrix, JamaMatrix, PrimitiveMatrix

public interface Basic2D


Method Summary
 double doubleValue(int aRow, int aCol)
          Extracts one element of this matrix as a double.
 int getColDim()
          The size of this structure in the column-direction/dimension
 int getRowDim()
          The size of this structure in the row-direction/dimension
 int size()
           
 Scalar<?> toScalar(int aRow, int aCol)
          Extracts one element of this matrix as a Scalar.
 

Method Detail

toScalar

Scalar<?> toScalar(int aRow,
                   int aCol)
Extracts one element of this matrix as a Scalar.

Parameters:
aRow - A row index.
aCol - A column index.
Returns:
One matrix element

doubleValue

double doubleValue(int aRow,
                   int aCol)
Extracts one element of this matrix as a double.

Parameters:
aRow - A row index.
aCol - A column index.
Returns:
One matrix element

getColDim

int getColDim()
The size of this structure in the column-direction/dimension

Returns:
The number of columns

getRowDim

int getRowDim()
The size of this structure in the row-direction/dimension

Returns:
The number of rows

size

int size()
Returns:
The total number of elements contained in this structure