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.boolean
double
Returns the value as a doublefloat
Returns the value as a floatgetKey()
getValue()
Returns the value as a doubleint
hashCode()
toString
(TensorType type)
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceMap.Entry<TensorAddress,
Double>
-
getValue
Returns the value as a double- Specified by:
getValue
in 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:
setValue
in 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.
-