Skip to content

Define DotProduct as Binary Op #194

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

Closed
wants to merge 17 commits into from
Closed

Define DotProduct as Binary Op #194

wants to merge 17 commits into from

Conversation

theogf
Copy link
Member

@theogf theogf commented Nov 25, 2020

Following #98, i started to refactor the way Distances is used:

  • DotProduct is now an AbstractBinaryOp
  • BinaryOp is the union of AbstractBinaryOp and PreMetric
  • One needs to define a bunch of functions for AbstractBinaryOp such as :
    • evaluate
    • (::AbstractBinaryOp)(a,b)
    • pairwise, pairwise! and _pairwise!
    • result_type
  • I removed our own piracy of pairwise for vectors since it is now supported natively by Distances.jl
  • I shadowed the implementation of Distances.jl for AbstractBinaryOp, i.e. we have now pairwise[!] for AbstractMatrix and AbstractVectors following the same principles than Distances.jl

@theogf theogf marked this pull request as ready for review February 15, 2021 10:24
@theogf theogf changed the title [WIP] Define DotProduct as Binary Op Define DotProduct as Binary Op Feb 15, 2021
@theogf
Copy link
Member Author

theogf commented Feb 1, 2022

Closed in favor of #386 or another approach

@theogf theogf closed this Feb 1, 2022
@theogf theogf deleted the solve_metric_issue branch February 1, 2022 10:50
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