我发现计算矩阵的日志而不是矩阵的每个组件的唯一函数是scipy的logm()函数,但它找到了带有基数e的日志,我需要基数为2的日志.
python logarithm matrix scipy
logarithm ×1
matrix ×1
python ×1
scipy ×1