Feature for testing the presence of csdp - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# Feature for testing the presence of `csdp`

class sage.features.csdp.CSDP(*args, **kwds)

  Bases: `Executable`

  A `Feature` which checks for the `theta` binary of CSDP.

  EXAMPLES:

  Sage

      sage: from sage.features.csdp import CSDP
      sage: CSDP().is_present()  # optional - csdp
      FeatureTestResult('csdp', True)

  Python

      >>> from sage.all import *
      >>> from sage.features.csdp import CSDP
      >>> CSDP().is_present()  # optional - csdp
      FeatureTestResult('csdp', True)

  is_functional()

    Check whether `theta` works on a trivial example.

    EXAMPLES:

    Sage

        sage: from sage.features.csdp import CSDP
        sage: CSDP().is_functional()  # optional - csdp
        FeatureTestResult('csdp', True)

    Python

        >>> from sage.all import *
        >>> from sage.features.csdp import CSDP
        >>> CSDP().is_functional()  # optional - csdp
        FeatureTestResult('csdp', True)

sage.features.csdp.all_features()