pub fn calc_circulant_phase_entry(
sequence: [Complex64; 3],
i: usize,
j: usize,
) -> Complex64Expand description
Entry (i, j), i ≠ j, of the three phase circulant matrix of an
element with unequal sequence impedances [z₀, z₁, z₂] as OpenDSS
VSource forms it: (z₀ + z₁ α^((j−i) mod 3) + z₂ α^((i−j) mod 3)) / 3
with OPENDSS_ALPHA, summed in VSource.RecalcElementData’s order,
the α² term, then the α term, then z₀ (Calpha2 * Z2 + Calpha1 * Z1 + Z0 above the diagonal, Calpha2 * Z1 + Calpha1 * Z2 + Z0 below
it, DSS C-API 0.14.5), with α² = α · α. The diagonal is
(z₂ + z₁ + z₀) / 3. calc_circulant_sequence_from_phase is its
inverse.