JLObjectType¶
jobject.spad line 3 [edit on github]
Category for arbitrary Julia objects, more precisely objects that are used within Julia.
- coerce: % -> JLObject
coerce(obj)coercesobjto JLObject. 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, %) -> JLObject
jlApply(func, obj)applies the functionfuncwith 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, %, %) -> JLObject
jlApply(func, obj1, obj2)applies the functionfuncwithobj1andobj2as 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, %, %, %) -> JLObject
jlApply(func, obj1, obj2, obj3)applies the functionfuncwithobj1,obj2andobj3as parameters and returns the result as a FriCAS JLObject.
- jlApply: (String, %, %, %, %) -> JLObject
jlApply(func, obj1, obj2, obj3, obj4)applies the functionfuncwithobj1,obj2,obj3andobj4as parameters and returns the result as a FriCAS JLObject.
- jlApply: (String, %, %, %, %, %) -> JLObject
jlApply(func, obj1, obj2, obj3, obj4, obj5)applies the functionfuncwithobj1,obj2,obj3,obj4andobj5as parameters and returns the result as a FriCAS JLObject.
- jlDisplay: % -> Void
jlDisplay(v)pretty printsv(àla Julia).
- jlFieldNames: % -> JLObject
jlFieldNames(obj)returns the field names ofobj.
- jlGetProperty: (%, JLSymbol) -> JLObject
jlGetProperty(obj, sym)returns the property/elementsymofobj.
- jlId: % -> JLInt64
jlId(obj)returns the Julia indexed dictionary index referencing the objectobj.
- jlObject: () -> String
jlObject()returns the internal Julia name of the Julia module used. For example: example{jlObject()$NMUnivariatePolynomial(NINT,’x)}
- jlPropertyNames: % -> JLObject
jlPropertyNames(obj)returns the property/element names ofobj.
- jlRef: % -> SExpression
jlRef(obj)returns the internal Lisp representation of the Julia objectobj.
- jlref: String -> %
jlref(str)evaluates the Julia commandstrand returns the corresponding FriCAS Julia object.
- jlText: (%, String) -> List String
jlText(obj, mimest)returns the text representation ofobjas a list of String lines with mime subtype mimest, for example “plain” for “text/plain” or “html” for “text/html” if implemented at Julia level. Use internally the ‘show’ method. For example: example{df:=jdframe nrand(6,3)} example{jlText(df, “plain”)} example{jlText(df, “html”)} example{jlText(df, “csv”)} example{jlText(df, “latex”)}
- jlType: % -> String
jlType(obj)returns 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.