Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Dimension Error in org.firstinspires.ftc.robotcore.external.matrices.MatrixF.inverted() method #316

Copy link
Copy link

Description

@ftcteam8397
Issue body actions

For a 4x4 input matrix, this method returns a 4x4 matrix as expected. Likewise, for a 3x3 input matrix, it returns a 3x3 matrix. But for input matrices that are 2x2 or 1x1, this method returns a 4x4 matrix (filling in only the upper left 2x2 or 1x1 entries).

This causes a problem when one needs to continue with matrix math operations on the result. For example, if P and R are both 2x2 matrices, the following will throw an exception:

MatrixF K = P.multiplied(P.added(R).inverted);

Reactions are currently unavailable

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.