检查正定性或正半定性 [英] Check for positive definiteness or positive semidefiniteness

查看:44
本文介绍了检查正定性或正半定性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Python检查矩阵是正定还是半正定.

I want to check if a matrix is positive definite or positive semidefinite using Python.

我该怎么做? SciPy中是否有专用于该功能的模块或其他模块?

How can I do that? Is there a dedicated function in SciPy for that or in other modules?

推荐答案

一个好的解决方案是计算行列式的所有未成年人,并检查它们是否均为非负数.

One good solution is to calculate all the minors of determinants and check they are all non negatives.

这篇关于检查正定性或正半定性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆