$allocate static method

Pointer<MpMatrix> $allocate(
  1. Allocator $allocator, {
  2. required int rows,
  3. required int cols,
  4. required Pointer<Float> data,
})

Implementation

static ffi.Pointer<MpMatrix> $allocate(
  ffi.Allocator $allocator, {
  required int rows,
  required int cols,
  required ffi.Pointer<ffi.Float> data,
}) => $allocator<MpMatrix>()
  ..ref.rows = rows
  ..ref.cols = cols
  ..ref.data = data;