fromRealArray static method
Converts a real array to a Float64x2List of complex numbers.
Implementation
static Float64x2List fromRealArray(
List<double> reals, [
int outputLength = -1,
]) {
if (outputLength < 0) outputLength = reals.length;
final a = Float64x2List(outputLength);
final copyLength = math.min(reals.length, outputLength);
for (int i = 0; i < copyLength; ++i) {
a[i] = Float64x2(reals[i], 0);
}
return a;
}