Package com.yahoo.tensor
Class Tensor.Cell
java.lang.Object
com.yahoo.tensor.Tensor.Cell
- All Implemented Interfaces:
Map.Entry<TensorAddress,Double>
- Enclosing interface:
- Tensor
-
Method Summary
Modifier and TypeMethodDescriptiondetach()Return a copy of this tensor cell which is valid beyond the lifetime of any iterator state which supplied it.booleandoubleReturns the value as a doublefloatReturns the value as a floatgetKey()getValue()Returns the value as a doubleinthashCode()toString(TensorType type)
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceMap.Entry<TensorAddress,Double>
-
getValue
Returns the value as a double- Specified by:
getValuein interfaceMap.Entry<TensorAddress,Double>
-
getFloatValue
public float getFloatValue()Returns the value as a float -
getDoubleValue
public double getDoubleValue()Returns the value as a double -
setValue
- Specified by:
setValuein interfaceMap.Entry<TensorAddress,Double>
-
equals
-
hashCode
public int hashCode() -
toString
-
detach
Return a copy of this tensor cell which is valid beyond the lifetime of any iterator state which supplied it.
-