Skip to content

Current transposed matrix return for quite a lot of objects. #98

Description

@thomasmansencal

@MichaelMauderer I think it's important to address before the first release, the MPC legacy of the API and it's heavy use being involved with a lot of (3, 3) matrices computations result in the fact that a lot if not most of the colour models objects returns (3, 1) transposed matrices, for instance:

    >>> colour.XYZ_to_xyY(np.array([0.1180583421, 0.1034, 0.0515089229]))
    array([[ 0.4325]
           [ 0.3788]
           [ 0.1034]])

I would be keen on getting rid of that and just output a normal (3, ) matrix as follows:

    >>> colour.XYZ_to_xyY(np.array([0.1180583421, 0.1034, 0.0515089229]))
    array([0.4325,  0.3788, 0.1034])

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions