pythonpython-3.xtensorflowscipyarpack

Eigenvectors of a large sparse matrix in tensorflow


I was wondering if there is a way to calculate the first few eigenvectors of a very large sparse matrix in tensorflow, hoping that it might be faster than scipy's implementation of ARPACK, which doesn't seem to support parallel computing. At least, as far as I noticed.


Solution

  • I believe you should rather look into PETCs4py or SLEPc4py. They are python binding of PETSc (Portable, Extensible Toolkit for Scientific Computation) and SLEPc (Scalable Library for Eigenvalue Problem Computations).

    PETSc and SLEPc support MPI and therefore PETCs4py and SLEPc4py do too.

    I believe you will find useful examples in examples