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 scalar-array / and \ #270

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Add scalar-array / and \ #270

merged 1 commit into from
Sep 29, 2020

Conversation

oxinabox
Copy link
Member

Needed for invenia/Nabla.jl#189

I worked this one out with a white-board.
I'm not good at math though, but tests pass.
So I guess i got it right

#####
##### `\`, `/` matrix-scalar_rule

function rrule(::typeof(/), A::AbstractArray{<:Real}, b::Real)
Copy link
Member

Choose a reason for hiding this comment

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

Are these maybe a bit too abstractly typed?

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 don' t think so in this case.
But I also don't think this is the PR to be having the discussion about it in.
This matchs to * defined above.
I think changing * and changing this can happen at same time

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough.

@oxinabox oxinabox merged commit cbf3eb7 into master Sep 29, 2020
@oxinabox oxinabox deleted the ox/scalardiv branch September 29, 2020 10:52
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