a = rand(10,10)
b = inv(a)
b*a
det(ans)
a*b
det(ans)
查了官方文档:
Matrix inverse. Computes matrix
N
such thatM * N = I
, whereI
is the identity matrix. Computed by solving the left-divisionN = M \ I
.
\(A, B) Matrix division using a polyalgorithm. For input matrices
A
andB
, the resultX
is such thatA*X == B
whenA
is square.
所以就是LU然后对三角阵求逆没有其他方法了对吧?