TPSAInterface
The TPSA package extension should provide overloads for the following functions:
TPSAInterface.is_tps
— FunctionReturns TPSAInterface.IsTPS() if
tis a TPS, else
TPSAInterface.IsNotTPS().
TPSAInterface.is_tps_type
— FunctionReturns TPSAInterface.IsTPSType() if
tis a TPS type, else
TPSAInterface.IsNotTPSType().
TPSAInterface.numtype
— FunctionReturns the number type of the monomial coefficients of the TPS. t
may be a TPS or TPS Type
.
TPSAInterface.nvars
— FunctionReturns the number of variables in the TPSA. t
may be a TPS or TPS Type
.
TPSAInterface.nparams
— FunctionReturns the number of parameters in the TPSA. t
may be a TPS or TPS Type
.
TPSAInterface.ndiffs
— FunctionReturns the number of variables + parameters in the TPSA. t
may be a TPS or TPS Type
.
TPSAInterface.maxord
— FunctionReturns the maximum truncation order of the TPSA. t
may be a TPS or TPS Type
.
TPSAInterface.numcoefs
— FunctionReturns the number of monomial coefficients in the TPSA. t
may be a TPS or TPS Type
.
TPSAInterface.scalar
— FunctionReturns the zeroth order (scalar) part of the TPS t
.
TPSAInterface.norm_tps
— FunctionReturns a norm of the passed TPS t
including all monomial coefficients.
TPSAInterface.clear!
— FunctionSets all monomial coefficients in t
equal to 0.
TPSAInterface.geti
— Functiongeti(t, i::Integer)
Gets the i
-th monomial coefficient in the TPS t
, where i=0
specifies the scalar part, and the monomials are sorted by order.
TPSAInterface.getm
— Functiongetm(t, mono::AbstractArray{<:Integer})
Gets the coefficient of the monomial with orders mono
.
TPSAInterface.seti!
— Functionseti!(t, v, i::Integer)
Sets the i
-th monomial coefficient in the TPS t
to v
, where i=0
specifies the scalar part, and the monomials are sorted by order.
TPSAInterface.setm!
— Functionsetm!(t, v, mono::AbstractArray{<:Integer})
Sets the coefficient of the monomial with orders mono
to v
.
TPSAInterface.copy!
— FunctionSets the entire TPS t
equal to t1
, where t1
may be another TPS or a Number
.
TPSAInterface.add!
— FunctionSets the TPS t
equal to a + b
TPSAInterface.sub!
— FunctionSets the TPS t
equal to a - b
TPSAInterface.mul!
— FunctionSets the TPS t
equal to a * b
TPSAInterface.div!
— FunctionSets the TPS t
equal to a / b
TPSAInterface.pow!
— FunctionSets the TPS t
equal to a ^ b
TPSAInterface.getord!
— FunctionSets t
equal to the homogenous polynomial of order ord
in t1
.
TPSAInterface.cutord!
— FunctionSets t
equal to t1
with monomials at order ord
and above removed. Or, if ord
is negative, will remove monomials with orders at and below abs(ord)
.
TPSAInterface.deriv!
— FunctionSets t
equal to the derivative of t1
with respect to the i
-th differential.
TPSAInterface.inv!
— FunctionSets the map m
equal to the inverse of the map m1
, ignoring any scalar part.
TPSAInterface.compose!
— FunctionSets m
equal to m2 ∘ m1
where m1
and/or m2
may be TPS types or arrays of TPS types.