⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix.html

📁 wecome to sumathi computer centre is the centre for
💻 HTML
字号:
<!--NewPage--><html><head><!-- Generated by javadoc on Fri Sep 20 20:19:15  1996 --><a name="_top_"></a><title>Class Matrix</title></head><body><h1>  Class Matrix (ver. 1.3)</h1><pre><!a href="java.lang.Object.html#_top_">java.lang.Object</a>   |   +----Matrix</pre><hr><dl>  <dt> public class <b>Matrix</b>  <dt> extends <!a href="java.lang.Object.html#_top_">Object</a></dl>Matrix is a class for matrix objects with basic linear calculation methods.<hr><a name="index"></a><h2>  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl>  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#Matrix(int)"><b>Matrix</b></a>(int)  <dd> Construct a square matrix object.  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#Matrix(int, int)"><b>Matrix</b></a>(int, int)  <dd> Construct a rectangle matrix object.</dl><h2>  <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl>  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#copy()"><b>copy</b></a>()  <dd> Copy the matrix.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#crossSqDistance(Matrix)"><b>crossSqDistance</b></a>(Matrix)  <dd> Cross squared Euclidean distance Matrix: Z_{ij} = ||X_i - Y_j||^2   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#diagonal()"><b>diagonal</b></a>()  <dd> If the matrix is a row or column vector, make a diagonal matrix from it.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#dividedBy(Matrix)"><b>dividedBy</b></a>(Matrix)  <dd> Matrix division: X\Y.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#dividedBy(Matrix, int)"><b>dividedBy</b></a>(Matrix, int)  <dd> Matrix division with bandwidth: X\Y.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#eigenvalues(double, int)"><b>eigenvalues</b></a>(double, int)  <dd> Make a row vector including the eigenvalues of the matrix.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#horizontalSum()"><b>horizontalSum</b></a>()  <dd> Make a horizontal-summation vector.  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#identity(int)"><b>identity</b></a>(int)  <dd> Make an identity matrix.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#linearConv(double, double, Matrix)"><b>linearConv</b></a>(double, double, Matrix)  <dd> Linear conversion: a*X + b*Y.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#mulipliedEntriesWith(Matrix)"><b>mulipliedEntriesWith</b></a>(Matrix)  <dd> Multiply entries.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#multipliedBy(double)"><b>multipliedBy</b></a>(double)  <dd> Scalar product: aX.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#multipliedBy(Matrix)"><b>multipliedBy</b></a>(Matrix)  <dd> Matrix multiplication: X*Y.  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#random(int, int)"><b>random</b></a>(int, int)  <dd> Same as random(row, col, 1).  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#random(int, int, int)"><b>random</b></a>(int, int, int)  <dd>    Make a standard Gaussian random Matrix.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#sumEntries()"><b>sumEntries</b></a>()  <dd> Summation of all entries.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#sumSqrEntries()"><b>sumSqrEntries</b></a>()  <dd> Summation of squared entries.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#transpose()"><b>transpose</b></a>()  <dd> Transpose: X'.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#updateDivideByRowVector(Matrix)"><b>updateDivideByRowVector</b></a>(Matrix)  <dd> X_{ij} = X_{ij}/v_{j}.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#updateExp()"><b>updateExp</b></a>()  <dd> Update by exponential : exp(X_{ij})  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#updateLinearConv(double, double, Matrix)"><b>updateLinearConv</b></a>(double, double, Matrix)  <dd> Update by Linear conversion: X = a*X + b*Y.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#verticalSum()"><b>verticalSum</b></a>()  <dd> Make a vertical-summation vector.</dl><a name="constructors"></a><h2>  <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="Matrix"></a><a name="Matrix(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Matrix</b><pre>  public Matrix(int n)</pre><dl>  <dd> Construct a square matrix object.  <dl>    <dt> <b>Parameters:</b>    <dd> n - size  </dl></dl><a name="Matrix(int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>Matrix</b><pre>  public Matrix(int row,                int col)</pre><dl>  <dd> Construct a rectangle matrix object.  <dl>    <dt> <b>Parameters:</b>    <dd> row - number of row    <dd> col - number of column  </dl></dl><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="identity(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="identity"><b>identity</b></a><pre>  public static <a href="#_top_">Matrix</a> identity(int n)</pre><dl>  <dd> Make an identity matrix.  <dl>    <dt> <b>Parameters:</b>    <dd> n - size  </dl></dl><a name="random(int, int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="random"><b>random</b></a><pre>  public static <a href="#_top_">Matrix</a> random(int row,                              int col,                              int seed)</pre><dl>  <dd> Make a standard Gaussian random Matrix.  <dl>    <dt> <b>Parameters:</b>    <dd> row - number of row    <dd> col - number of column    <dd> seed - random seed  </dl></dl><a name="random(int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="random"><b>random</b></a><pre>  public static <a href="#_top_">Matrix</a> random(int row,                              int col)</pre><dl>  <dd> Same as random(row, col, 1).</dl><a name="copy()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="copy"><b>copy</b></a><pre>  public <a href="#_top_">Matrix</a> copy()</pre><dl>  <dd> Copy the matrix.</dl><a name="transpose()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="transpose"><b>transpose</b></a><pre>  public <a href="#_top_">Matrix</a> transpose()</pre><dl>  <dd> Transpose: X'.</dl><a name="linearConv(double, double, Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="linearConv"><b>linearConv</b></a><pre>  public <a href="#_top_">Matrix</a> linearConv(double a,                           double b,                           <a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Linear conversion: a*X + b*Y.</dl><a name="updateLinearConv(double, double, Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="updateLinearConv"><b>updateLinearConv</b></a><pre>  public void updateLinearConv(double a,                               double b,                               <a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Update by Linear conversion: X = a*X + b*Y.</dl><a name="multipliedBy(double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="multipliedBy"><b>multipliedBy</b></a><pre>  public <a href="#_top_">Matrix</a> multipliedBy(double a)</pre><dl>  <dd> Scalar product: aX.</dl><a name="multipliedBy(Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="multipliedBy"><b>multipliedBy</b></a><pre>  public <a href="#_top_">Matrix</a> multipliedBy(<a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Matrix multiplication: X*Y.</dl><a name="dividedBy(Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="dividedBy"><b>dividedBy</b></a><pre>  public <a href="#_top_">Matrix</a> dividedBy(<a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Matrix division: X\Y.</dl><a name="dividedBy(Matrix, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="dividedBy"><b>dividedBy</b></a><pre>  public <a href="#_top_">Matrix</a> dividedBy(<a href="#_top_">Matrix</a> Y,                          int bw)</pre><dl>  <dd> Matrix division with bandwidth: X\Y.</dl><a name="crossSqDistance(Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="crossSqDistance"><b>crossSqDistance</b></a><pre>  public <a href="#_top_">Matrix</a> crossSqDistance(<a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Cross squared Euclidean distance Matrix: Z_{ij} = ||X_i - Y_j||^2</dl><a name="updateExp()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="updateExp"><b>updateExp</b></a><pre>  public void updateExp()</pre><dl>  <dd> Update by exponential : exp(X_{ij})</dl><a name="horizontalSum()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="horizontalSum"><b>horizontalSum</b></a><pre>  public <a href="#_top_">Matrix</a> horizontalSum()</pre><dl>  <dd> Make a horizontal-summation vector.</dl><a name="verticalSum()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="verticalSum"><b>verticalSum</b></a><pre>  public <a href="#_top_">Matrix</a> verticalSum()</pre><dl>  <dd> Make a vertical-summation vector.</dl><a name="sumEntries()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="sumEntries"><b>sumEntries</b></a><pre>  public double sumEntries()</pre><dl>  <dd> Summation of all entries.</dl><a name="sumSqrEntries()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="sumSqrEntries"><b>sumSqrEntries</b></a><pre>  public double sumSqrEntries()</pre><dl>  <dd> Summation of squared entries.</dl><a name="mulipliedEntriesWith(Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="mulipliedEntriesWith"><b>mulipliedEntriesWith</b></a><pre>  public <a href="#_top_">Matrix</a> mulipliedEntriesWith(<a href="#_top_">Matrix</a> Y)</pre><dl>  <dd> Multiply entries.</dl><a name="updateDivideByRowVector(Matrix)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="updateDivideByRowVector"><b>updateDivideByRowVector</b></a><pre>  public void updateDivideByRowVector(<a href="#_top_">Matrix</a> vec)</pre><dl>  <dd> X_{ij} = X_{ij}/v_{j}.</dl><a name="diagonal()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="diagonal"><b>diagonal</b></a><pre>  public <a href="#_top_">Matrix</a> diagonal()</pre><dl>  <dd> If the matrix is a row or column vector, make a diagonal matrix from it.Otherwise extract its diagonal as a row vector.</dl><a name="eigenvalues(double, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="eigenvalues"><b>eigenvalues</b></a><pre>  public <a href="#_top_">Matrix</a> eigenvalues(double eps,                            int lmax)</pre><dl>  <dd> Make a row vector including the eigenvalues of the matrix.  <dl>    <dt> <b>Parameters:</b>    <dd> eps - allowable absolute value of off-diagonal entries  </dl></dl><hr><p><a href="http://www.aist.go.jp/NIBH/~b0616/">Akio Utsugi</a><p>National Institute of Bioscience and Human-Technology<br><address><a href="mailto:utsugi@nibh.go.jp">utsugi@nibh.go.jp</a></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -