ToElementCode

ToElementCode[e]
gives a non-negative integer code, less than the field size, associated with the element e.

DetailsDetails