博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

睡前要抱抱

   mash.cublog.cn
关于作者  
mystérieux

我的分类  




Perl 与矩阵


一、Math::MatrixReal的下载与安装
到CPAN的搜索页http://search.cpan.org查找MatrixReal并下载源码,解压进入目录:
# perl Makefile.PL
# make
# make test
# make install

二、矩阵的输出
示例程序:
#!/usr/bin/perl -w
use Math::MatrixReal;
$matrix = Math::MatrixReal->new_from_cols( [ [1,2], [3,4] ] );
print $matrix;

输出:
[  1.000000000000E+00  3.000000000000E+00 ]
[  2.000000000000E+00  4.000000000000E+00 ]

三、参考资料:
http://search.cpan.org/~leto/Math-MatrixReal-1.9/MatrixReal.pm
http://www001.upp.so-net.ne.jp/hata/dowasure_perl.html
Mastering Algorithms with Perl
Jon Orwant, Jarkko Hietaniemi, John Macdonald.

 发表于: 2008-04-22,修改于: 2008-04-22 15:16 已浏览182次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:5.27893

京ICP证041476号