diff --git a/docs/pyerrors/linalg.html b/docs/pyerrors/linalg.html index b7ec79d4..50eccee2 100644 --- a/docs/pyerrors/linalg.html +++ b/docs/pyerrors/linalg.html @@ -331,7 +331,7 @@ 232def _mat_mat_op(op, obs, **kwargs): 233 """Computes the matrix to matrix operation op to a given matrix of Obs.""" 234 # Use real representation to calculate matrix operations for complex matrices -235 if isinstance(obs.ravel()[0], CObs): +235 if any(isinstance(o, CObs) for o in obs.ravel()): 236 A = np.empty_like(obs) 237 B = np.empty_like(obs) 238 for (n, m), entry in np.ndenumerate(obs):