JLUtilityFunctions

jutils.spad line 1 [edit on github]

This package provides different Julia utility functions.

jlAddPackage: String -> Void

jlAddPackage(package) adds package to Julia. For example, jlAddPackage(“PyCall”) will add the PyCall package.

jlBuildPackage: String -> Void

jlBuildPackage(package) builds package in Julia. For example, jlBuildPackage(“PyCall”) will build the PyCall package.

jlDefined?: JLSymbol -> Boolean

jlDefined?(sym) checks whether or not sym is defined in Julia.

jlDefined?: String -> Boolean

jlDefined?(str) checks whether or not str is defined in Julia. For example: jlDefined?(“sin”) will check if sin is defined.

jlEvalString: String -> Boolean

jlEvalString(str) evaluates str in Julia, where the output is a Boolean.

jlEvalString: String -> Integer

jlEvalString(str) evaluates str in Julia, where the output is an Integer.

jlEvalString: String -> JLFloat32

jlEvalString(str) evaluates str in Julia, where the output is a JLFloat32.

jlEvalString: String -> JLFloat64

jlEvalString(str) evaluates str in Julia, where the output is a JLFloat64.

jlEvalString: String -> JLInt64

jlEvalString(str) evaluates str in Julia, where the output is a JLInt64.

jlEvalString: String -> NonNegativeInteger

jlEvalString(str) evaluates str in Julia, where the output is a NonNegativeInteger.

jlEvalString: String -> PositiveInteger

jlEvalString(str) evaluates str in Julia, where the output is a PositiveInteger.

jlEvalString: String -> String

jlEvalString(str) evaluates str in Julia, where the output is a String.

jlEvalString: String -> Void

jlEvalString(str) evaluates str in Julia with no output.

jlGCCollect: () -> Void

jlGCCollect() forces a Julia garbage collector run.

jlGCPackages: () -> Void

jlGCPackages() forces a Julia garbage collector run on all installed packages.

jlImport: String -> Boolean

jlImport(modpackfunc) imports the module, package or function modpackfunc and makes it available. Returns false if it cannot be imported.

jlInclude: String -> Boolean

jlInclude(file.jl) loads and evaluates the content of the Julia file file.jl in the current global scope.

jlInitialize: Boolean -> Boolean

jlInitialize(init) initializes the Julia environment if init is true, otherwise clears the Julia environment. Normally, it should not be used since it is automatically called.

jlListPackages: () -> Void

jlListPackages() displays the status of all installed packages in Julia.

jlRandomString: PositiveInteger -> String

jlRandomString(n) returns a random string of n characters.

jlRemovePackage: String -> Void

jlRemovePackage(package) removes package from Julia. For example, jlRemovePackage(“PyCall”) will remove the PyCall package.

jlSeed!: JLInt64 -> Void

jlSeed!(n) reseeds the Julia random number generator if applicable (Some random number generators don't accept a seed).

jlTestPackage: String -> Void

jlTestPackage(package) tests package in Julia. For example, jlTestPackage(“PyCall”) will test the PyCall package.

jlUpdateAllPackages: () -> Void

jlUpdateAllPackages() updates all packages in Julia.

jlUpdatePackage: String -> Void

jlUpdatePackage(package) updates package in Julia. For example, jlUpdatePackage(“PyCall”) will update the PyCall package.

jlUsing: String -> Boolean

jlUsing(modpack) loads the module or package modpack and makes its exported names available. Returns false if it cannot be loaded.

QQ: Fraction Integer -> NMFraction NMInteger

QQ(q) returns q as a Nemo rational. Convenience function.

ZZ: Integer -> NMInteger

ZZ(i) returns i as a Nemo integer. Convenience function.