code
stringlengths
17
6.64M
class PeriodicSolitonCellularAutomata(SolitonCellularAutomata): "\n A periodic soliton cellular automata.\n\n Fix some `r \\in I_0`. A *periodic soliton cellular automata* is a\n :class:`SolitonCellularAutomata` with a state being a fixed number of\n tensor factors `p = p_{\\ell} \\otimes \\cdots \\ot...
def mandelbrot_plot(f=None, **kwds): "\n Plot of the Mandelbrot set for a one parameter family of polynomial maps.\n\n The family `f_c(z)` must have parent ``R`` of the\n form ``R.<z,c> = CC[]``.\n\n REFERENCE:\n\n [Dev2005]_\n\n INPUT:\n\n - ``f`` -- map (optional - default: ``z^2 + c``), po...
def external_ray(theta, **kwds): "\n Draws the external ray(s) of a given angle (or list of angles)\n by connecting a finite number of points that were approximated using\n Newton's method. The algorithm used is described in a paper by\n Tomoki Kawahira.\n\n REFERENCE:\n\n [Kaw2009]_\n\n INPU...
def kneading_sequence(theta): "\n Determines the kneading sequence for an angle theta in RR/ZZ which\n is periodic under doubling. We use the definition for the kneading\n sequence given in Definition 3.2 of [LS1994]_.\n\n INPUT:\n\n - ``theta`` -- a rational number with odd denominator\n\n OUTP...
def julia_plot(f=None, **kwds): "\n Plots the Julia set of a given polynomial ``f``. Users can specify whether\n they would like to display the Mandelbrot side by side with the Julia set\n with the ``mandelbrot`` argument. If ``f`` is not specified, this method\n defaults to `f(z) = z^2-1`.\n\n The...
class DiscreteDynamicalSystem(SageObject, metaclass=ClasscallMetaclass): '\n A discrete dynamical system.\n\n A *discrete dynamical system* (henceforth *DDS*) is a\n pair `(X, \\phi)` of a set `X` and a map `\\phi : X \\to X`.\n This set `X` is called the *ground set* of the DDS, while\n the map `\...
class InvertibleDiscreteDynamicalSystem(DiscreteDynamicalSystem): '\n An invertible discrete dynamical system.\n\n A *discrete dynamical system* (henceforth *DDS*) is a\n pair `(X, \\phi)` of a set `X` and a map `\\phi : X \\to X`.\n This set `X` is called the *ground set* of the DDS, while\n the m...
class FiniteDynamicalSystem(DiscreteDynamicalSystem): '\n A finite discrete dynamical system.\n\n A *finite discrete dynamical system* (henceforth *FDDS*) is a\n pair `(X, \\phi)` of a finite set `X` and a map `\\phi : X \\to X`.\n This set `X` is called the *ground set* of the FDDS, while\n the ma...
class InvertibleFiniteDynamicalSystem(InvertibleDiscreteDynamicalSystem, FiniteDynamicalSystem): '\n An invertible finite discrete dynamical system.\n\n A *finite discrete dynamical system* (henceforth *FDDS*) is a\n pair `(X, \\phi)` of a finite set `X` and a map `\\phi : X \\to X`.\n This set `X` is...
def permutation(pi, invertible=True): '\n Return the invertible finite discrete dynamical system\n induced by the permutation ``pi`` of the set\n `\\{1, 2, \\ldots, n\\}`.\n\n The permutation ``pi`` can be provided as an instance\n of :class:`Permutation`, but also as anything that can\n be cast...
def one_line(xs): '\n Return the finite discrete dynamical system\n with ground set `\\{1, 2, \\ldots, n\\}` and evolution\n sending each `i` to `x_i`,\n where `(x_1, x_2, \\ldots, x_n)` is the argument ``xs``\n provided.\n\n EXAMPLES::\n\n sage: F = finite_dynamical_systems.one_line([2, ...
def bitstring_rotation(n, ones=None): '\n Return the invertible finite discrete dynamical system\n consisting of all bitstrings of size `n` (that is, of\n all `n`-tuples `(i_1, \\ldots, i_n) \\in \\{0, 1\\}^n`),\n evolving by cyclic rotation.\n\n If the optional parameter ``ones`` is provided, the\...
def striker_sweep(E, predicate, elements, lazy=False): '\n Return the invertible finite discrete dynamical system\n on all subsets of a finite set ``E`` satisfying a\n boolean predicate ``predicate``, where evolution is\n the "Striker sweep" -- i.e., the composition of\n Striker toggles correspondi...
def syt_promotion(lam): '\n Return the invertible finite discrete dynamical system\n consisting of all standard tableaux of shape ``lam`` (a\n given partition) and evolving according to promotion.\n\n EXAMPLES::\n\n sage: F = finite_dynamical_systems.syt_promotion([4, 4, 4])\n sage: sort...
def order_ideal_rowmotion(P): '\n Return the invertible finite discrete dynamical system\n consisting of all order ideals of the poset ``P``,\n evolving according to rowmotion.\n\n EXAMPLES::\n\n sage: P = RootSystem(["A", 6]).root_poset()\n sage: F = finite_dynamical_systems.order_ideal...
def bulgarian_solitaire(n): '\n Return the finite discrete dynamical system defined\n by Bulgarian solitaire on partitions of size `n`.\n\n Let `n` be a nonnegative integer.\n Let `P` be the set of all integer partitions of\n size `n`.\n Let `B : P \\to P` be the map that sends each\n partiti...
def surface_dynamics_deprecation(name): '\n TESTS::\n\n sage: from sage.dynamics.surface_dynamics_deprecation import surface_dynamics_deprecation\n sage: surface_dynamics_deprecation("HeYhEy")\n doctest:...: DeprecationWarning: HeYhEy is deprecated and will be removed from Sage.\n Y...
def join(*args): '\n Join paths like ``os.path.join`` except that the result is ``None``\n if any of the components is ``None``.\n\n EXAMPLES::\n\n sage: from sage.env import join\n sage: print(join("hello", "world"))\n hello/world\n sage: print(join("hello", None))\n N...
def var(key: str, *fallbacks: Optional[str], force: bool=False) -> Optional[str]: "\n Set ``SAGE_ENV[key]`` and return the value.\n\n If ``key`` is an environment variable, this is the value.\n Otherwise, the ``fallbacks`` are tried until one is found which\n is not ``None``. If the environment variab...
def sage_include_directories(use_sources=False): '\n Return the list of include directories for compiling Sage extension modules.\n\n INPUT:\n\n - ``use_sources`` -- (default: False) a boolean\n\n OUTPUT:\n\n a list of include directories to be used to compile sage code\n 1. while building sage...
def get_cblas_pc_module_name() -> str: '\n Return the name of the BLAS libraries to be used.\n ' import pkgconfig cblas_pc_modules = CBLAS_PC_MODULES.split(':') return next((blas_lib for blas_lib in cblas_pc_modules if pkgconfig.exists(blas_lib)))
def cython_aliases(required_modules=None, optional_modules=None): "\n Return the aliases for compiling Cython code. These aliases are\n macros which can occur in ``# distutils`` headers.\n\n INPUT:\n\n - ``required_modules`` -- (default: taken from ``default_required_modules``)\n iterable of ``st...
class TrivialClasscallMetaClass(type): '\n A trivial version of :class:`sage.misc.classcall_metaclass.ClasscallMetaclass` without Cython dependencies.\n ' def __call__(cls, *args, **kwds): '\n This method implements ``cls(<some arguments>)``.\n ' if hasattr(cls, '__classca...
class TrivialUniqueRepresentation(metaclass=TrivialClasscallMetaClass): '\n A trivial version of :class:`UniqueRepresentation` without Cython dependencies.\n ' @staticmethod def __classcall__(cls, *args, **options): '\n Construct a new object of this class or reuse an existing one.\n...
class Feature(TrivialUniqueRepresentation): '\n A feature of the runtime environment\n\n INPUT:\n\n - ``name`` -- (string) name of the feature; this should be suitable as an optional tag\n for the Sage doctester, i.e., lowercase alphanumeric with underscores (``_``) allowed;\n features that cor...
class FeatureNotPresentError(RuntimeError): '\n A missing feature error.\n\n EXAMPLES::\n\n sage: from sage.features import Feature, FeatureTestResult\n sage: class Missing(Feature):\n ....: def _is_present(self):\n ....: return False\n\n sage: Missing(name="mi...
class FeatureTestResult(): '\n The result of a :meth:`Feature.is_present` call.\n\n Behaves like a boolean with some extra data which may explain why a feature\n is not present and how this may be resolved.\n\n EXAMPLES::\n\n sage: from sage.features.gap import GapPackage\n sage: presenc...
def package_systems(): "\n Return a list of :class:`~sage.features.pkg_systems.PackageSystem` objects\n representing the available package systems.\n\n The list is ordered by decreasing preference.\n\n EXAMPLES::\n\n sage: from sage.features import package_systems\n sage: package_systems...
class FileFeature(Feature): '\n Base class for features that describe a file or directory in the file system.\n\n A subclass should implement a method :meth:`absolute_filename`.\n\n EXAMPLES:\n\n Two direct concrete subclasses of :class:`FileFeature` are defined::\n\n sage: from sage.features i...
class Executable(FileFeature): '\n A feature describing an executable in the ``PATH``.\n\n In an installation of Sage with ``SAGE_LOCAL`` different from ``SAGE_VENV``, the\n executable is searched first in ``SAGE_VENV/bin``, then in ``SAGE_LOCAL/bin``,\n then in ``PATH``.\n\n .. NOTE::\n\n O...
class StaticFile(FileFeature): '\n A :class:`Feature` which describes the presence of a certain file such as a\n database.\n\n EXAMPLES::\n\n sage: from sage.features import StaticFile\n sage: StaticFile(name="no_such_file", filename="KaT1aihu", search_path=("/",), spkg="some_spkg", url="ht...
class CythonFeature(Feature): '\n A :class:`Feature` which describes the ability to compile and import\n a particular piece of Cython code.\n\n To test the presence of ``name``, the cython compiler is run on\n ``test_code`` and the resulting module is imported.\n\n EXAMPLES::\n\n sage: from ...
class PythonModule(Feature): '\n A :class:`Feature` which describes whether a python module can be imported.\n\n EXAMPLES:\n\n Not all builds of python include the ``ssl`` module, so you could check\n whether it is available::\n\n sage: from sage.features import PythonModule\n sage: Pyth...
def all_features(): "\n Return an iterable of all features.\n\n EXAMPLES::\n\n sage: from sage.features.all import all_features\n sage: sorted(all_features(), key=lambda f: f.name) # random\n [...Feature('sage.combinat')...]\n " import pkgutil import importlib import sag...
def module_feature(module_name): "\n Find a top-level :class:`Feature` that provides the Python module of the given ``module_name``.\n\n Only features known to :func:`all_features` are considered.\n\n INPUT:\n\n - ``module_name`` -- string\n\n OUTPUT: a :class:`Feature` or ``None``.\n\n EXAMPLES...
def name_feature(name, toplevel=None): "\n Find a top-level :class:`Feature` that provides the top-level ``name``.\n\n Only features known to :func:`all_features` are considered.\n\n INPUT:\n\n - ``name`` -- string\n\n - ``toplevel`` -- a module or other namespace\n\n OUTPUT: a :class:`Feature` ...
class BlissLibrary(CythonFeature): '\n A :class:`~sage.features.Feature` which describes whether the :ref:`Bliss library <spkg_bliss>` is\n present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.bliss import BlissLibrary\n sage: BlissLibrary().require() # optional - libbliss\n...
class Bliss(JoinFeature): '\n A :class:`~sage.features.Feature` which describes whether the :mod:`sage.graphs.bliss`\n module is available in this installation of Sage.\n\n EXAMPLES::\n\n sage: from sage.features.bliss import Bliss\n sage: Bliss().require() # optional - bliss\n ' d...
def all_features(): return [Bliss()]
class CddExecutable(Executable): "\n A :class:`~sage.features.Feature` describing the presence of an executable\n which comes as a part of :ref:`cddlib <spkg_cddlib>`.\n\n EXAMPLES::\n\n sage: from sage.features.cddlib import CddExecutable\n sage: CddExecutable().is_present()\n Featu...
class CSDP(Executable): "\n A :class:`~sage.features.Feature` which checks for the ``theta`` binary\n of :ref:`CSDP <spkg_csdp>`.\n\n EXAMPLES::\n\n sage: from sage.features.csdp import CSDP\n sage: CSDP().is_present() # optional - csdp\n FeatureTestResult('csdp', True)\n " ...
def all_features(): return [CSDP()]
class sage__misc__cython(CythonFeature): '\n A :class:`~sage.features.Feature` which describes whether :mod:`sage.misc.cython`\n is available and functional.\n ' def __init__(self): '\n TESTS::\n\n sage: from sage.features import CythonFeature\n sage: from sage.f...
def all_features(): return [sage__misc__cython()]
class DatabaseCremona(StaticFile): "\n A :class:`~sage.features.Feature` which describes the presence of :ref:`John Cremona's\n database of elliptic curves <spkg_database_cremona_ellcurve>`.\n\n INPUT:\n\n - ``name`` -- either ``'cremona'`` (the default) for the full large\n database or ``'cremon...
class DatabaseJones(StaticFile): "\n A :class:`~sage.features.Feature` which describes the presence of\n :ref:`John Jones's tables of number fields <spkg_database_jones_numfield>`.\n\n EXAMPLES::\n\n sage: from sage.features.databases import DatabaseJones\n sage: bool(DatabaseJones().is_pre...
class DatabaseKnotInfo(PythonModule): "\n A :class:`~sage.features.Feature` which describes the presence of the\n :ref:`package providing the KnotInfo and LinkInfo databases <spkg_database_knotinfo>`.\n\n The homes of these databases are the\n web-pages `KnotInfo <https://knotinfo.math.indiana.edu/>`_...
class DatabaseCubicHecke(PythonModule): "\n A :class:`~sage.features.Feature` which describes the presence of the\n :ref:`Cubic Hecke algebra database package <spkg_database_cubic_hecke>`.\n\n The home of this database is the\n web-page `Cubic Hecke algebra on 4 strands <http://www.lamfa.u-picardie.fr...
class DatabaseReflexivePolytopes(StaticFile): "\n A :class:`~sage.features.Feature` which describes the presence of the\n :ref:`PALP databases of reflexive three-dimensional <spkg_polytopes_db>`\n and :ref:`four-dimensional lattice polytopes <spkg_polytopes_db_4d>`.\n\n EXAMPLES::\n\n sage: fro...
def all_features(): return [DatabaseCremona(), DatabaseCremona('cremona_mini'), DatabaseJones(), DatabaseKnotInfo(), DatabaseCubicHecke(), DatabaseReflexivePolytopes(), DatabaseReflexivePolytopes('polytopes_db_4d', 'Hodge4d')]
class dvipng(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``dvipng``\n\n EXAMPLES::\n\n sage: from sage.features.dvipng import dvipng\n sage: dvipng().is_present() # optional - dvipng\n FeatureTestResult('dvipng', True)\n " def __init...
def all_features(): return [dvipng()]
class FFmpeg(Executable): "\n A :class:`~sage.features.Feature` describing the presence of :ref:`ffmpeg <spkg_ffmpeg>`.\n\n EXAMPLES::\n\n sage: from sage.features.ffmpeg import FFmpeg\n sage: FFmpeg().is_present() # optional - ffmpeg\n FeatureTestResult('ffmpeg', True)\n " def...
def all_features(): return [FFmpeg()]
class FourTi2Executable(Executable): '\n A :class:`~sage.features.Feature` for the :ref:`4ti2 <spkg_4ti2>` executables.\n ' def __init__(self, name): "\n TESTS::\n\n sage: from sage.features.four_ti_2 import FourTi2Executable\n sage: isinstance(FourTi2Executable('hi...
class FourTi2(JoinFeature): "\n A :class:`~sage.features.Feature` describing the presence of all :ref:`4ti2 <spkg_4ti2>` executables.\n\n EXAMPLES::\n\n sage: from sage.features.four_ti_2 import FourTi2\n sage: FourTi2().is_present() # optional - 4ti2\n FeatureTestResult('4ti2', True)\...
def all_features(): return [FourTi2()]
class FriCAS(Executable): "\n A :class:`~sage.features.Feature` which checks for the :ref:`fricas <fricas>` binary.\n\n EXAMPLES::\n\n sage: from sage.features.fricas import FriCAS\n sage: FriCAS().is_present() # optional - fricas\n FeatureTestResult('fricas', True)\n " def __i...
def all_features(): return [FriCAS()]
class GapPackage(Feature): '\n A :class:`~sage.features.Feature` describing the presence of a GAP package.\n\n A GAP package is "present" if it *can be* loaded, not if it *has\n been* loaded.\n\n .. SEEALSO::\n\n :class:`Feature sage.libs.gap <~sage.features.sagemath.sage__libs__gap>`\n\n EX...
def all_features(): return [GapPackage('atlasrep', spkg='gap_packages'), GapPackage('design', spkg='gap_packages'), GapPackage('grape', spkg='gap_packages'), GapPackage('guava', spkg='gap_packages'), GapPackage('hap', spkg='gap_packages'), GapPackage('polycyclic', spkg='gap_packages'), GapPackage('qpa', spkg='gap...
class GfanExecutable(Executable): '\n A :class:`~sage.features.Feature` for the :ref:`gfan <spkg_gfan>` executables.\n ' def __init__(self, cmd=None): "\n TESTS::\n\n sage: from sage.features.gfan import GfanExecutable\n sage: isinstance(GfanExecutable('groebnercone...
def all_features(): return [GfanExecutable()]
class Plantri(Executable): "\n A :class:`~sage.features.Feature` which checks for the :ref:`plantri <spkg_plantri>` binary.\n\n EXAMPLES::\n\n sage: from sage.features.graph_generators import Plantri\n sage: Plantri().is_present() # optional - plantri\n FeatureTestResult('plantri', Tru...
class Buckygen(Executable): "\n A :class:`~sage.features.Feature` which checks for the :ref:`buckygen <spkg_buckygen>` binary.\n\n EXAMPLES::\n\n sage: from sage.features.graph_generators import Buckygen\n sage: Buckygen().is_present() # optional - buckygen\n FeatureTestResult('buckyge...
class Benzene(Executable): "\n A :class:`~sage.features.Feature` which checks for the :ref:`benzene <spkg_benzene>`\n binary.\n\n EXAMPLES::\n\n sage: from sage.features.graph_generators import Benzene\n sage: Benzene().is_present() # optional - benzene\n FeatureTestResult('benzene'...
def all_features(): return [Plantri(), Buckygen(), Benzene()]
class dot(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``dot``.\n\n TESTS::\n\n sage: from sage.features.graphviz import dot\n sage: dot().is_present() # optional - graphviz\n FeatureTestResult('dot', True)\n " def __init__(self): '\n ...
class neato(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``neato``.\n\n TESTS:\n\n sage: from sage.features.graphviz import neato\n sage: neato().is_present() # optional - graphviz\n FeatureTestResult('neato', True)\n " def __init__(self): ...
class twopi(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``twopi``.\n\n TESTS::\n\n sage: from sage.features.graphviz import twopi\n sage: twopi().is_present() # optional - graphviz\n FeatureTestResult('twopi', True)\n " def __init__(self): ...
class Graphviz(JoinFeature): "\n A :class:`~sage.features.Feature` describing the presence of\n the :class:`dot`, :class:`neato`, and :class:`twopi` executables from the\n :ref:`graphviz <spkg_graphviz>` package.\n\n EXAMPLES::\n\n sage: from sage.features.graphviz import Graphviz\n sage...
def all_features(): return [Graphviz()]
class python_igraph(JoinFeature): "\n A :class:`sage.features.Feature` describing the presence of the\n Python package :ref:`igraph <spkg_python_igraph>`.\n\n EXAMPLES::\n\n sage: from sage.features.igraph import python_igraph\n sage: python_igraph().is_present() # option...
def all_features(): return [python_igraph()]
class Convert(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``convert``.\n\n EXAMPLES::\n\n sage: from sage.features.imagemagick import Convert\n sage: Convert().is_present() # optional - imagemagick\n FeatureTestResult('convert', True)\n " def _...
class ImageMagick(JoinFeature): "\n A :class:`~sage.features.Feature` describing the presence of\n :ref:`ImageMagick <spkg_imagemagick>`\n\n Currently, only the availability of the :class:`convert` program is checked.\n\n EXAMPLES::\n\n sage: from sage.features.imagemagick import ImageMagick\n ...
def all_features(): return [ImageMagick()]
class InterfaceFeature(Feature): '\n A :class:`~sage.features.Feature` describing whether an :class:`~sage.interfaces.interface.Interface` is present and functional.\n\n TESTS::\n\n sage: from sage.features.interfaces import InterfaceFeature\n sage: broken = InterfaceFeature("broken_interface"...
class Magma(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.magma.Magma`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Magma\n sage: Magma().is_present() # random\n FeatureTestResult('ma...
class Matlab(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.matlab.Matlab`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Matlab\n sage: Matlab().is_present() # random\n FeatureTestResul...
class Mathematica(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.mathematica.Mathematica`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Mathematica\n sage: Mathematica().is_present() # not tes...
class Maple(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.maple.Maple`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Maple\n sage: Maple().is_present() # random\n FeatureTestResult('ma...
class Macaulay2(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.macaulay2.Macaulay2`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Macaulay2\n sage: Macaulay2().is_present() # random\n F...
class Octave(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.octave.Octave`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Octave\n sage: Octave().is_present() # random\n FeatureTestResul...
class Scilab(InterfaceFeature): "\n A :class:`~sage.features.Feature` describing whether :class:`sage.interfaces.scilab.Scilab`\n is present and functional.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import Scilab\n sage: Scilab().is_present() # random\n FeatureTestResul...
def all_features(): "\n Return features corresponding to interpreter interfaces.\n\n EXAMPLES::\n\n sage: from sage.features.interfaces import all_features\n sage: list(all_features())\n [Feature('magma'),\n Feature('matlab'),\n Feature('mathematica'),\n Feature(...
class Internet(Feature): '\n A :class:`~sage.features.Feature` describing if Internet is available.\n\n Failure of connecting to the site "https://www.sagemath.org" within a second\n is regarded as internet being not available.\n\n EXAMPLES::\n\n sage: from sage.features.internet import Interne...
def all_features(): return [Internet()]
class JoinFeature(Feature): '\n Join of several :class:`~sage.features.Feature` instances.\n\n This creates a new feature as the union of the given features. Typically\n these are executables of an SPKG. For an example, see\n :class:`~sage.features.rubiks.Rubiks`.\n\n Furthermore, this can be the u...
class Kenzo(Feature): "\n A :class:`~sage.features.Feature` describing the presence of :ref:`Kenzo <spkg_kenzo>`.\n\n EXAMPLES::\n\n sage: from sage.features.kenzo import Kenzo\n sage: Kenzo().is_present() # optional - kenzo\n FeatureTestResult('kenzo', True)\n " def __init__(s...
def all_features(): return [Kenzo()]
class LaTeX(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``latex``\n\n EXAMPLES::\n\n sage: from sage.features.latex import latex\n sage: latex().is_present() # optional - latex\n FeatureTestResult('latex', True)\n " def __init__(self...
class latex(LaTeX): "\n A :class:`~sage.features.Feature` describing the presence of ``latex``\n\n EXAMPLES::\n\n sage: from sage.features.latex import latex\n sage: latex().is_present() # optional - latex\n FeatureTestResult('latex', True)\n " def __init__(self): ...
class pdflatex(LaTeX): "\n A :class:`~sage.features.Feature` describing the presence of ``pdflatex``\n\n EXAMPLES::\n\n sage: from sage.features.latex import pdflatex\n sage: pdflatex().is_present() # optional - pdflatex\n FeatureTestResult('pdflatex', True)\n " def ...
class xelatex(LaTeX): "\n A :class:`~sage.features.Feature` describing the presence of ``xelatex``\n\n EXAMPLES::\n\n sage: from sage.features.latex import xelatex\n sage: xelatex().is_present() # optional - xelatex\n FeatureTestResult('xelatex', True)\n " def __init...
class lualatex(LaTeX): "\n A :class:`~sage.features.Feature` describing the presence of ``lualatex``\n\n EXAMPLES::\n\n sage: from sage.features.latex import lualatex\n sage: lualatex().is_present() # optional - lualatex\n FeatureTestResult('lualatex', True)\n " def ...
class dvips(Executable): "\n A :class:`~sage.features.Feature` describing the presence of ``dvips``\n\n EXAMPLES::\n\n sage: from sage.features.latex import dvips\n sage: dvips().is_present() # optional - dvips\n FeatureTestResult('dvips', True)\n " def __init__(self...
class TeXFile(StaticFile): "\n A :class:`sage.features.Feature` describing the presence of a TeX file\n\n EXAMPLES::\n\n sage: from sage.features.latex import TeXFile\n sage: TeXFile('x', 'x.tex').is_present() # optional - latex\n FeatureTestResult('x', True)\n " def __init__(s...
class LaTeXPackage(TeXFile): "\n A :class:`sage.features.Feature` describing the presence of a LaTeX package\n (``.sty`` file).\n\n EXAMPLES::\n\n sage: from sage.features.latex import LaTeXPackage\n sage: LaTeXPackage('graphics').is_present() # optional - latex\n FeatureTestResult(...
def all_features(): return [latex(), pdflatex(), xelatex(), lualatex(), dvips(), LaTeXPackage('tkz-graph')]