Let the initial voltages on the capacitors be represented as voltage sources in series with the capacitors and the initial currents through the inductors be represented as current sources in parallel with the inductors
Augmented loop matrix +1when branch b; is in loop lk and has the same orientation; B. =]; ={-1 when branch b; is in loop lk and has the opposite orientation; when branch; is not in loop lk