ArrayComplex.fixed constructor

ArrayComplex.fixed(
  1. int length, {
  2. Complex? initialValue,
})

Implementation

ArrayComplex.fixed(int length, {Complex? initialValue}) {
  if (initialValue != null) {
    l = List<Complex>.generate(length, (i) => initialValue);
  } else {
    l = List<Complex>.filled(length, Complex.ri(0.0, 0.0));
  }
}