Skip to content

LinAlgError: Singular matrix  #16

@raul-parada

Description

@raul-parada

By executing the line 'K = (P*JH.T) * np.linalg.inv(S)' I get always an error:

The original S is matrix([[matrix([[6371.]]), matrix([[6371.]])],
[matrix([[6371.]]), matrix([[6371.]])]], dtype=object)

TypeError: No loop matching the specified signature and casting was found for ufunc inv

if I convert s to float64 S = S.astype(np.float64) the content of S is

matrix([[6371., 6371.],
[6371., 6371.]])

LinAlgError: Singular matrix

How can I solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions