org.jlab.groot.matrix
Class SparseIndex
- java.lang.Object
-
- org.jlab.groot.matrix.SparseIndex
-
public class SparseIndex extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description SparseIndex(int[] binsPerAxis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]getBinsPerAxis()int[]getBinsPerAxisCopy()int[]getBitsPerAxis()voidgetIndex(long key, int[] bin)longgetKey(int[] bin)longgetKeyFast(int[] bin)intgetOffset(int axis)intgetRank()booleanisCompatible(SparseIndex sindex)Checks two SparseIndex classes for compatability.java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public long getKey(int[] bin)
-
isCompatible
public boolean isCompatible(SparseIndex sindex)
Checks two SparseIndex classes for compatability. The rank as well as the number of bins in each dimension have to be equal for the SparseIndex to be compatible !- Parameters:
sindex- SparseIndex class- Returns:
- true is compatible, false otherwise
-
getKeyFast
public long getKeyFast(int[] bin)
-
getIndex
public void getIndex(long key, int[] bin)
-
getOffset
public int getOffset(int axis)
-
getRank
public int getRank()
-
getBinsPerAxis
public int[] getBinsPerAxis()
-
getBinsPerAxisCopy
public int[] getBinsPerAxisCopy()
-
getBitsPerAxis
public int[] getBitsPerAxis()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG