This topic created in 2226 days ago, the information mentioned may be changed or developed.
python 或 sage 有没有哪个函数可以求指定向量的模?进行点乘运算,叉乘运算?求相关的库名称已经代码示例,谢谢!
3 replies • 2020-10-01 20:17:59 +08:00
 |
|
zhzyOct 1, 2020 via iPhone
1
numpy
|
 |
|
numpy,或者自己求模就是该矩阵的 hermitian matrix 乘以它本身,点乘就是求模开个方,叉乘算 det
|
 |
|
numpy 的话:
mod = np.sum(arr ** 2) ** 0.5
|