arrayToDoubleList function
Convert C double array to Dart double list.
Implementation
List<double> arrayToDoubleList(Pointer<Double> ptr, int length) {
final list = <double>[];
for (var i = 0; i < length; i++) {
list.add(ptr[i].toDouble());
}
return list;
}