Skip to content

Vector times array #173

@adrn

Description

@adrn

Currently, this does not work:

>>> q = Quantity([1, 2, 3], "kpc")
>>> vec = cx.CartesianPosition3D.constructor(q)
>>> scale = jnp.array([1, 0.9, 0.85])
>>> vec * scale
EquinoxTracetimeError: ...

I think this should be supported when the shape of a multiplicative array is broadcastable with the vector shape, and it should do the same as q * scale.

(thinking about this as I work on a PR for a new AnisotropicScalingOperator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions