org.jquantlib.math.matrixutilities.internal
Class MappedAddress
- java.lang.Object
-
- org.jquantlib.math.matrixutilities.internal.MappedAddress
-
- All Implemented Interfaces:
- Address
- Direct Known Subclasses:
- MappedMatrixAddress
public abstract class MappedAddress extends java.lang.Object implements Address
This is the base class for all accessors on top of non-contiguous intervals
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jquantlib.math.matrixutilities.internal.Address
Address.ArrayAddress, Address.Flags, Address.MatrixAddress, Address.Offset
-
-
Field Summary
-
Fields inherited from interface org.jquantlib.math.matrixutilities.internal.Address
GAP_INDEX_FOUND, INVALID_BACKWARD_INDEXING, INVALID_COLUMN_INDEX, INVALID_ROW_INDEX
-
-
Constructor Summary
Constructors Constructor and Description MappedAddress(double[] data, int[] ridx, Address chain, int[] cidx, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)MappedAddress(double[] data, int[] ridx, Address chain, int col0, int col1, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)MappedAddress(double[] data, int row0, int row1, Address chain, int[] cidx, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intbase()MappedAddressclone()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()
-
-
-
Constructor Detail
-
MappedAddress
public MappedAddress(double[] data, int row0, int row1, Address chain, int[] cidx, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)
-
MappedAddress
public MappedAddress(double[] data, int[] ridx, Address chain, int col0, int col1, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)
-
MappedAddress
public MappedAddress(double[] data, int[] ridx, Address chain, int[] cidx, java.util.Set<Address.Flags> flags, boolean contiguous, int rows, int cols)
-
-
Method Detail
-
clone
public MappedAddress clone()
- Overrides:
clonein classjava.lang.Object
-
isContiguous
public boolean isContiguous()
Description copied from interface:AddressTells if the underlying memory storage can be accessed in a continuous way.When
contiguousistrue, certain operations are benefited by bulk operations.- Specified by:
isContiguousin interfaceAddress
-
isFortran
public boolean isFortran()
Description copied from interface:AddressThis is a convenience method intended to returnAddress.Flags.FORTRAN
-
flags
public java.util.Set<Address.Flags> flags()
-
cols
public int cols()
-
row0
public int row0()
Description copied from interface:Addressrow0is 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);
-
col0
public int col0()
Description copied from interface:Addresscol0is 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);
-
base
public int base()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG