VecF64.generate constructor
Implementation
factory VecF64.generate(int length, double Function(int i) generator) {
final pp = calloc<cvg.VecF64>()..ref.length = length;
pp.ref.ptr = calloc<ffi.Double>(length);
for (var i = 0; i < length; i++) {
final v = generator(i);
pp.ref.ptr[i] = v;
}
return VecF64.fromPointer(pp);
}