Feature for testing the presence of ecm or gmp-ecm

class sage.features.ecm.Ecm(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of GMP-ECM.

EXAMPLES:

sage: from sage.features.ecm import Ecm
sage: Ecm().is_present()                                                        # needs ecm
FeatureTestResult('ecm_executable', True)
>>> from sage.all import *
>>> from sage.features.ecm import Ecm
>>> Ecm().is_present()                                                        # needs ecm
FeatureTestResult('ecm_executable', True)
sage.features.ecm.all_features()[source]