NativeQ8Matrix.fromPointers constructor

NativeQ8Matrix.fromPointers(
  1. int rows,
  2. int cols,
  3. Pointer<Int8> qs,
  4. Pointer<Float> scales,
)

Wraps Q8 data that already exists in native memory, such as a mapped cache file: qs holds rows * cols int8, scales rows * cols / 32.

Implementation

factory NativeQ8Matrix.fromPointers(
  int rows,
  int cols,
  Pointer<Int8> qs,
  Pointer<Float> scales,
) => NativeQ8Matrix._(rows, cols, qs, scales, owned: false);