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