Skip to content

Implement ufunc_outer like add.outer for binary Elemwise operations #745

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
May 7, 2024

Conversation

Dhruvanshu-Joshi
Copy link
Member

Description

Compute the outer product of two vectors.

Given two vectors a and b of length M and N, respectively, the outer product [1]_ is:

  [[a_0*b_0  a_0*b_1 ... a_0*b_{N-1} ]
   [a_1*b_0    .
   [ ...          .
   [a_{M-1}*b_0            a_{M-1}*b_{N-1} ]]

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

@ricardoV94 ricardoV94 added the enhancement New feature or request label May 7, 2024
@ricardoV94 ricardoV94 changed the title Add support for ufunc_outer in pytensor Implement ufunc_outer like add.outer for binary Elemwise operations May 7, 2024
@ricardoV94 ricardoV94 merged commit b79d232 into pymc-devs:main May 7, 2024
52 of 53 checks passed
@ricardoV94
Copy link
Member

Thanks @Dhruvanshu-Joshi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement missing ufunc.outer functions for binary ops
2 participants