Skip to content

Implement product of row vector and matrix #370

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

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

jturner314
Copy link
Member

@jturner314 jturner314 commented Oct 19, 2017

This adds an implementation for a row vector times a matrix. It exploits the identity AB = (BTAT)T to reuse the existing implementation for a matrix times a column vector.

Edit: Note that the 1-D times 2-D case being interpreted as a row vector times a matrix is the same behavior as NumPy.

@bluss
Copy link
Member

bluss commented Oct 28, 2017

Thanks a lot for this

@bluss bluss merged commit ffac3f6 into rust-ndarray:master Oct 28, 2017
@jturner314 jturner314 deleted the vec-mul-mat branch October 28, 2017 15:20
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.

2 participants