JLUtilityFunctionsΒΆ
jutils.spad line 1 [edit on github]
This package provides different Julia utility functions.
- jlDocumentation: Symbol -> Void
jlDocumentation(op)shows the documentation of the operationop. Trivial implementation.
- 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 an Non Negative Integer.
- jlEvalString: String -> PositiveInteger
jlEvalString(str)evaluatesstrin Julia, where the output is an Positive Integer.
- jlEvalString: String -> String
jlEvalString(str)evaluatesstrin Julia, where the output is a String.
- jlGCCollect: () -> Void
jlGCCollect()forces a Julia garbage collector run.
- jlImport: String -> Boolean
jlImport(modpackfunc)imports the module, package or functionmodpackfuncand makes it available. Returnsfalseif it can not 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.
- jlRandomString: PositiveInteger -> String
jlRandomString(n)returns a random string ofncharacters.
- jlSeed!: JLInt64 -> Void
jlSeed!(n)reseeds the Julia random number generator if applicable (Some random number generators don'taccept a seed).
- jlUsing: String -> Boolean
jlUsing(modpack)loads the module or packagemodpackand makes its exported names available. Returnsfalseif it can not be loaded.
- QQ: Fraction Integer -> NMFraction NMInteger
QQ(q)returnsqas a Nemo rational. Convenience function.