Package org.apache.sysds.runtime.data
Class TensorIndexes
- java.lang.Object
- 
- org.apache.sysds.runtime.data.TensorIndexes
 
- 
- All Implemented Interfaces:
- Externalizable,- Serializable,- Comparable<TensorIndexes>,- org.apache.hadoop.io.Writable,- org.apache.hadoop.io.WritableComparable<TensorIndexes>
 
 public class TensorIndexes extends Object implements org.apache.hadoop.io.WritableComparable<TensorIndexes>, Externalizable This represent the indexes to the blocks of the tensor. Please note that these indexes are 1-based, whereas the data in the block are zero-based (as they are double arrays).- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description TensorIndexes()TensorIndexes(long[] ix)TensorIndexes(TensorIndexes indexes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TensorIndexes other)booleanequals(Object other)longgetIndex(int dim)long[]getIndexes()intgetNumDims()inthashCode()voidreadExternal(ObjectInput is)Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.voidreadFields(DataInput in)TensorIndexessetIndexes(long[] ix)TensorIndexessetIndexes(TensorIndexes that)StringtoString()voidwrite(DataOutput out)voidwriteExternal(ObjectOutput os)Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.
 
- 
- 
- 
Constructor Detail- 
TensorIndexespublic TensorIndexes() 
 - 
TensorIndexespublic TensorIndexes(long[] ix) 
 - 
TensorIndexespublic TensorIndexes(TensorIndexes indexes) 
 
- 
 - 
Method Detail- 
getIndexpublic long getIndex(int dim) 
 - 
getIndexespublic long[] getIndexes() 
 - 
getNumDimspublic int getNumDims() 
 - 
setIndexespublic TensorIndexes setIndexes(long[] ix) 
 - 
setIndexespublic TensorIndexes setIndexes(TensorIndexes that) 
 - 
compareTopublic int compareTo(TensorIndexes other) - Specified by:
- compareToin interface- Comparable<TensorIndexes>
 
 - 
readFieldspublic void readFields(DataInput in) throws IOException - Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Throws:
- IOException
 
 - 
writepublic void write(DataOutput out) throws IOException - Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Throws:
- IOException
 
 - 
readExternalpublic void readExternal(ObjectInput is) throws IOException Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.- Specified by:
- readExternalin interface- Externalizable
- Parameters:
- is- object input
- Throws:
- IOException- if IOException occurs
 
 - 
writeExternalpublic void writeExternal(ObjectOutput os) throws IOException Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.- Specified by:
- writeExternalin interface- Externalizable
- Parameters:
- os- object output
- Throws:
- IOException- if IOException occurs
 
 
- 
 
-