NativeQ4Matrix.fromPointers constructor

NativeQ4Matrix.fromPointers(
  1. int rows,
  2. int cols,
  3. Pointer<Uint8> qs,
  4. Pointer<Uint16> scales,
)

Wraps Q4 data in native memory: qs holds rows * cols / 2 bytes, scales rows * cols / 32 halves.

Implementation

factory NativeQ4Matrix.fromPointers(
  int rows,
  int cols,
  Pointer<Uint8> qs,
  Pointer<Uint16> scales,
) => NativeQ4Matrix._(rows, cols, qs, scales, owned: false);