文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Perl 与矩阵

Perl 与矩阵

时间:2008-04-22  来源:mystérieux



一、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.
相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载