Changes between Initial Version and Version 2 of Ticket #30288


Ignore:
Timestamp:
08/04/20 21:51:50 (4 months ago)
Author:
gh-mjungmath
Comment:

New commits:

286d3c6FreeModuleTensor, Vector: Subclass a new class ModuleElementWithMutability
9df3d22sage.tensor.modules: Make all zero() and one() elements immutable
4373ea2FreeModuleTensor: Replace special casing of the immutable zero by is_immutable
a2ee8beModuleElementWithMutability.is_immutable, is_mutable: Change def to cpdef
c80922bTrac #30288: Merge branch 't/30181/immutable_elements_of_freemoduletensor' into t/30288/immutability_for_sections
7a9feb6Trac #30288: _is_zero attribute added + copy_from added + unsafe assignment added + immutability added

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30288

    • Property Status changed from new to needs_review
    • Property Cc egourgoulhon tscrim mkoeppe added
    • Property Branch changed from to u/gh-mjungmath/immutability_for_sections
    • Property Keywords immutable added
    • Property Commit changed from to 7a9feb613d60eca7b431b9068dd87d8668dc3b0e
  • Ticket #30288 – Description

    initial v2  
     1This is the immutability ticket for sections (cf. #30261).
     2
     3In this ticket we also add most features that have been developed in the last Sage versions and not been adapted to sections yet. This includes:
     4
     5- `_is_zero` attribute
     6- unsafe assignments
     7- `copy_from` method