MakeFloatCompiledFunction SΒΆ

mkfunc.spad line 324

MakeFloatCompiledFunction transforms top-level objects into compiled Lisp functions whose arguments are Lisp floats. This by-passes the Language{} compiler and interpreter, thereby gaining several orders of magnitude.

makeFloatFunction: (S, Symbol) -> DoubleFloat -> DoubleFloat
makeFloatFunction(expr, x) returns a Lisp function f: \ :ref:`DoubleFloat <l--double-float>`\  -> \ :ref:`DoubleFloat <l--double-float>`\ ``\  defined by \ ``f(x) == expr. Function f is compiled and directly applicable to objects of type DoubleFloat.
makeFloatFunction: (S, Symbol, Symbol) -> (DoubleFloat, DoubleFloat) -> DoubleFloat
makeFloatFunction(expr, x, y) returns a Lisp function f: (\ :ref:`DoubleFloat <l--double-float>`\ , \ :ref:`DoubleFloat <l--double-float>`\ ) -> \ :ref:`DoubleFloat <l--double-float>`\ ``\  defined by \ ``f(x, y) == expr. Function f is compiled and directly applicable to objects of type (\ :ref:`DoubleFloat <l--double-float>`\ , \ :ref:`DoubleFloat <l--double-float>`\ ).