w****o 发帖数: 367 | 1 为什么好多函数里面都带一个mod:
Inverse(A) mod n
帮助文档里面说
The call Inverse(A) mod n computes the inverse of the square matrix A over a
finite ring of characteristic n.
模取之不同,算出来的逆矩阵就会不同。
Det(A) mod n,也是这样。
那位高人给解释一下,一般这个mod n取值多大?为什么会有mod在里面?有什么用呢?
多谢! | b****d 发帖数: 1311 | 2 mod n 就是 modulo n,用来算每个数除以 n 后的余数。
比如 A = [1,3]
[5,7]
则 A mod 3 = [1, 0]
[2, 1]
要不要 mod n 和取什么 n 取决于你的需要。
a
【在 w****o 的大作中提到】 : 为什么好多函数里面都带一个mod: : Inverse(A) mod n : 帮助文档里面说 : The call Inverse(A) mod n computes the inverse of the square matrix A over a : finite ring of characteristic n. : 模取之不同,算出来的逆矩阵就会不同。 : Det(A) mod n,也是这样。 : 那位高人给解释一下,一般这个mod n取值多大?为什么会有mod在里面?有什么用呢? : 多谢!
| w****o 发帖数: 367 | 3 这模是不是多余?有什么实际的用途吗?
一般算矩阵的东西,哪有求a_ij模的? |
|