linux-安装cmatrix(黑客帝国矩阵效果

linux- 安装 cmatrix (黑客帝国矩阵效果)
1 、安装 aalib
wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/
aalib-1.4rc5.tar.gz
tar xf aalib-1.4rc5.tar.gz
cd aalib-1.4.0/
./configure
make
make install

2 、安装 aview
wget http://prdownloads.sourceforge.net/aa-project/
aview-1.3.0rc1.tar.gz
tar xf aview-1.3.0rc1.tar.gz
cd aview-1.3.0
./configure
4/6 make
make install
3 、安装 ImageMagick
yum install ImageMagick
yum install ncurses-devel
4 、安装 cmatrix
wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/
cmatrix-1.2a.tar.gz
tar xf cmatrix-1.2a.tar.gz
cd cmatrix-1.2a
./configure
make
make install
验证程序是否可以执行:
cmatrix
cmatrix -b -u 3 -C blue 退出程序按 q
可能出现的错误:
1 cmatrix.c:86 :对 ‘curs_set’ 未定义的引用
报错:致命错误: curses.h :没有那个文件或目录
原因:主要因为系统中没有找到 ncurses-devel 软件包
解决: yum install -y ncurses-devel
2 cmatrix.c:516 :对 ‘LINES’ 未定义的引用
报错: make: *** [cmatrix] 错误 1
原因:需要的包都安装了,可能是软件配置时出现了问题
解决:删除该目录,重新解压,重新配置
============================================================
扩展:
5/6 在选择 Web 服务器时, Nginx Apache 都是备受推崇的选择。然而,对于
许多开发者和管理员来说,
选择哪一个可能会成为一个难以解决的问题。因此,我们需要对两者进行
比较,以确定哪一个更适
合我们的需求。
首先, Nginx 以其高效的性能而闻名。它是一个轻量级的 Web 服务器,可
以处理大量并发连接。
相比之下, Apache 是一个成熟的 Web 服务器,但它在处理并发连接时可能
会出现性能瓶颈。因此,
如果您需要处理大量并发连接, Nginx 可能是更好的选择。
其次, Nginx 具有更好的负载均衡功能。它可以在多个服务器之间均衡地
分配流量,以提高性能和
可靠性。 Apache 也可以实现负载均衡,但相对来说要更为复杂。
最后, Nginx 的配置文件比 Apache 更为简单和易于理解。这意味着您可以
更快地配置服务器并更快
地上线。相比之下, Apache 的配置可能会更加复杂,需要更多的时间和精
力。
history 
  1  history 
    2  ls
    3  cd ..
    4  cd home/kobelyk/
    5  ls
    6  wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/
    7  aalib-1.4rc5.tar.gz
    8  wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/-aalib-1.4rc5.tar.gz
    9  ls
   10  wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/-aalib-1.4rc5.tar.gz
   11  systemctl stop httpd
   12  ls
   13   https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/
   14  cmatrix-1.2a.tar.gz
   15   https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/-cmatrix-1.2a.tar.gz
   16  wget  https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/-cmatrix-1.2a.tar.gz
   17  cd
   18  ls
   19  cd ..
   20  ls
   21  tmp
   22  cd top
   23  cd tmp
   24  ls
   25  cd ..
   26  ls
   27  etc
   28  cd etc/
   29  ls
   30  cd ..
   31  ls
   32  cd home/kobelyk/
   33  ls
   34  vim index.html 
   35  wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/aalib-1.4rc5.tar.gz
   36  ls
   37  tar xf aalib-1.4rc5.tar.gz 
   38  ls
   39  cd aalib-1.4.0/
   40  ./configure 
   41  make
   42  make install
   43  wget http://prdownloads.sourceforge.net/aa-project/-aview-1.3.0rc1.tar.gz
   44  wget http://prdownloads.sourceforge.net/aa-project-aview-1.3.0rc1.tar.gz
   45  wget http://prdownloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz
   46  ls
   47  rm aview-1.3.0rc1.tar.gz 
   48  ls
   49  cd..
   50  cd ..
   51  ls
   52  wget http://prdownloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz
   53  ls
   54  tar xf aview-1.3.0rc1.tar.gz 
   55  ls
   56  cd aview-1.3.0
   57  ./configure 
   58  make
   59  make install
   60  cd ..
   61  yum install ImageMagick
   62  yum install imageMagick
   63  yum install ImageMagick
   64  yum install ncurses-devel
   65  yum install ImageMagick
   66  [200~wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/
   67  wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
   68  ls
   69  tar xf cmatrix-1.2a.tar.gz 
   70  ls
   71  cd cmatrix-1.2a/
   72  ./configure 
   73  make
   74  make install
   75  cmatrix 
   76  history 
   77  history > lyk

 
  • 22
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Introduction ============ This is a class for symmetric matrix related computations. It can be used for symmetric matrix diagonalization and inversion. If given the covariance matrix, users can utilize the class for principal component analysis(PCA) and fisher discriminant analysis(FDA). It can also be used for some elementary matrix and vector computations. Usage ===== It's a C++ program for symmetric matrix diagonalization, inversion and principal component anlaysis(PCA). To use it, you need to define an instance of CMatrix class, initialize matrix, call the public funtions, and finally, free the matrix. For example, for PCA, CMarix theMat; // define CMatrix instance float** C; // define n*n matrix C = theMat.allocMat( n ); Calculate the matrix (e.g., covariance matrix from data); float *phi, *lambda; // eigenvectors and eigenvalues int vecNum; // number of eigenvectors (<=n) phi = new float [n*vecNum]; lambda = new float [vecNum]; theMat.PCA( C, n, phi, lambda, vecNum ); delete phi; delete lambda; theMat.freeMat( C, n ); The matrix diagonalization function can also be applied to the computation of singular value decomposition (SVD), Fisher linear discriminant analysis (FLDA) and kernel PCA (KPCA) if forming the symmetric matrix appropriately. For data of very high dimensionality (n), the computation of nxn matrix is very expensive on personal computer. But if the number m of samples (vectors) is smaller than dimenionality, the problem can be converted to the computation of mxm matrix. The users are recommended to read the paper KPCA for how to form mxm matrix: B. Sch枚lkopf, A. Smola, K.-R. M眉ller. Nonlinear component analysis as a kernel eigenvalue problem, Neural Computation, 10(5): 1299-1319, 1998. Example ======= Refer to `example' directory for a simple demonstration.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值