JuliaUtilityFunctions¶
jutils.spad line 1 [edit on github]
This package provides different Julia utility functions.
- jlApprox?: (JuliaComplexF32, JuliaComplexF32) -> Boolean
jlApprox?(x,y)
computes inexact equality comparison with default parameters. Two numbers compare equal if their relative distance or their absolute distance is within tolerance bounds. Applied component-wise.
- jlApprox?: (JuliaComplexF64, JuliaComplexF64) -> Boolean
jlApprox?(x,y)
computes inexact equality comparison with default parameters. Two numbers compare equal if their relative distance or their absolute distance is within tolerance bounds. Applied component-wise.
- jlBoolFunction2F32: (String, JuliaFloat32, JuliaFloat32) -> Boolean
jlBoolFunction2F32
- jlBoolFunction2F64: (String, JuliaFloat64, JuliaFloat64) -> Boolean
jlBoolFunction2F64
- jlDefined?: JuliaSymbol -> Boolean
jlDefined?(sym)
checks whether or notsym
is defined in Julia.
- jlEvalString: String -> Boolean
jlEvalString(str)
evaluatesstr
in Julia, where the output is a Boolean.
- jlEvalString: String -> Integer
jlEvalString(str)
evaluatesstr
in Julia, where the output is an Integer.
- jlEvalString: String -> JuliaFloat64
jlEvalString(str)
evaluatesstr
in Julia, where the output is aJuliaFloat64
.
- jlEvalString: String -> JuliaInt64
jlEvalString(str)
evaluatesstr
in Julia, where the output is aJuliaInt64
.
- jlEvalString: String -> NonNegativeInteger
jlEvalString(str)
evaluatesstr
in Julia, where the output is an Non Negative Integer.
- jlEvalString: String -> PositiveInteger
jlEvalString(str)
evaluatesstr
in Julia, where the output is an Positive Integer.
- jlEvalString: String -> String
jlEvalString(str)
evaluatesstr
in Julia, where the output is a String.
- jlF32Function2F32: (String, JuliaFloat32, JuliaFloat32) -> JuliaFloat32
jlF32Function2F32(func,x,y)
- jlF32Function3F32: (String, JuliaFloat32, JuliaFloat32, JuliaFloat32) -> JuliaFloat32
jlF32Function3F32(func, x, y, z)
- jlF32FunctionCF32Mat: (String, JuliaComplexF32Vector, NonNegativeInteger) -> JuliaFloat32
jlF32FunctionF32Mat(func, cmat,
nr
) returns the output value of func applied to cmat, internally a vector, where the number of rows isnr
.
- jlF32FunctionCF32MatF32: (String, JuliaComplexF32Vector, NonNegativeInteger, JuliaFloat32) -> JuliaFloat32
jlF32FunctionF32Mat(func, cmat,
nr
,p
) returns the output value of func applied to cmat, internally a vector, where the number of rows isnr
andp
an additional parameter.
- jlF32FunctionCF32Vec: (String, JuliaComplexF32Vector) -> JuliaFloat32
jlF32FunctionCF32Vec(func, cvec)
returns the output value offunc
applied to cvec.
- jlF32FunctionCF32VecF32: (String, JuliaComplexF32Vector, JuliaFloat32) -> JuliaFloat32
jlF32FunctionCF32Vec(func, cvec,
p
) returns the output value of func applied to cvec with parameterp
.
- jlF32FunctionF32: (String, JuliaFloat32) -> JuliaFloat32
jlF32FunctionF32(func,x)
- jlF32FunctionF32I64: (String, JuliaFloat32, JuliaInt64) -> JuliaFloat32
jlF32FunctionF32I64(func,x,i)
- jlF32FunctionF32Mat: (String, JuliaFloat32Vector, NonNegativeInteger) -> JuliaFloat32
jlF32FunctionF32Mat(func, mat, nr)
returns the output value offunc
applied tomat
, internally a vector, where the number of rows isnr
.
- jlF32FunctionF32MatF32: (String, JuliaFloat32Vector, NonNegativeInteger, JuliaFloat32) -> JuliaFloat32
jlF32FunctionF32Mat(func, mat,
nr
,p
) returns the output value of func applied to mat, internally a vector, where the number of rows isnr
andp
an additional parameter.
- jlF32FunctionF32Vec: (String, JuliaFloat32Vector) -> JuliaFloat32
jlF32FunctionCF32Vec(func, vec) returns the output value of func applied to vec.
- jlF32FunctionF32VecF32: (String, JuliaFloat32Vector, JuliaFloat32) -> JuliaFloat32
jlF32FunctionCF32Vec(func, vec,
p
) returns the output value of func applied to vec with parameterp
.
- jlF32FunctionI64F32: (String, JuliaInt64, JuliaFloat32) -> JuliaFloat32
jlF32FunctionI64F32(func,i,x)
- jlF64Function2F64: (String, JuliaFloat64, JuliaFloat64) -> JuliaFloat64
jlF64Function2F64(func,x,y)
- jlF64Function3F64: (String, JuliaFloat64, JuliaFloat64, JuliaFloat64) -> JuliaFloat64
jlF64Function3F64(func, x, y, z)
- jlF64FunctionCF64Mat: (String, JuliaComplexF64Vector, NonNegativeInteger) -> JuliaFloat64
jlF64FunctionF64Mat(func, cmat,
nr
) returns the output value of func applied to cmat, internally a vector, where the number of rows isnr
.
- jlF64FunctionCF64MatF64: (String, JuliaComplexF64Vector, NonNegativeInteger, JuliaFloat64) -> JuliaFloat64
jlF64FunctionF64Mat(func, cmat,
nr
,p
) returns the output value of func applied to cmat, internally a vector, where the number of rows isnr
andp
an additional parameter.
- jlF64FunctionCF64Vec: (String, JuliaComplexF64Vector) -> JuliaFloat64
jlF64FunctionCF64Vec(func, cvec)
returns the output value offunc
applied to cvec.
- jlF64FunctionCF64VecF64: (String, JuliaComplexF64Vector, JuliaFloat64) -> JuliaFloat64
jlF64FunctionCF64Vec(func, cvec,
p
) returns the output value of func applied to cvec with parameterp
.
- jlF64FunctionF64: (String, JuliaFloat64) -> JuliaFloat64
jlF64FunctionF64(func,x)
- jlF64FunctionF64I64: (String, JuliaFloat64, JuliaInt64) -> JuliaFloat64
jlF64FunctionF64I64(func,x,i)
- jlF64FunctionF64Mat: (String, JuliaFloat64Vector, NonNegativeInteger) -> JuliaFloat64
jlF64FunctionF64Mat(func, mat, nr)
returns the output value offunc
applied tomat
, internally a vector, where the number of rows isnr
.
- jlF64FunctionF64MatF64: (String, JuliaFloat64Vector, NonNegativeInteger, JuliaFloat64) -> JuliaFloat64
jlF64FunctionF64Mat(func, mat,
nr
,p
) returns the output value of func applied to mat, internally a vector, where the number of rows isnr
andp
an additional parameter.
- jlF64FunctionF64Vec: (String, JuliaFloat64Vector) -> JuliaFloat64
jlF64FunctionCF64Vec(func, vec) returns the output value of func applied to vec.
- jlF64FunctionF64VecF64: (String, JuliaFloat64Vector, JuliaFloat64) -> JuliaFloat64
jlF64FunctionCF64Vec(func, vec,
p
) returns the output value of func applied to vec with parameterp
.
- jlF64FunctionI64F64: (String, JuliaInt64, JuliaFloat64) -> JuliaFloat64
jlF64FunctionI64F64(func,i,x)
- jlFunction2CF32Mat!: (String, JuliaComplexF32Vector, NonNegativeInteger, JuliaComplexF32Vector, NonNegativeInteger) -> Void
jlFunction2CF32Mat(func,
cmat1
,cmat2
) applies the Julia function func tocmat2
that overwritescmat1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ or adjoint! for example.
- jlFunction2CF32Vec!: (String, JuliaComplexF32Vector, JuliaComplexF32Vector) -> Void
jlFunction2CF32Vec(func,
cvec1
,cvec2
) applies the Julia function func tocvec2
that overwritescvec1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ for example.
- jlFunction2CF64Mat!: (String, JuliaComplexF64Vector, NonNegativeInteger, JuliaComplexF64Vector, NonNegativeInteger) -> Void
jlFunction2CF64Mat!(func, cmat1, cmat2)
applies the Julia functionfunc
tocmat2
that overwritescmat1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ or adjoint! for example.
- jlFunction2CF64Vec!: (String, JuliaComplexF64Vector, JuliaComplexF64Vector) -> Void
jlFunction2CF64Vec!(func, cvec1, cvec2)
applies the Julia functionfunc
tocvec2
that overwritescvec1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ for example.
- jlFunction2F32: (String, JuliaFloat32, JuliaFloat32) -> Void
jlFunction2F32(func,x,y)
- jlFunction2F32Mat!: (String, JuliaFloat32Vector, NonNegativeInteger, JuliaFloat32Vector, NonNegativeInteger) -> Void
jlFunction2F32Mat!(func, mat1, mat2)
applies the Julia functionfunc
tomat2
that overwritesmat1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ or transpose! for example.
- jlFunction2F32Vec!: (String, JuliaFloat32Vector, JuliaFloat32Vector) -> Void
jlFunction2F32Vec(func,
vec1
,vec2
) applies the Julia function func tovec2
that overwritesvec1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ for example.
- jlFunction2F64: (String, JuliaFloat64, JuliaFloat64) -> Void
jlFunction2F64(func,x,y)
- jlFunction2F64Mat!: (String, JuliaFloat64Vector, NonNegativeInteger, JuliaFloat64Vector, NonNegativeInteger) -> Void
jlFunction2F64Mat!(func, mat1, mat2)
applies the Julia functionfunc
tomat2
that overwritesmat1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ or transpose! for example.
- jlFunction2F64Vec!: (String, JuliaFloat64Vector, JuliaFloat64Vector) -> Void
jlFunction2F64Vec!(func, vec1, vec2)
applies the Julia functionfunc
tovec2
that overwritesvec1
with the result. Please note that the overwriting is done by Julia and not FriCAS. See Julia ‘copy!’ for example.
- jlFunction3F32: (String, JuliaFloat32, JuliaFloat32, JuliaFloat32) -> Void
jlFunction3F32(func,x,y,z)
- jlFunction3F64: (String, JuliaFloat64, JuliaFloat64, JuliaFloat64) -> Void
jlFunction3F64(func,x,y,z)
- jlFunctionCF32ArrayCF32Mat: (String, JuliaComplexF32Vector, JuliaComplexF32Vector, NonNegativeInteger) -> NonNegativeInteger
jlFunctionF32ArrayCF32Mat(func, carray, cmat,
nr
) applies the function func to the matrix cmat and returns the result in carray. It is FriCAS that puts, at theC
level, the resulting matrix in carray.
- jlFunctionCF32ArrayF32Mat: (String, JuliaComplexF32Vector, JuliaFloat32Vector, NonNegativeInteger) -> Void
jlFunctionCF32ArrayF32Mat(func, carray, mat, nr)
applies the functionfunc
to the matrixmat
and returns the result incarray
. It is FriCAS that puts, at theC
level, the resulting matrix incarray
. Can be used with Julia ‘sqrt’ for example.
- jlFunctionCF32Mat: (String, JuliaComplexF32Vector, NonNegativeInteger) -> Void
jlFunctionF32Mat(func, cmat,
nr
) applies func to the matrix mat, internally a vector, where the numer of rows isnr
.
- jlFunctionCF32Vec: (String, JuliaComplexF32Vector) -> Void
jlF32FunctionF32Vec(func, vec) applies func to cvec.
- jlFunctionCF64ArrayCF64Mat: (String, JuliaComplexF64Vector, JuliaComplexF64Vector, NonNegativeInteger) -> NonNegativeInteger
jlFunctionF64ArrayCF64Mat(func, carray, cmat,
nr
) applies the function func to the matrix cmat and returns the result in carray. It is FriCAS that puts, at theC
level, the resulting matrix in carray.
- jlFunctionCF64ArrayF64Mat: (String, JuliaComplexF64Vector, JuliaFloat64Vector, NonNegativeInteger) -> Void
jlFunctionCF64ArrayF64Mat(func, carray, mat, nr)
applies the functionfunc
to the matrixmat
and returns the result incarray
. It is FriCAS that puts, at theC
level, the resulting matrix incarray
. Can be used with Julia ‘sqrt’ for example.
- jlFunctionCF64Mat: (String, JuliaComplexF64Vector, NonNegativeInteger) -> Void
jlFunctionF64Mat(func, cmat,
nr
) applies func to the matrix mat, internally a vector, where the numer of rows isnr
.
- jlFunctionCF64Vec: (String, JuliaComplexF64Vector) -> Void
jlF64FunctionF64Vec(func, vec) applies func to cvec.
- jlFunctionF32: (String, JuliaFloat32) -> Void
jlFunctionF32(func,x)
- jlFunctionF32ArrayCF32Mat: (String, JuliaFloat32Vector, JuliaComplexF32Vector, NonNegativeInteger) -> Void
jlFunctionF32ArrayCF32Mat(func, array, cmat, nr)
applies the functionfunc
to the matrixcmat
and returns the result inarray
. It is FriCAS that puts, at theC
level, the resulting matrix inarray
. Can be used with Julia ‘real’ or ‘imag’ for example.
- jlFunctionF32ArrayF32Mat: (String, JuliaFloat32Vector, JuliaFloat32Vector, NonNegativeInteger) -> Void
jlFunctionF32ArrayF32Mat(func, array, mat, nr)
applies the functionfunc
to the matrixmat
and returns the result inarray
. It is FriCAS that puts, at theC
level, the resulting matrix inarray
. Can be used with Julia ‘inv’ for example.
- jlFunctionF32Mat: (String, JuliaFloat32Vector, NonNegativeInteger) -> Void
jlFunctionF32Mat(func, mat, nr)
appliesfunc
to the matrixmat
, internally a vector, where the numer of rows isnr
.
- jlFunctionF32Vec: (String, JuliaFloat32Vector) -> Void
jlFunctionF32Vector(func, vec) applies func to vec.
- jlFunctionF64: (String, JuliaFloat64) -> Void
jlFunctionF64(func,x)
- jlFunctionF64ArrayCF64Mat: (String, JuliaFloat64Vector, JuliaComplexF64Vector, NonNegativeInteger) -> Void
jlFunctionF64ArrayCF64Mat(func, array, cmat, nr)
applies the functionfunc
to the matrixcmat
and returns the result inarray
. It is FriCAS that puts, at theC
level, the resulting matrix inarray
. Can be used with Julia ‘real’ or ‘imag’ for example.
- jlFunctionF64ArrayF64Mat: (String, JuliaFloat64Vector, JuliaFloat64Vector, NonNegativeInteger) -> Void
jlFunctionF64ArrayF64Mat(func, array, mat, nr)
applies the functionfunc
to the matrixmat
and returns the result inarray
. It is FriCAS that puts, at theC
level, the resulting matrix inarray
. Can be used with Julia ‘inv’ for example.
- jlFunctionF64Mat: (String, JuliaFloat64Vector, NonNegativeInteger) -> Void
jlFunctionF64Mat(func, mat, nr)
appliesfunc
to the matrixmat
, internally a vector, where the numer of rows isnr
.
- jlFunctionF64Vec: (String, JuliaFloat64Vector) -> Void
jlFunctionF64Vector(func, vec) applies func to vec.
- jlI64FunctionF32: (String, JuliaFloat32) -> JuliaInt64
jlI64FunctionF32(func,x)
- jlI64FunctionF64: (String, JuliaFloat64) -> JuliaInt64
jlI64FunctionF64(func,x)
- jlImport: String -> Boolean
jlImport(modpackfunc)
imports the module, package or functionmodpackfunc
and makes its exported name(s
) available. Returnsfalse
if it can not be imported.
- jlInclude: String -> Boolean
jlInclude(file.jl)
loads and evaluates the content of the Julia file file.jl
in the current global scope.