2006年05月19日 星期五 14:22
以前习惯了用二维数组来实现矩阵操作。 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? -- 编译人生! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060519/46a9bf17/attachment.html
2006年05月19日 星期五 14:30
依然可以用多维数组阿! [[],[]]这样的形式应该可以阿。 Qutr,qutianrang at gmail.com 2006-5-19 ----- Original Message ----- From: Cyril_Gmail To: python-chinese Sent: 2006-05-19, 14:22:54 Subject: [python-chinese] Python中的矩阵操作。 以前习惯了用二维数组来实现矩阵操作。 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? -- 编译人生! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060519/3595874c/attachment.htm
2006年05月19日 星期五 14:34
是一样的 数组可以用 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060519/d7340f92/attachment.html
2006年05月19日 星期五 14:54
On 5/19/06, Cyril_Gmail <terry6394 at gmail.com> wrote: > > 以前习惯了用二维数组来实现矩阵操作。 > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > > 可以用Numeric库啊。 -- Best Regards, Leo Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060519/84604b58/attachment.htm
2006年05月19日 星期五 17:42
在 06-5-19,Cyril_Gmail<terry6394 at gmail.com> 写道: > 以前习惯了用二维数组来实现矩阵操作。 > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > 呵呵,我刚写了个程序,就有矩阵乘法,numarray模块最简单,比如: matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571,0.34286],\ [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ [0.34286,0.24082,0.33878,0.43673,0.53469,0.63265,0.87347]]) know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100,491.800]) res = matrixmultiply(matrixQ,know) #矩阵乘法 这是一个在测绘工程中计算 加常数 的实例 -- 云电清华同方小民工
2006年05月21日 星期日 00:46
哇。。。还真的很简单哦!! 真省事阿~ :) On 5/19/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > 在 06-5-19,Cyril_Gmail<terry6394 at gmail.com> 写道: > > 以前习惯了用二维数组来实现矩阵操作。 > > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > > > > > 呵呵,我刚写了个程序,就有矩阵乘法,numarray模块最简单,比如: > > > matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571,0.34286 > ],\ > > [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ > > [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ > > [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ > > [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ > > [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ > > [0.34286,0.24082,0.33878,0.43673,0.53469,0.63265,0.87347]]) > > know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100,491.800]) > > res = matrixmultiply(matrixQ,know) #矩阵乘法 > > 这是一个在测绘工程中计算 加常数 的实例 > > -- > 云电清华同方小民工 > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- 编译人生! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060521/6214ad42/attachment.html
2006年05月21日 星期日 01:02
其实从长远来看应该用NumPy,算是之前几个模块的集大成者,不过目前还不开放文档这点很烦。 当然随便用用就无所谓哪个了。 On 5/21/06, Cyril_Gmail <terry6394 at gmail.com> wrote: > > 哇。。。还真的很简单哦!! > 真省事阿~ :) > > On 5/19/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > > 在 06-5-19,Cyril_Gmail<terry6394 at gmail.com> 写道: > > 以前习惯了用二维数组来实现矩阵操作。 > > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > > > > > 呵呵,我刚写了个程序,就有矩阵乘法,numarray模块最简单,比如: > > > matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571,0.34286 > ],\ > > [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ > > [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ > > [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ > > [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ > > [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ > > [0.34286,0.24082 ,0.33878,0.43673,0.53469,0.63265,0.87347]]) > > know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100,491.800]) > > res = matrixmultiply(matrixQ,know) #矩阵乘法 > > 这是一个在测绘工程中计算 加常数 的实例 > > -- > 云电清华同方小民工 > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > -- > 编译人生! > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060521/245d6e80/attachment.htm
2006年05月21日 星期日 16:06
不... 是還沒有寫好... 我有付錢買 On 5/21/06, swordsp <sparas2006 at gmail.com> wrote: > > 其实从长远来看应该用NumPy,算是之前几个模块的集大成者,不过目前还不开放文档这点很烦。 > 当然随便用用就无所谓哪个了。 > > > On 5/21/06, Cyril_Gmail <terry6394 at gmail.com > wrote: > > > > 哇。。。还真的很简单哦!! > > 真省事阿~ :) > > > > On 5/19/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > > > > 在 06-5-19,Cyril_Gmail<terry6394 at gmail.com> 写道: > > > 以前习惯了用二维数组来实现矩阵操作。 > > > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > > > > > > > > > 呵呵,我刚写了个程序,就有矩阵乘法,numarray模块最简单,比如: > > > > > > matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571, > > 0.34286],\ > > > > [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ > > > > [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ > > > > [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ > > > > [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ > > > > [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ > > > > [0.34286,0.24082 ,0.33878,0.43673,0.53469,0.63265,0.87347]]) > > > > know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100,491.800]) > > > > res = matrixmultiply(matrixQ,know) #矩阵乘法 > > > > 这是一个在测绘工程中计算 加常数 的实例 > > > > -- > > 云电清华同方小民工 > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > -- > > 编译人生! > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- with regards, Yung-Yu Chen Gmail/Gtalk: yungyuc at gmail.com Email (permanent): yyc at seety.org http://yungyuc.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060521/93fb039f/attachment-0001.html
2006年05月21日 星期日 16:35
完蛋,寫好文章之前就按了送出 @_@ 我有付錢買 Travis E. Oliphant 的 Guide to Numpy 電子書,它真的是一本書,和以前 Numeric Python 所附的文件差距很大,看得出來是重寫的版本。所以,Guide to Numpy 不是 numpy 的文件,要說人家不開放 numpy 的文件算是有一點不公平。 我個人很喜歡這種電子書的概念。在日常的使用上,電子書可以在電腦上閱覽,也可以印出來看,比紙本的書籍方便很多。如果單位裡有大量採購的需要,Travis 也願意提供 HTML 版本。另外,Guide to Numpy 電子版還提供至 2010 年為止的更新服務;這比買許多其它的書籍划算多了。 不過,Guide to Numpy 很多地方都還沒有寫完,而 Travis 對這本書更新地也非常不勤快。這可以理解,因為 NumPy 0.9.8近期才發行,同時把 API 穩定下來,在此之前寫得太多並不划算。 在使用 numpy 時拿 Numeric Python 的文件來參考,其實是沒差多少 (介面上比較明顯的差異是 typecode keyword 被改成了 dtype)。當然,目前 numpy 不像 Numeric Python 一樣有正式的公開文件,其中的 docstring 也仍需要校編,有點可惜。 總體來講,現在不應該再用 Numeric Python 而應改用 numpy。Numeric Python 很早以前就只作維護性更新,numarray 也已經與 Numeric Python 一起合併至 numpy 計畫裡,而新的 scipy 需要 numpy 才能運作。此外,如果有與 Fortran 介面需要的程式,numpy 也能提供比較完整的支援。 當然,隨便用用都無所謂。 On 5/21/06, Yung-Yu Chen <yyc at seety.org> wrote: > > 不... 是還沒有寫好... > > 我有付錢買 > > > On 5/21/06, swordsp <sparas2006 at gmail.com> wrote: > > > > 其实从长远来看应该用NumPy,算是之前几个模块的集大成者,不过目前还不开放文档这点很烦。 > > 当然随便用用就无所谓哪个了。 > > > > > > On 5/21/06, Cyril_Gmail < terry6394 at gmail.com > wrote: > > > > > > 哇。。。还真的很简单哦!! > > > 真省事阿~ :) > > > > > > On 5/19/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > > > > > > 在 06-5-19,Cyril_Gmail<terry6394 at gmail.com> 写道: > > > > 以前习惯了用二维数组来实现矩阵操作。 > > > > 不知道Python中怎样操作矩阵方便呢?! (比如做个矩阵陈法),各位给点提示吧? > > > > > > > > > > > > > 呵呵,我刚写了个程序,就有矩阵乘法,numarray模块最简单,比如: > > > > > > > > > matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571, > > > 0.34286],\ > > > > > > [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ > > > > > > [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ > > > > > > [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ > > > > > > [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ > > > > > > [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ > > > > > > [0.34286,0.24082 ,0.33878,0.43673,0.53469,0.63265,0.87347]]) > > > > > > know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100,491.800 > > > ]) > > > > > > res = matrixmultiply(matrixQ,know) #矩阵乘法 > > > > > > 这是一个在测绘工程中计算 加常数 的实例 > > > > > > -- > > > 云电清华同方小民工 > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese at lists.python.cn > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > -- > > > 编译人生! > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese at lists.python.cn > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request at lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > -- > with regards, > Yung-Yu Chen > > Gmail/Gtalk: yungyuc at gmail.com > Email (permanent): yyc at seety.org > http://yungyuc.net/ > -- with regards, Yung-Yu Chen Gmail/Gtalk: yungyuc at gmail.com Email (permanent): yyc at seety.org http://yungyuc.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060521/792bd273/attachment.htm
2006年05月21日 星期日 17:04
ÔÚÕâ¸öÁÐ±í¿´µ½Ò»¸öÓÐÂòGuido to NumpyµÄÈË£¬»¹ÊÇͦϡº±µÄ¡£ÕâλÐǪ̈ÊÇ̨ÍåÈË£¿ ¹ØÓÚGuido to Numpy ÊÕ·Ñ£¬ Ò»Ö±¶¼ÓÐÕùÒé°É¡£µ±È»£¬Äã˵ËüÕâ¸ö²»ËãÈí¼þ±¾ÉíÎĵµ£¬¶øÊÇרÃÅÒ»±¾µç×ÓÊ飬¶øÇÒËûÓÐÑ¡ÔñÊǹ±Ï×ËûµÄÀͶ¯£¬»òÕßÂôÕâ±¾ÊéµÄ×ÔÓÉ¡£Õ⵱ȻûÓÐÎÊÌ⣬²»¹ý¶ÔÓÚʹÓÃÕßÀ´Ëµ£¬Ò²È·Êµ´æÔÚʹÓÃnumpyʱÎĵµÈ±·¦µÄ¸Ð¾õ¡£ ×î½ü¿´µ½ÓÐÈËÔÚscipy.orgµÄwikiÉÏ¿ªÊ¼Ð´numpyµÄÀý×Ó£¬ÒѾÁоÙÁË118¸öº¯Êý£¬¶ÔÓÚ¼òµ¥Ê¹Óû¹ÊÇͦÓаïÖúµÄ£¬Ò²ËãÊǶÔÎĵµÈ±·¦µÄÒ»ÖÖ»º½âÁË¡£ÁíÍ⣬Óû§Ò²±È½Ïµ£ÐÄ£¬Ê²Ã´Ê±ºò²ÅÄÜÓй«¿ªµÄÎĵµ³öÀ´£¬ÒÔ¼°£¬×÷Õ߻᲻»áÒòΪ"Guide to Numpy"¶øÍƳÙÁ˹«¿ªÎĵµµÄ½ø¶È¡£µ±È»Èç¹ûGuido to NumpyÄܹ»ÓÉOreillyÕâÑùµÄ³ö°æÉç³ö°æ¾Í¸üºÃÁË¡£²»¹ý£¬Õâ¸ö¿ÉÄÜÐԱȽÏС£¬±Ï¾¹¹ýÓÚרҵ£¬Êг¡½ÏСÁË¡£ »¹ÓÐÒ»¸ö£¬¾ÍÊÇÏÖÔÚÓÐЩ³ÌÐò£¬ÔÚNumericÉÏÃæËÙ¶ÈÒª±Ènumpy¿ìһЩ¡£ÔÚnumpyµÄÓʼþÁбíÓÐ˵£¬ÎÒ×Ô¼ºÕâ±ßwindows°²×°µÄÊÇnumpy0.98+scipy0.48, debianÏÂÃæÊÇ×°µÄnumeric23.x+scipy0.32 £¬ÊÖÍ·µÄ³ÌÐòÒ²ÓÐÓöµ½Õâ¸öÇé¿ö£¬×÷ÕßÒ²½âÊÍÁËÔÒò£¬ËùÒÔÈç¹û¶Ô¼ÆËãËÙ¶ÈÒªÇó¿Á¿ÌµÄ£¬Ò²¿ÉÒÔ³¢ÊÔÒ»ÏÂnumericºÍnumpyµÄ¶Ô±È£¬±Ï¾¹Á½ÕßÖ±½ÓÒÆÖ²»¹±È½ÏÖ±½Ó¡£µ±È»£¬numpyÊÇ·¢Õ¹µÄ·½Ïò¡£Ã»ÈËÓÐÒìÒé°É£º£© On 5/21/06, Yung-Yu Chen <yyc at seety.org> wrote: > > Íêµ°£¬ºÃÎÄÕÂ֮ǰ¾Í°´ÁËËͳö @_@ > > ÎÒÓи¶åXÙI Travis E. Oliphant µÄ Guide to Numpy ë×Óø£¬ËüÕæµÄÊÇÒ»±¾ø£¬ºÍÒÔÇ° Numeric Python > Ëù¸½µÄÎļþ²î¾àºÜ´ó£¬¿´µÃ³öíÊÇÖصİ汾¡£ËùÒÔ£¬Guide to Numpy ²»ÊÇ numpy µÄÎļþ£¬ÒªÕfÈ˼Ҳ»é_·Å numpy > µÄÎļþËãÊÇÓÐÒ»üc²»¹«Æ½¡£ > > ÎÒÈ˺Üϲgß@·Në×ÓøµÄ¸ÅÄî¡£ÔÚÈÕ³£µÄʹÓÃÉÏ£¬ë×Óø¿ÉÒÔÔÚëÄXÉÏéÓ[£¬Ò²¿ÉÒÔÓ¡³öí¿´£¬±È¼±¾µÄø¼®·½±ãºÜ¶à¡£Èç¹ûÎλÑeÓдóÁ¿ñÙµÄÐèÒª£¬Travis > Ò²îÒâÌṩ HTML °æ±¾¡£ÁíÍ⣬Guide to Numpy ë×Ó°æßÌṩÖÁ 2010 ÄêéÖ¹µÄ¸üзþÕ£»ß@±ÈÙIÔS¶àÆäËüµÄø¼®»®Ëã¶àÁË¡£ > > ²»ß^£¬Guide to Numpy ºÜ¶àµØ·½¶¼ß]ÓÐÍ꣬¶ø Travis ¦ß@±¾ø¸üеØÒ²·Ç³£²»ÇÚ¿ì¡£ß@¿ÉÒÔÀí½â£¬Òòé NumPy 0.9.8½üÆڲŰlÐУ¬Í¬r°Ñ API ·¶¨ÏÂí£¬ÔÚ´Ë֮ǰµÃÌ«¶àK²»»®Ëã¡£ > > ÔÚʹÓà numpy rÄà Numeric Python µÄÎļþí ¢¿¼£¬ÆäÊÇ]²î¶àÉÙ (½éÃæÉϱÈÝ^Ã÷ï@µÄ²î®ÊÇ typecode keyword > ±»¸Ä³ÉÁË dtype)¡£®È»£¬Ä¿Ç° numpy ²»Ïñ Numeric Python Ò»ÓÓÐÕýʽµÄ¹«é_Îļþ£¬ÆäÖÐµÄ docstring > Ò²ÈÔÐèҪУ¾£¬ÓÐüc¿Éϧ¡£ > > ¿ówíÖv£¬¬FÔÚ²»ªÔÔÙÓà Numeric Python ¶øª¸ÄÓà numpy¡£Numeric Python > ºÜÔçÒÔÇ°¾ÍÖ»×÷¾S×oÐÔ¸üУ¬numarray Ò²ÒѽÅc Numeric Python Ò»ÆðºÏãÖÁ numpy Ó®Ñe£¬¶øÐ嵀 scipy ÐèÒª numpy > ²ÅÄÜß\×÷¡£´ËÍ⣬Èç¹ûÓÐÅc Fortran ½éÃæÐèÒªµÄ³Ìʽ£¬numpy Ò²ÄÜÌṩ±ÈÝ^ÍêÕûµÄÖ§Ô®¡£ > > ®È»£¬ëS±ãÓÃÓö¼oËùÖ^¡£ > > > On 5/21/06, Yung-Yu Chen <yyc at seety.org> wrote: > > > > ²»... ÊÇß]ÓкÃ... > > > > ÎÒÓи¶åXÙI > > > > > > On 5/21/06, swordsp < sparas2006 at gmail.com> wrote: > > > > > > Æäʵ´Ó³¤Ô¶À´¿´Ó¦¸ÃÓÃNumPy£¬ËãÊÇ֮ǰ¼¸¸öÄ£¿éµÄ¼¯´ó³ÉÕߣ¬²»¹ýÄ¿Ç°»¹²»¿ª·ÅÎĵµÕâµãºÜ·³¡£ > > > µ±È»Ëæ±ãÓÃÓþÍÎÞËùνÄĸöÁË¡£ > > > > > > > > > On 5/21/06, Cyril_Gmail < terry6394 at gmail.com > wrote: > > > > > > > > ÍÛ¡£¡£¡£»¹ÕæµÄºÜ¼òµ¥Å¶£¡£¡ > > > > ÕæÊ¡Ê°¢~ :) > > > > > > > > On 5/19/06, ±¿±¿¹· <chen.ruijie at gmail.com> wrote: > > > > > > > > > ÔÚ 06-5-19£¬Cyril_Gmail<terry6394 at gmail.com> дµÀ£º > > > > > ÒÔÇ°Ï°¹ßÁËÓöþάÊý×éÀ´ÊµÏÖ¾ØÕó²Ù×÷¡£ > > > > > ²»ÖªµÀPythonÖÐÔõÑù²Ù×÷¾ØÕó·½±ãÄØ£¿£¡ £¨±ÈÈç×ö¸ö¾ØÕó³Â·¨£©£¬¸÷λ¸øµãÌáʾ°É£¿ > > > > > > > > > > > > > > > > > ºÇºÇ£¬ÎÒ¸ÕдÁ˸ö³ÌÐò£¬¾ÍÓоØÕó³Ë·¨£¬numarrayÄ£¿é×î¼òµ¥£¬±ÈÈ磺 > > > > > > > > > > > > matrixQ = array([[0.20000,0.05714,0.11429,0.17143,0.22857,0.28571, > > > > 0.34286],\ > > > > > > > > [0.05714,0.30204,0.17551,0.19184,0.20816,0.22449,0.24082],\ > > > > > > > > [0.11429,0.17551,0.35102,0.24082,0.27347,0.30612,0.33878],\ > > > > > > > > [0.17143,0.19184,0.24082,0.43265,0.33878,0.38776,0.43673],\ > > > > > > > > [0.22857,0.20816,0.27347,0.33878,0.54694,0.46939,0.53469],\ > > > > > > > > [0.28571,0.22449,0.30612,0.38776,0.46939,0.69388,0.63265],\ > > > > > > > > [0.34286,0.24082 ,0.33878,0.43673,0.53469,0.63265,0.87347]]) > > > > > > > > know = array([-488.100,-28.200,22.900,22.200,-496.600,-14.100, > > > > 491.800]) > > > > > > > > res = matrixmultiply(matrixQ,know) #¾ØÕó³Ë·¨ > > > > > > > > ÕâÊÇÒ»¸öÔÚ²â»æ¹¤³ÌÖмÆËã ¼Ó³£Êý µÄʵÀý > > > > > > > > -- > > > > ÔƵçÇ廪ͬ·½Ð¡Ãñ¹¤ > > > > > > > > _______________________________________________ > > > > python-chinese > > > > Post: send python-chinese at lists.python.cn > > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > > > > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > ±àÒëÈËÉú! > > > > > > > > _______________________________________________ > > > > python-chinese > > > > Post: send python-chinese at lists.python.cn > > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > > Unsubscribe: send unsubscribe to > > > > python-chinese-request at lists.python.cn > > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese at lists.python.cn > > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request at lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > -- > > with regards, > > Yung-Yu Chen > > > > Gmail/Gtalk: yungyuc at gmail.com > > Email (permanent): yyc at seety.org > > http://yungyuc.net/ > > > > > > -- > with regards, > Yung-Yu Chen > > Gmail/Gtalk: yungyuc at gmail.com > Email (permanent): yyc at seety.org > http://yungyuc.net/ > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060521/72841e7f/attachment-0001.html
Zeuux © 2025
京ICP备05028076号