Bfloat16Layout

public final class Bfloat16Layout

Data layout that converts 32-bit floats from/to 16-bit, truncating their mantissa to 7 bits but preserving the 8-bit exponent with the same bias.

Public Constructors

Public Methods

float
readFloat ( ShortDataBuffer buffer, long index)
void
writeFloat ( ShortDataBuffer buffer, float value, long index)

Inherited Methods

Public Constructors

public Bfloat16Layout ()

Public Methods

public float readFloat ( ShortDataBuffer buffer, long index)

public void writeFloat ( ShortDataBuffer buffer, float value, long index)