Skip to content

Add torch.vdot similar to numpy.vdot to calculate the complex dot product #42747

@anjali411

Description

@anjali411

For two complex numbers the dot product is defined as:

Screen Shot 2020-08-07 at 3 57 51 PM

The torch.vdot(a, b) function (similar to numpy.vdot)will treat complex numbers differently than dot(a, b). If the first argument is complex the complex conjugate of the first argument will be used for the calculation of the dot product.

cc @ezyang @anjali411 @dylanbespalko @mruberry @rgommers

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA request for a proper, new feature.module: complexRelated to complex number support in PyTorchmodule: numpyRelated to numpy support, and also numpy compatibility of our operatorstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions