Skip to content

Ensure quaternion inputs are 4-tuples #25

@bdice

Description

@bdice

The input array sizes of rowan are not validated. For example, it's possible to input a 3-vector for a function expecting a quaternion:
rowan.exp([1, 0, 0]) returns array([2.71828183, 0. , 0. ]).

This package should probably do some input shape validation, e.g. that q.shape[-1] == 4.

Likewise for inputs expecting 3-vectors, 3x3 matrices, etc.

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