首页 > 其他 > 详细

numpy中matrix的特殊属性

时间:2015-05-20 07:03:14      阅读:304      评论:0      收藏:0      [点我收藏+]

一、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/

 

numpy中matrix的特殊属性

原文:http://www.cnblogs.com/klchang/p/4516066.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!