vars
, params
Creates a vector of TPSs corresponding to each variable/parameter in the GTPSA
Syntax
x = vars([(descriptor|tps)])
xc = complexvars([(descriptor|tps)])
k = params([(descriptor|tps)])
kc = complexparams([(descriptor|tps)])
Description
x = vars()
creates a vector of TPS64
s corresponding to each of the variables in the GTPSA defined by the Descriptor
in GTPSA.desc_current
x = complexvars()
creates a vector of ComplexTPS64
s corresponding to each of the variables in the GTPSA defined by the Descriptor
in GTPSA.desc_current
k = params()
creates a vector of TPS64
s corresponding to each of the parameters in the GTPSA defined by the Descriptor
in GTPSA.desc_current
k = complexparams()
creates a vector of ComplexTPS64
s corresponding to each of the parameters in the GTPSA defined by the Descriptor
in GTPSA.desc_current
Optional Argument
descriptor
tells vars
/params
to create a vector of TPS
s corresponding to each of the variables/parameters in the GTPSA defined by the passed Descriptor
tps
tells vars
/params
to create a vector of TPS
s corresponding to each of the variables/parameters in the GTPSA defined by the Descriptor
of the passed TPS
Examples
julia> GTPSA.show_header=true
true
julia> d1 = Descriptor(3, 5, 2, 5); # 3 vars, 2 params, all to order 5
julia> x1 = vars()
3-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 1 0 0 | 0 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 1 0 | 0 0 ----------------------------------------------------------------- 3: 1.0000000000000000e+00 1 0 0 1 | 0 0
julia> k1 = params()
2-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 0 | 1 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 0 0 | 0 1
julia> d2 = Descriptor(2, 5, 1, 5); # 2 vars, 1 param, all to order 5
julia> x2 = vars()
2-element Vector{TPS64}: ----------------------- # Variables: 2 Maximum order: 5 # Parameters: 1 Parameter order: 5 ----------------------- Index Coefficient Order Exponent --------------------------------------------------------- 1: 1.0000000000000000e+00 1 1 0 | 0 --------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 1 | 0
julia> k2 = params()
1-element Vector{TPS64}: ----------------------- # Variables: 2 Maximum order: 5 # Parameters: 1 Parameter order: 5 ----------------------- Index Coefficient Order Exponent --------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 | 1
julia> k1 = params(d1)
2-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 0 | 1 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 0 0 | 0 1
Documentation
GTPSA.vars
— Functionvars(use::Union{Descriptor,TPS}=GTPSA.desc_current)
Returns a vector of TPS
s corresponding to the variables for the Descriptor
specified by use
. Default value is GTPSA.desc_current
.
Input
use
– (Optional) Specify whichDescriptor
to use, default isGTPSA.desc_current
Output
x
–Vector
containing unitTPS{Float64}
s corresponding to each variable
GTPSA.complexvars
— Functioncomplexvars(use::Union{Descriptor,TPS}=GTPSA.desc_current)
Returns a vector of ComplexTPS64
s corresponding to the variables for the Descriptor
specified by use
. Default value is GTPSA.desc_current
.
Input
use
– (Optional) Specify whichDescriptor
to use, default isGTPSA.desc_current
Output
x
–Vector
containing unitComplexTPS64
s corresponding to each variable
GTPSA.params
— Functionparams(use::Union{Descriptor,TPS}=GTPSA.desc_current)
Returns a vector of TPS
s corresponding to the parameters for the Descriptor
specified by use
. Default value is GTPSA.desc_current
.
Input
use
– (Optional) Specify whichDescriptor
to use, default isGTPSA.desc_current
Output
x
–Vector
containing unitTPS{Float64}
s corresponding to each parameters
GTPSA.complexparams
— Functioncomplexparams(use::Union{Descriptor,TPS}=GTPSA.desc_current)
Returns a vector of ComplexTPS64
s corresponding to the parameters for the Descriptor
specified by use
. Default value is GTPSA.desc_current
.
Input
use
– (Optional) Specify whichDescriptor
to use, default isGTPSA.desc_current
Output
x
–Vector
containing unitComplexTPS64
s corresponding to each parameters