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.

jlConstructorDocumentation: Symbol -> Void

jlConstructorDocumentation(term) shows the documentation of the constructor term. For example double quote will be removed and the documentation without double quotes of the constructor will be shown. Temporary and trivial implementation that uses BrowserInformation. For example: example{jlConstructorDocumentation(‘AbelianMonoidRing)} will show the documentation of the category AbelianMonoidRing.

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.

jlListCategories: Symbol -> List Symbol

jlListCategories(cat) returns a list of the categories matching the categories cat. Convenience and temporary function.

jlListConstructors: Symbol -> Record(categories: List Symbol, domains: List Symbol, packages: List Symbol)

jlListConstructors(const) returns a list of the categories, domains, and packages that the constructor const belongs to. For example: example{jlListConstructors(‘AbelianMonoidRing)} example{jlListConstructors(“Int*”}

jlListDomains: Symbol -> List Symbol

jlListDomains(dom) returns a list of the domains matching the domains dom. Convenience and temporary function.

jlListPackages: () -> Void

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

jlListPackages: Symbol -> List Symbol

jlListPackages(pack) returns a list of the packages matching the packages pack. Convenience and temporary function.

jlOperationDocumentation: Symbol -> Void

jlOperationDocumentation(op) shows the documentation of the operation op. For example double quote will be removed and the documentation without double quotes of the operation will be shown. Signature part is partially implemented. Temporary and trivial implementation that uses BrowserInformation.

jlPrecompilePackage: String -> Void

jlPrecompilePackage(package) precompiles package in Julia. For example, jlPrecompilePackage(“PyCall”) will precompile the PyCall package.

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.