JLUtilityFunctions¶
jutils.spad line 1 [edit on github]
This package provides different Julia utility functions.
- jlAddPackage: String -> Void
jlAddPackage(package)addspackageto Julia. For example, jlAddPackage(“PyCall”) will add the PyCallpackage.
- jlBuildPackage: String -> Void
jlBuildPackage(package)buildspackagein Julia. For example, jlBuildPackage(“PyCall”) will build the PyCallpackage.
- jlConstructorDocumentation: Symbol -> Void
jlConstructorDocumentation(term)shows the documentation of the constructorterm. 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?: String -> Boolean
jlDefined?(str)checks whether or notstris defined in Julia. For example: jlDefined?(“sin”) will check if sin is defined.
- jlEvalString: String -> Boolean
jlEvalString(str)evaluatesstrin Julia, where the output is a Boolean.
- jlEvalString: String -> Integer
jlEvalString(str)evaluatesstrin Julia, where the output is an Integer.
- jlEvalString: String -> JLFloat32
jlEvalString(str)evaluatesstrin Julia, where the output is aJLFloat32.
- jlEvalString: String -> JLFloat64
jlEvalString(str)evaluatesstrin Julia, where the output is aJLFloat64.
- jlEvalString: String -> JLInt64
jlEvalString(str)evaluatesstrin Julia, where the output is aJLInt64.
- jlEvalString: String -> NonNegativeInteger
jlEvalString(str)evaluatesstrin Julia, where the output is a NonNegativeInteger.
- jlEvalString: String -> PositiveInteger
jlEvalString(str)evaluatesstrin Julia, where the output is a PositiveInteger.
- jlEvalString: String -> String
jlEvalString(str)evaluatesstrin Julia, where the output is a String.
- 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 functionmodpackfuncand makes it available. Returnsfalseif it cannot be imported.
- jlInclude: String -> Boolean
jlInclude(file.jl)loads and evaluates the content of the Julia file file.jlin the current global scope.
- jlInitialize: Boolean -> Boolean
jlInitialize(init)initializes the Julia environment ifinitistrue, 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 categoriescat. 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 constructorconstbelongs to. For example: example{jlListConstructors(‘AbelianMonoidRing)} example{jlListConstructors(“Int*”}
- jlListDomains: Symbol -> List Symbol
jlListDomains(dom)returns a list of the domains matching the domainsdom. 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 packagespack. Convenience and temporary function.
- jlOperationDocumentation: Symbol -> Void
jlOperationDocumentation(op)shows the documentation of the operationop. 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)precompilespackagein Julia. For example, jlPrecompilePackage(“PyCall”) will precompile the PyCallpackage.
- jlRandomString: PositiveInteger -> String
jlRandomString(n)returns a random string ofncharacters.
- jlRemovePackage: String -> Void
jlRemovePackage(package)removespackagefrom Julia. For example, jlRemovePackage(“PyCall”) will remove the PyCallpackage.
- jlSeed!: JLInt64 -> Void
jlSeed!(n)reseeds the Julia random number generator if applicable (Some random number generators don'taccept a seed).
- jlTestPackage: String -> Void
jlTestPackage(package)testspackagein Julia. For example, jlTestPackage(“PyCall”) will test the PyCallpackage.
- jlUpdateAllPackages: () -> Void
jlUpdateAllPackages()updates all packages in Julia.
- jlUpdatePackage: String -> Void
jlUpdatePackage(package)updatespackagein Julia. For example, jlUpdatePackage(“PyCall”) will update the PyCallpackage.
- jlUsing: String -> Boolean
jlUsing(modpack)loads the module or packagemodpackand makes its exported names available. Returnsfalseif it cannot be loaded.
- QQ: Fraction Integer -> NMFraction NMInteger
QQ(q)returnsqas a Nemo rational. Convenience function.