Skip to content

New in-place functions #411

@LuEdRaMo

Description

@LuEdRaMo

I noticed there is no method of TaylorSeries.div! to divide a TaylorN by a NumberNotScalar, which would be an equivalent of the following:

function div!(v::Taylor1{T}, a::Taylor1{T}, b::NumberNotSeries,
k::Int) where {T<:Number}
@inbounds v[k] = a[k] / b
return nothing
end

but for a TaylorN.

In addition, as discussed online, it would be helpful to have an in-place function to update only the constant term of an AbstractSeries, something like:

constant_term!(c::Taylor1{T}, a::T) where {T <: NumberNotSeries} = c[0] = a

with analogous methods for Taylor1{Number}, TaylorN, HomogeneousPolynomial, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions