code: def get_explicit_residual(self, indices=None):
          '''Explicitly computes the Ritz residual.'''
          ritz_vecs = self.get_vectors(indices)
          return self._deflated_solver.linear_system.MlAMr * ritz_vecs \
              - ritz_vecs * self.valuef get_explicit_residual(self, indices=None):
          '''Explicitly computes the Ritz residual.'''
          ritz_vecs = self.get_vectors(indices)
          return self._deflated_solver.linear_system.MlAMr * ritz_vecs \
              - ritz_vecs * self.values
docs: Explicitly computes the Ritz residual.