KernelCategory S¶
kl.spad line 226 [edit on github]
S: Comparable
A kernel over a set S
is an operator applied to a given list of arguments from S
.
- <=: (%, %) -> Boolean
from PartialOrder
- <: (%, %) -> Boolean
from PartialOrder
- >=: (%, %) -> Boolean
from PartialOrder
- >: (%, %) -> Boolean
from PartialOrder
- argument: % -> List S
argument(op(a1, ..., an))
returns[a1, ..., an]
.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: % -> InputForm if S has ConvertibleTo InputForm
from ConvertibleTo InputForm
- convert: % -> Pattern Float if S has ConvertibleTo Pattern Float
from ConvertibleTo Pattern Float
- convert: % -> Pattern Integer if S has ConvertibleTo Pattern Integer
from ConvertibleTo Pattern Integer
- height: % -> NonNegativeInteger
height(k)
returns the nesting level ofk
.
- is?: (%, BasicOperator) -> Boolean
is?(op(a1, ..., an), f)
tests if op =f
.
- kernel: (BasicOperator, List S, NonNegativeInteger) -> %
kernel(op, [a1, ..., an], m)
returns the kernelop(a1, ..., an)
of nesting levelm
. Error: ifop
isk
-ary for somek
not equal ton
.
- kernel: Symbol -> %
kernel(x)
returnsx
viewed as a kernel.
- latex: % -> String
from SetCategory
- max: (%, %) -> %
from OrderedSet
- min: (%, %) -> %
from OrderedSet
- name: % -> Symbol
name(op(a1, ..., an))
returns the name of op.
- operator: % -> BasicOperator
operator(op(a1, ..., an))
returns the operator op.
- smaller?: (%, %) -> Boolean
from Comparable
- symbolIfCan: % -> Union(Symbol, failed)
symbolIfCan(k)
returnsk
viewed as a symbol ifk
is a symbol, and “failed” otherwise.
ConvertibleTo InputForm if S has ConvertibleTo InputForm
ConvertibleTo Pattern Float if S has ConvertibleTo Pattern Float
ConvertibleTo Pattern Integer if S has ConvertibleTo Pattern Integer