Skip to content

Seems it returns "nan" with big matrix #2

@osoleole

Description

@osoleole

Seems it returns "nan" with big matrix >>100

1000x1000
Eigenvector squared calculated by...
numpy: 1.2163269368593035e-08
new-fancy: nan
/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py:90: RuntimeWarning: overflow encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:22: RuntimeWarning: invalid value encountered in double_scalars

Seems this simple algorithm is not appropriate for real use. It's extremely slow and and isn't tuned.
Just nice math fact.

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