Class KahanObject
- java.lang.Object
 - 
- org.apache.sysds.runtime.instructions.cp.Data
 - 
- org.apache.sysds.runtime.instructions.cp.KahanObject
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class KahanObject extends Data
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description double_correctiondouble_sum 
- 
Constructor Summary
Constructors Constructor Description KahanObject(double sum, double cor) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcompare(KahanObject k1, KahanObject k2)booleanequals(Object o)StringgetDebugName()inthashCode()booleanisAllZero()voidread(DataInput in)voidset(double s, double c)voidset(KahanObject that)StringtoString()voidwrite(DataOutput out)- 
Methods inherited from class org.apache.sysds.runtime.instructions.cp.Data
getDataType, getMetaData, getValueType, removeMetaData, setMetaData, toString, updateDataCharacteristics 
 - 
 
 - 
 
- 
- 
Method Detail
- 
compare
public static int compare(KahanObject k1, KahanObject k2)
 
- 
read
public void read(DataInput in) throws IOException
- Throws:
 IOException
 
- 
write
public void write(DataOutput out) throws IOException
- Throws:
 IOException
 
- 
set
public void set(KahanObject that)
 
- 
set
public void set(double s, double c) 
- 
isAllZero
public boolean isAllZero()
 
- 
getDebugName
public String getDebugName()
- Specified by:
 getDebugNamein classData
 
 - 
 
 -