Skip to content

compress graph bug #23

@jarlebring

Description

@jarlebring

It seems an compression is not taking place as it should:

julia> g=gen_degopt_poly(Degopt([([0; 1],[0; 1])],[2 ;3; 4.0]))[1];
julia> compress_graph!(g)
Zero coeff can be removed: Bb2 because of coeff 1 is 0.0
Zero coeff can be removed: Ba2 because of coeff 1 is 0.0
julia> compress_graph!(g)
Zero coeff can be removed: Bb2 because of coeff 1 is 0.0
Zero coeff can be removed: Ba2 because of coeff 1 is 0.0
julia> g.operations[:Ba2]
:lincomb
julia> g.parents[:Ba2]
(:I, :A)
julia> g.coeffs[:Ba2]
(0.0, 1.0)

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