JLF32ArrayFunctions¶
jafunctions.spad line 1 [edit on github]
This package provides different JL
utility functions for operations using CPU/GPU supported data types. Internal package.
- jlApplyFunction!: (String, JLComplexF32Vector, JLComplexF32Vector) -> Void
jlApplyFunction!(func, cvec1, cvec2)
applies theJL
functionfunc
tocvec2
and overwritescvec1
with the result. Please note that overwriting is done byJL
and not FriCAS. SeeJL
‘copy!’ for example.
- jlApplyFunction!: (String, JLComplexF32Vector, JLComplexF32Vector, NonNegativeInteger) -> Void
jlApplyFunction!!(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.
- jlApplyFunction!: (String, JLComplexF32Vector, JLFloat32Vector, NonNegativeInteger) -> Void
jlApplyFunction!(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 withJL
‘sqrt’ for example.
- jlApplyFunction!: (String, JLComplexF32Vector, NonNegativeInteger, JLComplexF32Vector, NonNegativeInteger) -> Void
jlApplyFunction!(func, cmat1, cmat2)
applies theJL
functionfunc
tocmat2
and overwritescmat1
with the result. Please note that overwriting is done byJL
and not FriCAS. SeeJL
‘copy!’ or adjoint! for example.
- jlApplyFunction!: (String, JLFloat32Vector, JLComplexF32Vector, NonNegativeInteger) -> Void
jlApplyFunction!(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 withJL
‘real’ or ‘imag’ for example.
- jlApplyFunction!: (String, JLFloat32Vector, JLFloat32Vector) -> Void
jlApplyFunction!(func, vec1, vec2)
applies theJL
functionfunc
tovec2
and overwritesvec1
with the result. Please note that overwriting is done byJL
and not FriCAS. SeeJL
‘copy!’ for example.
- jlApplyFunction!: (String, JLFloat32Vector, JLFloat32Vector, NonNegativeInteger) -> Void
jlApplyFunction!(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 withJL
‘inv’ for example.
- jlApplyFunction!: (String, JLFloat32Vector, NonNegativeInteger, JLFloat32Vector, NonNegativeInteger) -> Void
jlApplyFunction!(func, mat1, mat2)
applies theJL
functionfunc
tomat2
and overwritesmat1
with the result. Please note that overwriting is done byJL
and not FriCAS. SeeJL
‘copy!’ or transpose! for example.
- jlApplyFunction: (String, JLComplexF32Vector) -> JLFloat32
jlApplyFunction(func, cvec)
returns the output value offunc
applied to cvec.
- jlApplyFunction: (String, JLComplexF32Vector) -> Void
jlF32FunctionF32Vec(func, vec) applies func to cvec.
- jlApplyFunction: (String, JLComplexF32Vector, JLFloat32) -> JLFloat32
jlApplyFunction(func, cvec, p)
returns the output value offunc
applied tocvec
with parameterp
.
- jlApplyFunction: (String, JLComplexF32Vector, NonNegativeInteger) -> JLFloat32
jlApplyFunction(func, cmat, nr)
returns the output value offunc
applied tocmat
, internally a vector, where the number of rows isnr
.
- jlApplyFunction: (String, JLComplexF32Vector, NonNegativeInteger) -> Void
jlApplyFunction(func, cmat, nr)
appliesfunc
to the matrix mat, internally a vector, where the numer of rows isnr
.
- jlApplyFunction: (String, JLComplexF32Vector, NonNegativeInteger, JLFloat32) -> JLFloat32
jlApplyFunction(func, cmat, nr, p)
returns the output value offunc
applied tocmat
, internally a vector, where the number of rows isnr
andp
an additional parameter.
- jlApplyFunction: (String, JLFloat32Vector) -> JLFloat32
jlApplyFunction(func, vec)
returns the output value offunc
applied to vec.
- jlApplyFunction: (String, JLFloat32Vector) -> Void
jlFunctionF32Vector(func, vec) applies func to vec.
- jlApplyFunction: (String, JLFloat32Vector, JLFloat32) -> JLFloat32
jlApplyFunction(func, vec, p)
returns the output value offunc
applied tovec
with parameterp
.
- jlApplyFunction: (String, JLFloat32Vector, NonNegativeInteger) -> JLFloat32
jlApplyFunction(func, mat, nr)
returns the output value offunc
applied tomat
, internally a vector, where the number of rows isnr
.
- jlApplyFunction: (String, JLFloat32Vector, NonNegativeInteger) -> Void
jlApplyFunction(func, mat, nr)
appliesfunc
to the matrixmat
, internally a vector, where the numer of rows isnr
.
- jlApplyFunction: (String, JLFloat32Vector, NonNegativeInteger, JLFloat32) -> JLFloat32
jlApplyFunction(func, mat, nr, p)
returns the output value offunc
applied tomat
, internally a vector, where the number of rows isnr
andp
an additional parameter.