getDoubleValue abstract method

double getDoubleValue(
  1. int absIndex
)

Returns a double value at absIndex. If the buffer is of different types than double, the value will be converted into double. For example, when reading a value from TensorBufferUint8, the value will be first read out as uint8, and then will be converted from uint8 to double.

For example, a TensorBuffer with shape {2, 3} that represents the following list,
{{0.0, 1.0, 2.0}, {3.0, 4.0, 5.0}}.

The fourth element (whose value is 3.0) in the TensorBuffer can be retrieved by:
double v = tensorBuffer.getDoubleValue(3);

Implementation

double getDoubleValue(int absIndex);