Skip to content

StackOverflowError for Vector{AbstractMonomialLike} #149

@kbarros

Description

@kbarros
using DynamicPolynomials

@polyvar x
a = x^2
b = x

 # This runs without error
randn(2, 2) * [a, b]

# This throws StackOverflowError
randn(2, 2) * [p for p in (a, b)]

# The importance difference seems to be these types
@assert typeof([a, b]) == Vector{Monomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, Graded{LexOrder}}}
@assert typeof([p for p in (a, b)]) == Vector{AbstractMonomialLike}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions