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

Fix matrix-vector multiplication #268

Closed
wants to merge 1 commit into from

Conversation

Caellian
Copy link

@Caellian Caellian commented Dec 11, 2024

Addresses #267.

I didn't check vector-matrix multiplication. Just submitting this PR for discussion.

I don't like this because it feels very hardcoded. Ideally, multiply should check dimensions and handle 1×1, 1×2, 2×1 & 2×2.

Ideally, matrix multiplication should work for matrices of arbitrary dimensions and is quite straightforward to implement - and use blas only for 2×2.

@Caellian Caellian closed this Dec 16, 2024
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