List<List<double>> fromIterable(List<Iterable<double>> input) { List<List<double>> output = []; for (var element in input) { output.add(element.toList()); } return output; }