Cholesky factorization
[[
also returns the outputr
,,,,旗帜
] = chol(___)旗帜
指示是否一个
是对称阳性确定。您可以在先前的语法中使用任何输入参数组合。指定旗帜
输出,chol
does not generate an error if the input matrix is not symmetric positive definite.
如果旗帜=0
then the input matrix is symmetric positive definite and the factorization was successful.
如果旗帜
不是零,那么输入矩阵是not对称阳性确定and旗帜
是an integer indicating the index of the pivot position where the factorization failed.
利用chol
(instead ofeig
)to efficiently determine whether a matrix is symmetric positive definite. See确定矩阵是否为对称阳性确定for more information.