Singular matrix issue with Numpy

前端 未结 4 667
灰色年华
灰色年华 2021-01-01 10:39

I am trying to multiply a vector(3 by 1) by its transpose(1 by 3). I get a (3 by 3) array but I cannot get its inverse. Any idea why?

import numpy as np

c=a         


        
4条回答
  •  悲哀的现实
    2021-01-01 11:30

    Use SVD or QR-decomposition to calculate exact solution in real or complex number fields:

    numpy.linalg.svd numpy.linalg.qr

提交回复
热议问题