finesse.knm.knm_loss

finesse.knm.knm_loss(const double complex[:, ::1] knm_mat, double[::1] out=None)

Computes total losses from each mode (n, m) to all other mode couplings (including itself).

Note

If out is specified then this function expects it to be initialised with all ones - e.g. via np.ones.

Parameters

knm_mat : contiguous array

The matrix of coupling coefficients.

out : contiguous array, optional

Optional array in which store the computed results. If not specified then a new numpy.ndarray is returned.

Returns

losses : numpy.ndarray

The array of losses from each mode to the other modes. If out is specified then this array object is returned.