How to check if m n-sized vectors are linearly independent?

前端 未结 8 2473
栀梦
栀梦 2020-12-15 05:47

Disclaimer
This is not strictly a programming question, but most programmers soon or later have to deal with math (especially algebra), so I think tha

8条回答
  •  别那么骄傲
    2020-12-15 06:03

    If computing power is not a problem, probably the best way is to find singular values of the matrix. Basically you need to find eigenvalues of M'*M and look at the ratio of the largest to the smallest. If the ratio is not very big, the vectors are independent.

提交回复
热议问题