亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? matrix.java

?? 赫夫曼編譯碼器: 用哈夫曼編碼進行通信可以大大提高信道利用率
?? JAVA
字號:
// An implementation of a rectangular vector.// (c) 1998, 2001 duane a. baileypackage structure;/** * An implementation of rectangular vectors. * This implementation of a Matrix is minimal.  Few operations * are provided, and no support for mathematical operations * is considered. * <P> * Example Usage: * <P> * <pre> * public static void main(String[] argv){ *	//create an array of arrays to bet copied into the matrix *	int[][] test = new int[][]{new int[]{1,2,3}, *				   new int[]{4,5,6},  *				   new int[]{7,8,9}}; * *	//create the matrix *	Matrix testMatrix = new {@link #Matrix(int, int) Matrix(test.length, test[0].length)}; *	 *	//copy the 2-d array into the matrix *	for(int i = 0; i < test.length; i++){ *	    for(int j = 0; j < test[0].length; j++){ *		testMatrix.{@link #set(int, int, Object) set(i,j,new Integer(test[i][j]))}; *	    } *	} * *	//print out the matrix *	System.out.println(testMatrix); *  } * </pre> * @version $Id: Matrix.java,v 4.1 2000/12/29 02:57:55 bailey Exp bailey $ * @author, 2001 duane a. bailey */public class Matrix{    protected int height, width; // size of matrix    protected Vector rows;       // vector of row vectors    /**     * Construct an empty matrix.     *     * @post constructs empty matrix<br>     *     */    public Matrix()    {	this(0,0);    }    /**     * Constructs a matrix such that all values are null.     *     * @pre h >= 0, w >= 0;<br>     * @post constructs an h row by w column matrix<br>     *     * @param h Height of the matrix.     * @param w Width of the matrix.     */    public Matrix(int h, int w)    {	height = h;  // initialize height and width	width = w;	// allocate a vector of rows	rows = new Vector(height);	for (int r = 0; r < height; r++)	{   // each row is allocated and filled with nulls	    Vector theRow = new Vector(width);	    rows.add(theRow);	    for (int c = 0; c < width; c++)	    {		theRow.add(null);	    }	}    }    /**     * Fetch an element from the matrix.     * @pre 0 <= row < height(), 0 <= col < width()<br>     * @post returns object at (row, col)<br>     *     * @param row The row of the element     * @param col The column of the element     * @return Object located at matrix position (row, col)     */    public Object get(int row, int col)    {	Assert.pre(0 <= row && row < height, "Row in bounds.");	Assert.pre(0 <= col && col < width, "Col in bounds.");	Vector theRow = (Vector)rows.get(row);	return theRow.get(col);    }    /**     * Change the value at location (row, col)     * @pre 0 <= row < height(), 0 <= col < width()<br>     * @post changes location (row, col) to value<br>     *     * @param value The new Object reference (possibly null).     * @param row The row of the value to be changed.     * @param col The column of the value to be changed.     */    public void set(int row, int col, Object value)    {	Assert.pre(0 <= row && row < height, "Row in bounds.");	Assert.pre(0 <= col && col < width, "Col in bounds.");	Vector theRow = (Vector)rows.get(row);	theRow.set(col,value);    }    /**     * Add a new row, whose index will be r.     *     * @pre 0 <= r < height()<br>     * @post inserts row of null values to be row r<br>     *     * @param r The index of the  newly inserted row.     */    public void addRow(int r)    {	Assert.pre(0 <= r && r < width, "Row in bounds.");	height++;	Vector theRow = new Vector(width);	for (int c = 0; c < width; c++)	{	    theRow.add(null);	}	rows.add(r,theRow);    }    /**     * Add a new column, whose index will be c.     *     * @pre 0 <= c < width()<br>     * @post inserts column of null values to be column c<br>     *     * @param c The index of the newly inserted column.     */    public void addCol(int c)    {	Assert.pre(0 <= c && c < width, "Col in bounds.");	width++;	for (int r = 0; r < height; r++)	{	    Vector theRow = (Vector)rows.get(r);	    theRow.add(c,null);	}    }    /**     * Remove the row whose index is r.     * The row is returned as a vector.     * @pre 0 <= r < height()<br>     * @post removes row r and returns it as a Vector     *     * @param r The index of the to-be-removed row.     * @return A vector of values once in the row.     */    public Vector removeRow(int r)    {	Assert.pre(0 <= r && r < height,"There is a row to be removed.");	Vector result = (Vector)rows.get(r);	height--;	rows.remove(r);	return result;    }    /**     * Remove a column, whose index is c.     * @pre 0 <= c < width<br>     * @post removes column c and returns it as a vector<br>     *     * @param c The index of the column to be removed.     * @return A vector of the values removed.     */    public Vector removeCol(int c)    {	Assert.pre(0 <= c && c < width,"There is a column to be removed.");	Vector result = new Vector(height);	width--;	for (int r = 0; r < height; r++)	{	    Vector theRow = (Vector)rows.get(r);	    result.add(theRow.get(c));	    theRow.remove(c);	}	return result;    }    /**     * Return the width of the matrix.     * @post returns number of columns in matrix<br>     *     * @return The number of columns in the matrix.     */    public int width()    {	return width;    }    /**     * Return the height of the matrix.     *     * @post returns number of rows in matrix<br>     *     * @return The number of rows in the matrix.     */    public int height()    {	return height;    }    /**     * Construct a string representation of the matrix.     * @post returns string description of matrix.<br>     *     * @return A string, representing the matrix.     */    public String toString()    {	StringBuffer s = new StringBuffer();	s.append("<Matrix:\n");	for (int r = 0; r < height; r++)	{	    for (int c = 0; c < width; c++)	    {		s.append("  <Row "+r+", Col "+c+", value=");		s.append(get(r,c)+">");	    }	    s.append("\n");	}	s.append(">");	return s.toString();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
老司机精品视频导航| 91国产成人在线| 免费成人在线观看| 日韩av在线免费观看不卡| 亚洲精品视频免费观看| 亚洲欧洲成人自拍| 亚洲欧洲www| 亚洲午夜久久久久| 日韩精品一二三区| 麻豆一区二区三| 老司机精品视频在线| 国产另类ts人妖一区二区| 国产精品 欧美精品| 国产精品一线二线三线精华| 从欧美一区二区三区| 91啪亚洲精品| 欧美视频一区二区三区在线观看| 在线观看亚洲一区| 欧美午夜精品理论片a级按摩| 在线播放91灌醉迷j高跟美女 | 一区二区三区高清不卡| 一区二区欧美国产| 美女网站色91| 福利一区二区在线| 欧美性三三影院| 久久日韩精品一区二区五区| 国产精品久久久久毛片软件| 亚洲午夜久久久久久久久电影网| 免费av成人在线| 国产91清纯白嫩初高中在线观看| 在线国产亚洲欧美| 精品国产伦一区二区三区免费| 国产精品亲子伦对白| 亚洲午夜久久久久久久久久久| 韩国中文字幕2020精品| 97久久精品人人做人人爽50路| 欧美日韩一级黄| 国产性做久久久久久| 亚洲综合在线观看视频| 精品一区二区在线看| 91片黄在线观看| 久久久久国产一区二区三区四区| 一区二区三区蜜桃网| 国产乱子伦一区二区三区国色天香| 91丨porny丨户外露出| 欧美一级视频精品观看| 成人欧美一区二区三区黑人麻豆| 理论片日本一区| 色综合天天性综合| 久久综合九色综合97婷婷女人 | 亚洲桃色在线一区| 日韩精品电影在线观看| 99re在线视频这里只有精品| 久久只精品国产| 日韩中文字幕麻豆| 色综合天天狠狠| 欧美日韩五月天| 欧美一区二区久久| 国产精品理伦片| 精品一区二区三区欧美| 色哟哟在线观看一区二区三区| 亚洲精品在线网站| 亚洲成人动漫av| 色8久久精品久久久久久蜜| 日本一区二区动态图| 国内精品久久久久影院薰衣草| 正在播放亚洲一区| 一区二区三区欧美日| 一本色道a无线码一区v| 亚洲欧洲av在线| 成人天堂资源www在线| 久久精品亚洲麻豆av一区二区| 蜜桃精品视频在线| 91麻豆精品国产91久久久久久久久| 亚洲午夜在线电影| 欧美色图第一页| 亚洲国产一区视频| 91官网在线观看| 国产精品国产三级国产专播品爱网| 精品一区二区日韩| 日韩片之四级片| 麻豆久久一区二区| 制服丝袜亚洲色图| 久草精品在线观看| 精品国产在天天线2019| 亚洲va在线va天堂| 欧美日韩激情一区| 美女在线一区二区| 精品剧情v国产在线观看在线| 日本一区中文字幕| 精品毛片乱码1区2区3区| 国产盗摄精品一区二区三区在线| 日本一区免费视频| 成人h精品动漫一区二区三区| 国产精品护士白丝一区av| 91亚洲精品乱码久久久久久蜜桃| 麻豆精品视频在线观看免费| 91视视频在线直接观看在线看网页在线看| 国产精品久久久久久久浪潮网站| 99re热这里只有精品视频| 一区二区在线观看av| 欧美丰满一区二区免费视频| 国产综合一区二区| 一色桃子久久精品亚洲| 欧美日韩精品一二三区| 激情综合色播激情啊| 国产精品国产馆在线真实露脸| 在线观看日韩毛片| 美腿丝袜在线亚洲一区| 椎名由奈av一区二区三区| 欧美日韩国产高清一区二区三区 | 欧美蜜桃一区二区三区| 久久精品久久综合| 国产精品对白交换视频 | 久久成人麻豆午夜电影| 中文字幕字幕中文在线中不卡视频| 欧美三级日韩在线| 国产福利一区二区三区视频在线| 亚洲综合色噜噜狠狠| 久久综合五月天婷婷伊人| 色狠狠桃花综合| 国产激情一区二区三区| 天堂av在线一区| 亚洲欧美另类久久久精品| 欧美成人精品福利| 欧亚洲嫩模精品一区三区| 韩国成人在线视频| 一区二区三区中文免费| 久久久久久**毛片大全| 制服丝袜日韩国产| 91视频一区二区| 国产高清不卡二三区| 日韩精品亚洲一区| 亚洲一区二区欧美| 中文字幕日韩一区二区| 69堂成人精品免费视频| 欧洲生活片亚洲生活在线观看| 国产精品一二三区| 免费成人小视频| 日本vs亚洲vs韩国一区三区二区 | 欧美成va人片在线观看| 欧美亚洲另类激情小说| 91色在线porny| 成人av片在线观看| 国产高清不卡一区| 国产精品一区在线| 精品一区二区三区欧美| 另类调教123区| 卡一卡二国产精品 | 国产激情一区二区三区桃花岛亚洲| 蜜桃传媒麻豆第一区在线观看| 午夜国产精品一区| 午夜一区二区三区视频| 亚洲国产综合91精品麻豆| 一区av在线播放| 亚洲国产精品综合小说图片区| 亚洲男人的天堂网| 亚洲人成网站影音先锋播放| 亚洲日韩欧美一区二区在线| 亚洲另类在线一区| 一区二区三区精品视频在线| 午夜欧美电影在线观看| 午夜欧美大尺度福利影院在线看| 日本亚洲三级在线| 美女在线观看视频一区二区| 激情都市一区二区| 国产不卡一区视频| av不卡免费在线观看| 91蜜桃婷婷狠狠久久综合9色| 91官网在线观看| 欧美一级一区二区| 久久精品人人做| 亚洲日本欧美天堂| 亚洲成a人在线观看| 麻豆久久一区二区| 成人国产在线观看| 在线看不卡av| 日韩精品一区国产麻豆| xf在线a精品一区二区视频网站| 国产精品美女久久久久av爽李琼| 一卡二卡三卡日韩欧美| 日韩av在线播放中文字幕| 国产精品一区在线| 色综合久久久久网| 日韩欧美一级在线播放| 国产精品网友自拍| 亚洲影视在线观看| 国产一区二区三区蝌蚪| 91国在线观看| 欧美精品一区在线观看| 一区精品在线播放| 蜜桃久久久久久| 色视频成人在线观看免| 精品奇米国产一区二区三区| 中文字幕一区二区三区在线播放 | 蜜臀精品久久久久久蜜臀| 成人做爰69片免费看网站| 制服丝袜亚洲网站| 最好看的中文字幕久久| 久久99深爱久久99精品|