Skip to content

Some bbox inputs raise numpy.linalg.LinAlgError: Singular matrix #7

@chuckwondo

Description

@chuckwondo

The do_computations function attempts to compute the multiplicative inverse of a square matrix. When the matrix is not invertible (i.e., its determinant is 0), the following error is raised: numpy.linalg.LinAlgError: Singular matrix

The fix for this is to simply compute the pseudo-inverse, which does not require the matrix to be invertible.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions