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

Add Array * Scalar #268

Merged
merged 2 commits into from
Sep 17, 2020
Merged

Add Array * Scalar #268

merged 2 commits into from
Sep 17, 2020

Conversation

oxinabox
Copy link
Member

Nabla has this, we should have it too.

I am sure it can be extended to work for complex but i don't know how so am happy to make it a follow up PR

Copy link
Member

@mzgubic mzgubic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
B = randn(n, p)
Ȳ = randn(m, p)
rrule_test(*, Ȳ, (A, randn(m, n)), (B, randn(n, p)))
@testset "Matrix-Matrix" begin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of scope perhaps but are there tests for Vector*Matrix anywhere? dot is tested but I don't think * is

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure we actually have a matric vector multiply rrule defined.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool I would be keen to tackle this

@oxinabox oxinabox merged commit 9663f93 into master Sep 17, 2020
@oxinabox oxinabox deleted the ox/scalemat branch October 16, 2020 14:47
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.

None yet

2 participants