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 information about obj if you have About.jl installed in Julia.

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):

M:=nrand(4,4);
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)):

v:=urand01(5)$JLVector(JLFloat)
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.

jlGetJuliaIndex: % -> String

jlGetJuliaIndex(obj) returns the string that allows access to the Julia indexed dictionary index referencing the object obj. Convenience function for use in the interpreter (jlref). For example: jlGetJuliaIndex(df) => “getindex(refs,10)”

jlGetProperty: (%, JLSymbol) -> JLObject

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

jlId: % -> Integer

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

jlimref: String -> %

jlimref(str) evaluates the Julia command str and returns the corresponding FriCAS Julia immutable object wrapped in a Julia RefValue{Any}

jlNames: % -> JLObject

jlNames(obj) returns the names of obj depending of the type of obj.

jlObject: () -> String

jlObject() returns the internal Julia name of the Julia module used. For 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 mutable 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 is implemented at Julia level. Use internally the ‘show’ method. For example:

df:=jdframe nrand(6,3)
jlText(df, "plain")
jlText(df, "html")
jlText(df, "csv")
jlText(df, "latex")
jlType: % -> Symbol

jlType(obj) returns the Julia type of obj.

latex: % -> String

from SetCategory

missing?: % -> Boolean

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

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