MakeFloatCompiledFunction SΒΆ
mkfunc.spad line 333 [edit on github]
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.
- make_imaginary_part_function: (S, Symbol) -> DoubleFloat -> DoubleFloat
make_imaginary_part_function(expr, x)
returns a Lisp functionf
: DoubleFloat->
DoubleFloat defined byf(x) == imag(expr)
. Functionf
is compiled and directly applicable to objects of type DoubleFloat.
- make_real_part_function: (S, Symbol) -> DoubleFloat -> DoubleFloat
make_real_part_function(expr, x)
returns a Lisp functionf
: DoubleFloat->
DoubleFloat defined byf(x) == real(expr)
. Functionf
is compiled and directly applicable to objects of type DoubleFloat.
- makeFloatFunction: (S, Symbol) -> DoubleFloat -> DoubleFloat
makeFloatFunction(expr, x)
returns a Lisp functionf
: DoubleFloat->
DoubleFloat defined byf(x) == expr
. Functionf
is compiled and directly applicable to objects of type DoubleFloat.
- makeFloatFunction: (S, Symbol, Symbol) -> (DoubleFloat, DoubleFloat) -> DoubleFloat
makeFloatFunction(expr, x, y)
returns a Lisp functionf
: (DoubleFloat, DoubleFloat)->
DoubleFloat defined byf(x, y) == expr
. Functionf
is compiled and directly applicable to objects of type (DoubleFloat, DoubleFloat).