'Return a transposed copy of the matrix.'

def transpose(self, target=None):

    if (not target):
        target = empty((self.shape[1], self.shape[0]))
    err_code = _eigenmat.copy_transpose(self.p_mat, target.p_mat)
    if err_code:
        raise generate_exception(err_code)
    return target
