JLObjectType

jobject.spad line 3 [edit on github]

Category for arbitrary Julia objects, more precisely objects that are used within Julia.

=: (%, %) -> Boolean

from BasicType

~=: (%, %) -> Boolean

from BasicType

coerce: % -> JLObject

coerce(obj) coerces obj to JLObject. Convenience function.

coerce: % -> OutputForm

from CoercibleTo OutputForm

convert: % -> String

from ConvertibleTo String

jlAbout: % -> Void

jlAbout(obj) displays Julia informations about obj if you have About.jl installed 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 function func 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, %, %) -> JLObject

jlApply(func, obj1, obj2) applies the function func with obj1 and obj2 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, %, %, %) -> JLObject

jlApply(func, obj1, obj2, obj3) applies the function func with obj1, obj2 and obj3 as parameters and returns the result as a FriCAS JLObject.

jlApply: (String, %, %, %, %) -> JLObject

jlApply(func, obj1, obj2, obj3, obj4) applies the function func with obj1, obj2, obj3 and obj4 as parameters and returns the result as a FriCAS JLObject.

jlApply: (String, %, %, %, %, %) -> JLObject

jlApply(func, obj1, obj2, obj3, obj4, obj5) applies the function func with obj1, obj2, obj3, obj4 and obj5 as parameters and returns the result as a FriCAS JLObject.

jlDisplay: % -> Void

jlDisplay(v) pretty prints v (à la Julia).

jlDump: JLObject -> Void

jlDump(obj) dumps (shows) the Julia object (internal structure with type).

jlFieldNames: % -> JLObject

jlFieldNames(obj) returns the field names of obj.

jlGetField: (%, JLSymbol) -> JLObject

jlGetField(obj, sym) returns the property/element sym of obj.

jlGetProperty: (%, JLSymbol) -> JLObject

jlGetProperty(obj, sym) returns the property/element sym of obj.

jlId: % -> JLInt64

jlId(obj) returns the Julia indexed dictionary index referencing the object obj.

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 of obj.

jlRef: % -> SExpression

jlRef(obj) returns the internal Lisp representation of the Julia object obj.

jlref: String -> %

jlref(str) evaluates the Julia command str and returns the corresponding FriCAS Julia object.

jlText: (%, String) -> List String

jlText(obj, mimest) returns the text representation of obj as 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 of obj.

latex: % -> String

from SetCategory

mutable?: % -> Boolean

mutable?(obj) checks whether or not obj is mutable.

nothing?: % -> Boolean

nothing?(obj) checks whether or not obj is nothing.

string: % -> String

from JLType

BasicType

CoercibleTo OutputForm

ConvertibleTo String

JLType

SetCategory