@defer.inlineCallbacks
    def send_invite(self, target_host, event):
        pdu = yield self.replication_layer.send_invite(
            destination=target_host,
            room_id=event.room_id,
            event_id=event.event_id,
            pdu=event
        )

        defer.returnValue(pdu)
Convert a sympy/numpy matrix to a scipy.sparse matrix.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/federation.py/FederationHandler.send_invite--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/matrixutils.py/to_scipy_sparse