Skip to content

isCommutative(ComplexMap) doesn't cache if debugLevel != 0 #3943

@mahrud

Description

@mahrud

I suspect this was added so that for a map that doesn't commute the printed messages tell the user which differential doesn't commute, but it has the result that if debugLevel is positive, for a commutative complex map the cached result is ignored.

isCommutative ComplexMap := Boolean => f -> (
if debugLevel == 0 and f.cache.?isCommutative then
return f.cache.isCommutative;

cc: @mikestillman @ggsmith

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