Installation and Use of cmatrix in linux, linuxcmatrix
Installation Process
Wget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gzTar xvf cmatrix-1.2a.tar.gzCd cmatrix-1.2aYum install ncurses-devel./Configure make install
Instructions for use
Install and use cmatrix in Linux
Cmatrix installation in Linux
Wget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gzTar xvf cmatrix-1.2a.tar.gzCd cmatrix-1.2aYum install ncurses-devel./Configure make install
Linux under Cmatrix installation processwget http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gzTar xvf cmatrix-1.2a.tar.gzCD cmatrix-1.2aYum Install Ncurses-devel./configure make make installCmatrix Instructions for useCmatrix [-ABBFLOHNSVX] [-C color]Options-A: Asynchro
Tags: image exploration inux is the Gen Agent support window LinCmatrix2018-07-22 09:35:06installation~#sudoinstall CmatrixExecution~# CmatrixOptions-A: Asynchronous scrolling (default)-B: Random Bold-B: All Bold-O: Scroll with old style (not good)-H: Get help information-N: Do not use bold (default)-x:x window mode, as if the symbol is not the same as the display-V: Display version information-U: Refresh frequency, 0-9, that is, the speed of scrolling-C: Display color, support green (default),
overloading ). In order to prevent everyone from looking at the code and forgetting to look at it, I put this sentence above for example:Matrix67 original, please indicate the source of the post.
#include #define SIZE (1#define MAX_SIZE 32using namespace std;
class CMatrix{public:long element[MAX_SIZE][MAX_SIZE];void setSize(int);void setModulo(int);CMatrix operator* (
The Linux terminal demonstrates the classic interface of "hacker empire"
Linux is a very interesting operating system. Many people like the GUI and have a good visual experience. Many people think that Linux is the boring Terminal interface, however, in fact, there are still many interesting methods on Linux terminals. If you want to have some fun in the command line, there are a lot of commands that bring you fun.
Does the matrix of the hacker empire look cool! Use
). In order to prevent everyone from looking at the code and forgetting to look at it, I put this sentence above for example:Matrix67 original, please indicate the source of the post.
# Include # Define Size (1 # Define Max_size 32 Using Namespace STD; Class Cmatrix { Public : Long Element [max_size] [max_size]; Void Setsize ( Int ); Void Setmodulo ( Int ); Cmatrix Operator * (
this topic is converted to our previous example 8.Later I wrote a copy of the source code for this question. You can see the application of bit operation again.1#include 2 #defineSIZE (13 #defineMax_size 324 using namespacestd;5 6 classCmatrix7 {8 Public:9 LongElement[max_size][max_size];Ten voidSetSize (int); One voidSetmodulo (int); ACmatrixoperator*(Cmatrix); -Cmatrix Power (int); - Private: the intsi
area of the same size to draw bitmap BMP = bitmap. createbitmap (imgwidth, imgheight, config. argb_8888); colormatrix cmatrix = new colormatrix (); // sets the saturation cmatrix. setsaturation (float) (Progress/100.0); P Aint paint = new paint (); paint. setcolorfilter (New colormatrixcolorfilter (cmatrix); canvas = new canvas (BMP); // draw an existing bitmap
used to complete these operations is the algorithm./*abstract data type definitions for matrices*/Templateclasscmatrix{Private: ElementType*data; introws; intcols; Public: Cmatrix (intMintN);//Create an empty matrix of m*n intGetmaxrow ();//returns the total number of rows in a matrix intGetmaxcol ();//returns the total number of columns in a matrixElementType Getentry (intIintj);//returns the element in column J of line Ifriend
saturation parameter 0 to correspond to the gray image, and 1 to do not change the public void setscale.(Float rscale, float gscale, float bscale, float ascale) set the R, G, B, A and other variables of the Matrix to the corresponding multiples. The corresponding API is setscale (,). This function actually corresponds to the value on the diagonal line of the color matrix. The following example makes some processing of the image, which is relatively simple:
Private void usecolormatrix (canvas, p
Tags: Linux entertainmentLinux Entertainment Command Finishing
All the programmers who face black words on the white background, Linux can make some kind of entertainment command like cold jokes = =#,To keep the blog constantly updated, lazy dots some fun today
1. SL (Running small train)The goal seems to be the egg after LS knocked wrong[[emailprotected] ~]# yum install sl[[emailprotected] ~]# slAs follows2. Cowsay Text graph + text (not very likely to describe this command = =) /
Project backgroundBuilding a mathematical model of a pipe network from the point of view of connectivity is actually simple:The A is referred to as the connected matrix of the pipe network. It can be seen from the definition that the pipe network is considered a one-way map here.According to the law of conservation of the node mass, in each node of the water supply network, the quality of the flow into the node should be equal to the quality of the node, so that the nodal flow balance equations
() print 'The primary value of amatrix' for i in range(aMatrix.numRows()): for j in range(aMatrix.numCols()): print '%s ' % aMatrix[i,j], print '\r' print '\nThe primary value of bmatrix' for i in range(bMatrix.numRows()): for j in range(bMatrix.numCols()): print '%s ' % bMatrix[i,j], print '\r' print '\nThe primary value of fmatrix' for i in range(fMatrix.numRows()): for j in range(fMa
1. Polynomial-fitting function:Y= A0 + a1x + a2x^2 + ... + akx^k (where k is fit times)When the k=1 is linear fit, the k=2 is a two-time polynomial ... Three-time polynomial.2. Least squares principle matrix algorithm principle:X*a=yA= ((X ' *x)-1) *x ' *y|-X1 x1^2 ... x1^k| |y0||-X2 x2^2 ... x2^k| |a0| |y1||... | |a1| |. ||... | |. | = |. ||... | |ak| |. ||-Xn xn^2 ... xn^k| |yn|where x is the initial Vandermonde matrix, A is the coefficient vector, Y is the dependent
##"##""#####"###""#"" ###### "" ################ "# mm" "# mm" ### mm # # "mm #" # mm "" # m #"###
This command even provides some color and font formats.
Root @ tecmint :~ # Toilet-f mono12-F metal Tecmint.com
Tip: Figlet is another command with similar effects as toilet.
10. Command: cmatrix
You may watch many Hollywood movies 'black guest authorization' and be fascinated by the ability of Neo to see everything in the matrix, or you may think of a
' # Add Amatrix and Bmatrix to Cmatrix Cmatrix = Amatrix + Bmatrix print ' \nthe value of Cmatrix (Amatrix + bmatrix) ' For I in Range (Cmatrix.numrows ()): for J in Range (Cmatrix.numcols ()) : print '%s '% cmatrix[i,j], print ' \ R ' # sub Amatrix and Bmatrix to Dmatrix Dmatrix = Amatri X-bmatrix print ' \nthe value
One of the most powerful features of Linux is that it has a large number of small command tools, which can be called the most interesting part of it. Among these many useful commands and scripts, you will find that a small number of command tools are not so useful if you do not want to say that they are completely useless. Your Linux command
One of the most powerful features of Linux is that it has a large number of small command tools, which can be called the most interesting part of it. Among
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.