TPSAInterface

The TPSA package extension should provide overloads for various functions.

TPSAInterface.InitGTPSAType
InitGTPSA{D,DD}

Struct used to define a TPSA using the GTPSA.jl backend.

Defined by TPSAInterface.jl.

Constructors

InitGTPSA{D,DD}(; dynamic_descriptor=nothing)

Fields

  • For static Descriptor resolution:

    • D is the Descriptor
    • DD is Nothing and dynamic_descriptor is nothing
  • For dynamic Descriptor resolution:

    • D == GTPSA.Dynamic
    • DD == Descriptor and dynamic_descriptor is said Descriptor
source
Base.copy!Method

Sets the entire TPS t equal to t1, where t1 may be another TPS or a Number. Promotion is supported; e.g. if t has numtype ComplexF64, and t1 has numtype Float64), calling copy!(t, t1) is allowed

source
TPSAInterface.cutord!Method

Sets 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).

source
TPSAInterface.cycle!Method

Cycles through the nonzero monomial coefficients in the TPS t starting at i. Set i equal to -1 to start at the first nonzero monomial coefficient. Returns the next nonzero monomial coefficient index and will, if provided, set m_ and v_ to the monomial orders and coefficient of the next nonzero monomial coefficient, respectively.

source
TPSAInterface.getiMethod
geti(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.

source
TPSAInterface.maxordMethod

Returns the maximum truncation order of the TPSA. t may be a TPS, TPS Type, or a AbstractTPSAInit.

source
TPSAInterface.ndiffsMethod

Returns the number of variables + parameters in the TPSA. t may be a TPS, TPS Type, or a AbstractTPSAInit.

source
TPSAInterface.nmonosMethod

Returns the number of monomial coefficients in the TPSA. t may be a TPS, TPS Type, or a AbstractTPSAInit.

source
TPSAInterface.seti!Method
seti!(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.

source