eigenvalue
whats the fastest way to find eigenvalues/vectors in python?
**if your matrix is sparse, then instantiate your matrix using a constructor from scipy.sparse then use the analogous eigenvector/eigenvalue methods in spicy.sparse.linalg. From a performance point of view, this has two advantages: your matrix, built from the spicy.sparse constructor, will be smaller in proportion to how sparse it is. the eigenvalue/eigenvector methods for sparse matrices … Read more
Python Numpy TypeError: ufunc ‘isfinite’ not supported for the input types
Your array has a dtype of object, but this should be some floating point dtype. Use e.g. covMat = np.array(covMat, dtype=float) to convert the dtype