org.jquantlib.math.matrixutilities.internal
Interface Address
-
- All Known Subinterfaces:
- Address.ArrayAddress, Address.MatrixAddress
- All Known Implementing Classes:
- DirectAddress, DirectArrayColAddress, DirectArrayRowAddress, DirectMatrixAddress, MappedAddress, MappedMatrixAddress
public interface Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceAddress.ArrayAddressThis interface definesArrayaccessorsstatic classAddress.Flagsstatic interfaceAddress.MatrixAddressThis interface definesMatrixaccessorsstatic interfaceAddress.Offset
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringGAP_INDEX_FOUNDstatic java.lang.StringINVALID_BACKWARD_INDEXINGstatic java.lang.StringINVALID_COLUMN_INDEXstatic java.lang.StringINVALID_ROW_INDEX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intbase()intcol0()col0is the row offset of the leftmost column of a Matrix.intcols()java.util.Set<Address.Flags>flags()booleanisContiguous()Tells if the underlying memory storage can be accessed in a continuous way.booleanisFortran()This is a convenience method intended to returnAddress.Flags.FORTRANintlast()introw0()row0is the row offset of the upmost row of a Matrix.introws()
-
-
-
Field Detail
-
INVALID_BACKWARD_INDEXING
static final java.lang.String INVALID_BACKWARD_INDEXING
- See Also:
- Constant Field Values
-
INVALID_ROW_INDEX
static final java.lang.String INVALID_ROW_INDEX
- See Also:
- Constant Field Values
-
INVALID_COLUMN_INDEX
static final java.lang.String INVALID_COLUMN_INDEX
- See Also:
- Constant Field Values
-
GAP_INDEX_FOUND
static final java.lang.String GAP_INDEX_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
rows
int rows()
- Returns:
- the number of rows mapped
-
cols
int cols()
- Returns:
- the number of columns mapped
-
base
int base()
- Returns:
- the base address (inclusive)
-
last
int last()
- Returns:
- the last address (exclusive)
-
row0
int row0()
row0is the row offset of the upmost row of a Matrix.Example: Matrix B, being a sub-matrix of A, has
row0like shown below:Matrix A = new Matrix(5, 8); int row0 = 1; int row1 = 4; int col0 = 5; int col1 = 8; Matrix B = A.range(row0, row1, col0, col1);- Returns:
-
col0
int col0()
col0is the row offset of the leftmost column of a Matrix.Example: Matrix B, being a sub-matrix of A, has
col0like shown below:Matrix A = new Matrix(5, 8); int row0 = 1; int row1 = 4; int col0 = 5; int col1 = 8; Matrix B = A.range(row0, row1, col0, col1);- Returns:
-
isContiguous
boolean isContiguous()
Tells if the underlying memory storage can be accessed in a continuous way.When
contiguousistrue, certain operations are benefited by bulk operations.
-
isFortran
boolean isFortran()
This is a convenience method intended to returnAddress.Flags.FORTRAN- Returns:
- Flags#FORTRAN
-
flags
java.util.Set<Address.Flags> flags()
- Returns:
- a set of flags in effect on this
Addressobject.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG