Class KahanObject
java.lang.Object
org.apache.sysds.runtime.instructions.cp.Data
org.apache.sysds.runtime.instructions.cp.KahanObject
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(KahanObject k1, KahanObject k2) booleaninthashCode()booleanvoidvoidset(double s, double c) voidset(KahanObject that) toString()voidwrite(DataOutput out) Methods inherited from class org.apache.sysds.runtime.instructions.cp.Data
getDataType, getMetaData, getValueType, removeMetaData, setMetaData, toString, updateDataCharacteristics
-
Field Details
-
_sum
public double _sum -
_correction
public double _correction
-
-
Constructor Details
-
KahanObject
public KahanObject(double sum, double cor)
-
-
Method Details
-
toString
-
compare
-
equals
-
hashCode
public int hashCode() -
read
- Throws:
IOException
-
write
- Throws:
IOException
-
set
-
set
public void set(double s, double c) -
isAllZero
public boolean isAllZero() -
getDebugName
- Specified by:
getDebugNamein classData
-