Skip to content

Conversation

@benninkrs
Copy link

Preliminary support for matrix multiplication.

  • New methods for * for combinations of OffsetArray and AbstractArray
    Unfortunately this introduces method ambiguities with Base.
  • As an alternative, tried defining a new promote_rule, but somehow it doesn't get invoked.

New convenience constructors

  • Wrap any (non-offset) array as an OffsetArray with standard indices
  • Remove layer of indirection when constructing with explicit offsets

Cosmetic edits to constructor section for improved readability

- New methods for * for combinations of OffsetArray and AbstractArray
  Unfortunately this introduces method ambiguities with Base.
- As an alternative, tried defining a new promote_rule, but somehow it doesn't get invoked.

New convenience constructors
- Wrap any (non-offset) array as an OffsetArray with standard indices
- Remove layer of indirection when constructing with explicit offsets

Cosmetic edits to constructor section for improved readability
@benninkrs
Copy link
Author

benninkrs commented Jan 3, 2020

@timholy As you can see from commit message I tried a couple things, neither of which worked as well as I'd hoped. If you have advice either on how to resolve the method ambiguities, or on how to make a promote_rule get invoked, I can try to improve it.

@benninkrs benninkrs closed this by deleting the head repository Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant