libSingular: Conversion Routines and Initialisation#

AUTHOR:

sage.libs.singular.singular.get_resource(id)#

Return a Singular “resource”.

INPUT:

OUTPUT:

A string, or None.

EXAMPLES:

sage: from sage.libs.singular.singular import get_resource
sage: get_resource('D')            # SINGULAR_DATA_DIR
'...'
sage: get_resource('i')            # SINGULAR_INFO_FILE
'.../singular...'
sage: get_resource('7') is None    # not defined
True
sage.libs.singular.singular.si2sa_resolution(res)#

Pull the data from Singular resolution res to construct a Sage resolution.

INPUT:

  • res – Singular resolution

The procedure is destructive and res is not usable afterward.

sage.libs.singular.singular.si2sa_resolution_graded(res, degrees)#

Pull the data from Singular resolution res to construct a Sage resolution.

INPUT:

  • res – Singular resolution

  • degrees – list of integers or integer vectors

The procedure is destructive, and res is not usable afterward.