Let $K$ be a quadratic number field. Let $R$ be an order of $K$, i.e. the subring of $K$ which is a free $\mathbb{Z}$-module of rank $2$.Let $D$ be its discriminant. We use the notation and the result of this question. There exists a bijection between $Cl^+(R)$ and the set of classes of primitive binary quadratic forms of discriminant $D$. So it is natural to ask the following question.
My question How can we compute the ideal class group $G = Cl^+(R)$? Namely how can we compute the following tasks?
Find a set of full representatives of the group $G$.
Compute the multiplication table of the group $G$ in terms of the above representatives.