JuliaObjectType¶
jobject.spad line 1 [edit on github]
Category for arbitrary Julia objects, more precisely objects that are used within Julia.
- coerce: % -> JuliaObject
coerce(obj)coerceobjto JuliaObject. Convenience function.- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: % -> String
from ConvertibleTo String
- jlAbout: % -> Void
jlAbout(obj)displays Julia informations aboutobjif you have About.jlinstalled in Julia. In the Julia 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 functionfuncwith obj as parameter and returns the result as a FriCAS JuliaObject. For example, using JuliaMatrix(JuliaObjFloat64): example{M:=nrand(4,4);} example{jlApply(“svd”, M::JuliaMatrix(JuliaObjFloat64)).S} should be “equivalent” to svdvals(M)
- jlApply: (String, %, %) -> %
jlApply(func, obj1, obj2)applies the functionfuncwithobj1andobj2as parameters and returns the result as a FriCAS JuliaObject. For example (equivalent to map(cos,v)): example{v:=urand01(5)$JuliaVector(JuliaFloat)} example{jlApply(“map”, “cos”, coerce v)}
- jlApply: (String, %, %, %) -> %
jlApply(func, obj1, obj2, obj3)applies the functionfuncwithobj1,obj2andobj3as parameters and returns the result as a FriCAS JuliaObject.
- jlApply: (String, %, %, %, %) -> %
jlApply(func, obj1, obj2, obj3, obj4)applies the functionfuncwithobj1,obj2,obj3andobj4as parameters and returns the result as a FriCAS JuliaObject.
- jlApply: (String, %, %, %, %, %) -> %
jlApply(func, obj1, obj2, obj3, obj4, obj5)applies the functionfuncwithobj1,obj2,obj3,obj4andobj5as parameters and returns the result as a FriCAS JuliaObject.
- jlDisplay: % -> Void
jlDisplay(v)pretty printsv(àla Julia).
- jlId: % -> JuliaInt64
jlId(obj)returns the Julia indexed dictionary index related to the objectobj.
- jlObject: () -> String
jlObject()returns the internal Julia name of the Julia module used.
- jlRef: % -> SExpression
jlRef(obj)returns the pretty printed internal Lisp representation of the Julia objectobj.
- jlref: String -> %
jlref(str)evaluates the Julia commandstrand returns the corresponding FriCAS Julia object.
- jlType: % -> String
jlType(obj)return the Julia type ofobj.
- latex: % -> String
from SetCategory
- mutable?: % -> Boolean
mutable?(obj)checks whether or notobjis mutable.
- nothing?: % -> Boolean
nothing?(obj)checks whether or notobjis nothing.
- string: % -> String
string(obj)returns the Julia corresponding value of the objectobjas a string. Convenience function.