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 respectivebeginDims
andendDims
values.FederatedRange(FederatedRange other)
Does a deep copy of anotherFederatedRange
object.FederatedRange(FederatedRange other, long clen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexRange
asIndexRange()
int
compareTo(FederatedRange o)
boolean
equals(Object o)
long[]
getBeginDims()
int[]
getBeginDimsInt()
long[]
getEndDims()
int[]
getEndDimsInt()
long
getSize()
long
getSize(int dim)
int
hashCode()
void
setBeginDim(int dim, long value)
void
setEndDim(int dim, long value)
FederatedRange
shift(long rshift, long cshift)
String
toString()
FederatedRange
transpose()
-
-
-
Constructor Detail
-
FederatedRange
public FederatedRange(long[] beginDims, long[] endDims)
Create a range with the indexes of each dimension between their respectivebeginDims
andendDims
values.- Parameters:
beginDims
- the beginning indexes for each dimensionendDims
- the ending indexes for each dimension
-
FederatedRange
public FederatedRange(FederatedRange other)
Does a deep copy of anotherFederatedRange
object.- Parameters:
other
- theFederatedRange
to 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:
compareTo
in interfaceComparable<FederatedRange>
-
shift
public FederatedRange shift(long rshift, long cshift)
-
transpose
public FederatedRange transpose()
-
asIndexRange
public IndexRange asIndexRange()
-
-