Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M_det函数似乎有Bug,正负号会出现错误 #13

Open
ouclight opened this issue Sep 26, 2023 · 1 comment
Open

M_det函数似乎有Bug,正负号会出现错误 #13

ouclight opened this issue Sep 26, 2023 · 1 comment

Comments

@ouclight
Copy link

行列式a[4][4]={5,7,5,5,3,8,3,1,3,5,3,8,5,7,3,7}, 行列式正确值为206,但M_det(a)为-206;

@NameTastesGood
Copy link

我也遇到了相同的问题,经过我的排查,是因为进行初等变换的过程中发生了一次行交换。根据矩阵的数学规则,矩阵行(列)互换,行列式变号,所以会出现这种问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants