zoukankan      html  css  js  c++  java
  • numpy中matrix的特殊属性

    一、matrix特殊属性解释

    numpy中matrix有下列的特殊属性,使得矩阵计算更加容易

    摘自 NumPy Reference Release 1.8.1

    1.1 The N-dimensional array (ndarray)

    An ndarray is a (usually fixed-size) multidimensional container of items of the same type and size.

    摘自 NumPy Reference Release 1.9.1

    这些特殊属性中文含义如下:

    matrix.T    转置矩阵

    matrix.H    共轭转置矩阵

    matrix.I   可逆矩阵的逆矩阵

    matrix.A  矩阵转为基本数组

    二、程序测试

    1、初始矩阵m为matrix([[1,2],[3,4]])

    2、初始矩阵m为matrix([[ 0.+0.j,  1.+1.j],[ 2.-2.j,  3.-3.j]])

    参考资料:

    1、 NumPy Reference Release 1.8.1 

      http://docs.scipy.org/doc/

    2、 NumPy Reference Release 1.9.1

      http://docs.scipy.org/doc/

  • 相关阅读:
    Java文件输入输出
    数位dp
    https://www.luogu.org/blog/An-Amazing-Blog/mu-bi-wu-si-fan-yan-ji-ge-ji-miao-di-dong-xi
    洛谷
    洛谷
    洛谷
    Java简单高精度合集
    洛谷
    洛谷
    洛谷
  • 原文地址:https://www.cnblogs.com/klchang/p/4516066.html
Copyright © 2011-2022 走看看