Skip to content

Optional arguments in passive_transformation #327

@thisac

Description

@thisac

Before posting a feature request

  • I have searched exisisting GitHub issues to make sure the feature request does not already exist.

Feature details

Both arguments mu and cov are required when calling thewalrus.symplectic.passive_transformation, even when only one of them is required. For example, to calculate the transformation for an covariance matrix only, a dummy-mu still needs to be created and passed.

dummy_mu = np.zeros([len(cov)])
_, cov = passive_transformation(dummy_mu, cov, T))

It would be good to be able to optionally pass the mu argument in the above case.

Implementation

No response

How important would you say this feature is?

1: Not important. Would be nice to have.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions