treams._operators.translate#
- treams._operators.translate(r, *, basis, k0=None, material=Material(1, 1, 0), modetype=None, poltype=None, where=True)[source]#
Translation matrix.
Translate the given basis modes along the translation vector.
- Parameters:
r (array-like) – Translation vector
basis (
treams.BasisSetor tuple) – Basis set, if it is a tuple of two basis sets the output and input modes are taken accordingly, else both sets of modes are the same.k0 (float, optional) – Wave number.
material (
treams.Materialor tuple, optional) – Material parameters.modetype (str, optional) – Wave mode, only used for
treams.PlaneWaveBasisByComp.poltype (str, optional) – Polarization, see also Polarizations.
where (array-like, bool, optional) – Only evaluate parts of the translation matrix, the given array must have a shape that matches the output shape.