JLObjectType¶
jobject.spad line 1 [edit on github]
Category for arbitrary JL
objects, more precisely objects that are used within JL
.
- coerce: % -> JLObject
coerce(obj)
coerceobj
to JLObject. Convenience function.- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: % -> String
from ConvertibleTo String
- jlAbout: % -> Void
jlAbout(obj)
displaysJL
informations aboutobj
if you have About.jl
installed inJL
. In theJL
interpreter enter in the package management mode with ‘]’ and issue: pkg> add “https://github.com/tecosaur/About.jl"
- jlApply: (String, %) -> %
jlApply(func, obj)
applies the functionfunc
with obj as parameter and returns the result as a FriCAS JLObject. For example, using JLMatrix(JLObjFloat64
): example{M:=nrand(4,4);} example{jlApply(“svd”, M::JLMatrix(JLObjFloat64)).S} should be “equivalent” to svdvals(M
)
- jlApply: (String, %, %) -> %
jlApply(func, obj1, obj2)
applies the functionfunc
withobj1
andobj2
as parameters and returns the result as a FriCAS JLObject. For example (equivalent to map(cos,v
)): example{v:=urand01(5)$JLVector(JLFloat)} example{jlApply(“map”, “cos”, coerce v)}
- jlApply: (String, %, %, %) -> %
jlApply(func, obj1, obj2, obj3)
applies the functionfunc
withobj1
,obj2
andobj3
as parameters and returns the result as a FriCAS JLObject.
- jlApply: (String, %, %, %, %) -> %
jlApply(func, obj1, obj2, obj3, obj4)
applies the functionfunc
withobj1
,obj2
,obj3
andobj4
as parameters and returns the result as a FriCAS JLObject.
- jlApply: (String, %, %, %, %, %) -> %
jlApply(func, obj1, obj2, obj3, obj4, obj5)
applies the functionfunc
withobj1
,obj2
,obj3
,obj4
andobj5
as parameters and returns the result as a FriCAS JLObject.
- jlDisplay: % -> Void
jlDisplay(v)
pretty printsv
(à
laJL
).
- jlId: % -> JLInt64
jlId(obj)
returns theJL
indexed dictionary index related to the objectobj
.
- jlObject: () -> String
jlObject()
returns the internalJL
name of theJL
module used.
- jlRef: % -> SExpression
jlRef(obj)
returns the pretty printed internal Lisp representation of theJL
objectobj
.
- jlref: String -> %
jlref(str)
evaluates theJL
commandstr
and returns the corresponding FriCASJL
object.
- jlType: % -> String
jlType(obj)
return theJL
type ofobj
.
- latex: % -> String
from SetCategory
- mutable?: % -> Boolean
mutable?(obj)
checks whether or notobj
is mutable.
- nothing?: % -> Boolean
nothing?(obj)
checks whether or notobj
is nothing.
- string: % -> String
string(obj)
returns theJL
corresponding value of the objectobj
as a string. Convenience function.