Class FederatedRange
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.federated.FederatedRange
-
- All Implemented Interfaces:
Comparable<FederatedRange>
public class FederatedRange extends Object implements Comparable<FederatedRange>
-
-
Constructor Summary
Constructors Constructor Description FederatedRange(long[] beginDims, long[] endDims)Create a range with the indexes of each dimension between their respectivebeginDimsandendDimsvalues.FederatedRange(FederatedRange other)Does a deep copy of anotherFederatedRangeobject.FederatedRange(FederatedRange other, long clen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexRangeasIndexRange()intcompareTo(FederatedRange o)booleanequals(Object o)long[]getBeginDims()int[]getBeginDimsInt()long[]getEndDims()int[]getEndDimsInt()longgetSize()longgetSize(int dim)inthashCode()voidsetBeginDim(int dim, long value)voidsetEndDim(int dim, long value)FederatedRangeshift(long rshift, long cshift)StringtoString()FederatedRangetranspose()
-
-
-
Constructor Detail
-
FederatedRange
public FederatedRange(long[] beginDims, long[] endDims)Create a range with the indexes of each dimension between their respectivebeginDimsandendDimsvalues.- Parameters:
beginDims- the beginning indexes for each dimensionendDims- the ending indexes for each dimension
-
FederatedRange
public FederatedRange(FederatedRange other)
Does a deep copy of anotherFederatedRangeobject.- Parameters:
other- theFederatedRangeto copy
-
FederatedRange
public FederatedRange(FederatedRange other, long clen)
-
-
Method Detail
-
setBeginDim
public void setBeginDim(int dim, long value)
-
setEndDim
public void setEndDim(int dim, long value)
-
getBeginDims
public long[] getBeginDims()
-
getEndDims
public long[] getEndDims()
-
getBeginDimsInt
public int[] getBeginDimsInt()
-
getEndDimsInt
public int[] getEndDimsInt()
-
getSize
public long getSize()
-
getSize
public long getSize(int dim)
-
compareTo
public int compareTo(FederatedRange o)
- Specified by:
compareToin interfaceComparable<FederatedRange>
-
shift
public FederatedRange shift(long rshift, long cshift)
-
transpose
public FederatedRange transpose()
-
asIndexRange
public IndexRange asIndexRange()
-
-