Skip to content

ADR Suggestion: DescriptorArray #103

@elindgren

Description

@elindgren

Discussed in #95

DescriptorArray should be container for holding a set of independent Descriptors, built on scipp.Variables. The class shall extend from DescriptorBase, and implements the following dunder methods (including their reverse operations)

  • Add
  • Sub
  • Mul
  • truediv
  • pow
  • abs
  • neg
  • getitem

Additionally, the following convenience functions shall be implemented

  • Sum
  • Trace

Note that we also want to add matrix multiplication functionality to DescriptorArray, but this is currently blocked by scipp not supporting general linear algebra operations. Furthermore, the DescriptorArray is not compatible with numpy methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions