File: /projects/sage/sage-7.5/local/lib/python2.7/site-packages/sage/rings/number_field/number_field_ideal.py
Source:
def _pari_(self):
"""
Returns PARI Hermite Normal Form representations of this
ideal.
EXAMPLES::
sage: K.<w> = NumberField(x^2 + 23)
sage: I = K.class_group().0.ideal(); I
Fractional ideal (2, 1/2*w - 1/2)
sage: I._pari_()
[2, 0; 0, 1]
"""
return self.pari_hnf()