def sample_poisson(self, target=None):
    """
    Sample a poisson distribution. Choose 1 with probability given by entries of self.
    Not implemented yet.
    """
    if not target:
     target = self
    err_code = _eigenmat.sample_poisson(EigenMatrix.rnd_state_p, self.p_mat, target.p_mat)
    if err_code:
      raise generate_exception(err_code)

    return self

    Sample a poisson distribution. Choose 1 with probability given by entries of self.
    Not implemented yet.
    
eigenmat/eigenmat.py