connect_y_arbitrary

pmrf.rf.connect_y_arbitrary(Ymats: Sequence[Array], connections: Sequence[Sequence[tuple[int, int]]], port_indices: Sequence[int], grounded_nodes: Sequence[int] = None, method: str = 'nam', eps: float = 1e-12) Array

(experimental) Connect multiple Y-parameter networks together in an arbitrary topology.

Parameters:
  • Ymats (Sequence[jnp.ndarray]) – A sequence of Y-parameter matrices for the component networks.

  • connections (Sequence[Sequence[tuple[int, int]]]) – Topology connection nodes.

  • port_indices (Sequence[int]) – External port network indices.

  • grounded_nodes (Sequence[int] = None) – Grounded node indices.

  • method (str, optional, default='nam') – The algorithm to use.

  • eps (float, optional, default=1e-12) – Tikhonov regularization parameter. Adds a microscopic conductance to every node to prevent singular matrix inversions.

Returns:

The resulting Y-parameter matrix.

Return type:

jnp.ndarray