Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preliminary support for matrix multiplication. #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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