3.5.1. lekkersim.S_matrix

class lekkersim.S_matrix(N: int, M: int, ns: int = None)

Class implmenting the scattering matrix object and recursion alghoritms for joining two of them

__init__(N: int, M: int, ns: int = None) None

Creator

Parameters:
  • N (int) – number of “left” ports

  • M (int) – number of “right” ports

Methods

S_print([i, j])

Print scattering matrix as numpy array

__init__(N, M[, ns])

Creator

add(s)

Recursion algorith for joining two matrices

det()

Calculated determinat of scattering matrix

int_complete(S2, u, d)

Function for computing the internal modal coefficients between two structures

matrix()

Return scattering matrix as ndarray