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

def sample_poisson(self, target=None):

    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
