📄 matrix.html
字号:
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A./B</DL></DD></DL><HR><A NAME="arrayLeftDivide(Jama.Matrix)"><!-- --></A><H3>arrayLeftDivide</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>arrayLeftDivide</B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</PRE><DL><DD>Element-by-element left division, C = A.\B<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.\B</DL></DD></DL><HR><A NAME="arrayLeftDivideEquals(Jama.Matrix)"><!-- --></A><H3>arrayLeftDivideEquals</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>arrayLeftDivideEquals</B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</PRE><DL><DD>Element-by-element left division in place, A = A.\B<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>A.\B</DL></DD></DL><HR><A NAME="times(double)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>times</B>(double s)</PRE><DL><DD>Multiply a matrix by a scalar, C = s*A<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>s*A</DL></DD></DL><HR><A NAME="timesEquals(double)"><!-- --></A><H3>timesEquals</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>timesEquals</B>(double s)</PRE><DL><DD>Multiply a matrix by a scalar in place, A = s*A<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - scalar<DT><B>Returns:</B><DD>replace A by s*A</DL></DD></DL><HR><A NAME="times(Jama.Matrix)"><!-- --></A><H3>times</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>times</B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</PRE><DL><DD>Linear algebraic matrix multiplication, A * B<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - another matrix<DT><B>Returns:</B><DD>Matrix product, A * B<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - Matrix inner dimensions must agree.</DL></DD></DL><HR><A NAME="lu()"><!-- --></A><H3>lu</H3><PRE>public <A HREF="../Jama/LUDecomposition.html">LUDecomposition</A> <B>lu</B>()</PRE><DL><DD>LU Decomposition<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>LUDecomposition<DT><B>See Also: </B><DD><A HREF="../Jama/LUDecomposition.html"><CODE>LUDecomposition</CODE></A></DL></DD></DL><HR><A NAME="qr()"><!-- --></A><H3>qr</H3><PRE>public <A HREF="../Jama/QRDecomposition.html">QRDecomposition</A> <B>qr</B>()</PRE><DL><DD>QR Decomposition<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>QRDecomposition<DT><B>See Also: </B><DD><A HREF="../Jama/QRDecomposition.html"><CODE>QRDecomposition</CODE></A></DL></DD></DL><HR><A NAME="chol()"><!-- --></A><H3>chol</H3><PRE>public <A HREF="../Jama/CholeskyDecomposition.html">CholeskyDecomposition</A> <B>chol</B>()</PRE><DL><DD>Cholesky Decomposition<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>CholeskyDecomposition<DT><B>See Also: </B><DD><A HREF="../Jama/CholeskyDecomposition.html"><CODE>CholeskyDecomposition</CODE></A></DL></DD></DL><HR><A NAME="svd()"><!-- --></A><H3>svd</H3><PRE>public <A HREF="../Jama/SingularValueDecomposition.html">SingularValueDecomposition</A> <B>svd</B>()</PRE><DL><DD>Singular Value Decomposition<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>SingularValueDecomposition<DT><B>See Also: </B><DD><A HREF="../Jama/SingularValueDecomposition.html"><CODE>SingularValueDecomposition</CODE></A></DL></DD></DL><HR><A NAME="eig()"><!-- --></A><H3>eig</H3><PRE>public <A HREF="../Jama/EigenvalueDecomposition.html">EigenvalueDecomposition</A> <B>eig</B>()</PRE><DL><DD>Eigenvalue Decomposition<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>EigenvalueDecomposition<DT><B>See Also: </B><DD><A HREF="../Jama/EigenvalueDecomposition.html"><CODE>EigenvalueDecomposition</CODE></A></DL></DD></DL><HR><A NAME="solve(Jama.Matrix)"><!-- --></A><H3>solve</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>solve</B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</PRE><DL><DD>Solve A*X = B<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - right hand side<DT><B>Returns:</B><DD>solution if A is square, least squares solution otherwise</DL></DD></DL><HR><A NAME="solveTranspose(Jama.Matrix)"><!-- --></A><H3>solveTranspose</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>solveTranspose</B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</PRE><DL><DD>Solve X*A = B, which is also A'*X' = B'<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - right hand side<DT><B>Returns:</B><DD>solution if A is square, least squares solution otherwise.</DL></DD></DL><HR><A NAME="inverse()"><!-- --></A><H3>inverse</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>inverse</B>()</PRE><DL><DD>Matrix inverse or pseudoinverse<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>inverse(A) if A is square, pseudoinverse otherwise.</DL></DD></DL><HR><A NAME="det()"><!-- --></A><H3>det</H3><PRE>public double <B>det</B>()</PRE><DL><DD>Matrix determinant<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>determinant</DL></DD></DL><HR><A NAME="rank()"><!-- --></A><H3>rank</H3><PRE>public int <B>rank</B>()</PRE><DL><DD>Matrix rank<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>effective numerical rank, obtained from SVD.</DL></DD></DL><HR><A NAME="cond()"><!-- --></A><H3>cond</H3><PRE>public double <B>cond</B>()</PRE><DL><DD>Matrix condition (2 norm)<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>ratio of largest to smallest singular value.</DL></DD></DL><HR><A NAME="trace()"><!-- --></A><H3>trace</H3><PRE>public double <B>trace</B>()</PRE><DL><DD>Matrix trace.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>sum of the diagonal elements.</DL></DD></DL><HR><A NAME="random(int, int)"><!-- --></A><H3>random</H3><PRE>public static <A HREF="../Jama/Matrix.html">Matrix</A> <B>random</B>(int m, int n)</PRE><DL><DD>Generate matrix with random elements<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.<DT><B>Returns:</B><DD>An m-by-n matrix with uniformly distributed random elements.</DL></DD></DL><HR><A NAME="identity(int, int)"><!-- --></A><H3>identity</H3><PRE>public static <A HREF="../Jama/Matrix.html">Matrix</A> <B>identity</B>(int m, int n)</PRE><DL><DD>Generate identity matrix<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.<DT><B>Returns:</B><DD>An m-by-n matrix with ones on the diagonal and zeros elsewhere.</DL></DD></DL><HR><A NAME="print(int, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(int w, int d)</PRE><DL><DD>Print the matrix to stdout. Line the elements up in columns with a Fortran-like 'Fw.d' style format.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - Column width.<DD><CODE>d</CODE> - Number of digits after the decimal.</DL></DD></DL><HR><A NAME="print(java.io.PrintWriter, int, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.io.PrintWriter output, int w, int d)</PRE><DL><DD>Print the matrix to the output stream. Line the elements up in columns with a Fortran-like 'Fw.d' style format.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>output</CODE> - Output stream.<DD><CODE>w</CODE> - Column width.<DD><CODE>d</CODE> - Number of digits after the decimal.</DL></DD></DL><HR><A NAME="print(java.text.NumberFormat, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.text.NumberFormat format, int width)</PRE><DL><DD>Print the matrix to stdout. Line the elements up in columns. Use the format object, and right justify within columns of width characters. Note that is the matrix is to be read back in, you probably will want to use a NumberFormat that is set to US Locale.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - A Formatting object for individual elements.<DD><CODE>width</CODE> - Field width for each column.<DT><B>See Also: </B><DD><CODE>DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols)</CODE></DL></DD></DL><HR><A NAME="print(java.io.PrintWriter, java.text.NumberFormat, int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.io.PrintWriter output, java.text.NumberFormat format, int width)</PRE><DL><DD>Print the matrix to the output stream. Line the elements up in columns. Use the format object, and right justify within columns of width characters. Note that is the matrix is to be read back in, you probably will want to use a NumberFormat that is set to US Locale.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>output</CODE> - the output stream.<DD><CODE>format</CODE> - A formatting object to format the matrix elements<DD><CODE>width</CODE> - Column width.<DT><B>See Also: </B><DD><CODE>DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols)</CODE></DL></DD></DL><HR><A NAME="read(java.io.BufferedReader)"><!-- --></A><H3>read</H3><PRE>public static <A HREF="../Jama/Matrix.html">Matrix</A> <B>read</B>(java.io.BufferedReader input) throws java.io.IOException</PRE><DL><DD>Read a matrix from a stream. The format is the same the print method, so printed matrices can be read back in (provided they were printed using US Locale). Elements are separated by whitespace, all the elements for each row appear on a single line, the last row is followed by a blank line.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../Jama/LUDecomposition.html"><B>PREV CLASS</B></A> <A HREF="../Jama/QRDecomposition.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Matrix.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -