📄 matrix.html
字号:
A = A - B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#norm1()">norm1</A></B>()</CODE><BR> One norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#norm2()">norm2</A></B>()</CODE><BR> Two norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#normF()">normF</A></B>()</CODE><BR> Frobenius norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#normInf()">normInf</A></B>()</CODE><BR> Infinity norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#plus(Jama.Matrix)">plus</A></B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</CODE><BR> C = A + B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#plusEquals(Jama.Matrix)">plusEquals</A></B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</CODE><BR> A = A + B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#print(int, int)">print</A></B>(int w, int d)</CODE><BR> Print the matrix to stdout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#print(java.text.NumberFormat, int)">print</A></B>(java.text.NumberFormat format, int width)</CODE><BR> Print the matrix to stdout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#print(java.io.PrintWriter, int, int)">print</A></B>(java.io.PrintWriter output, int w, int d)</CODE><BR> Print the matrix to the output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#print(java.io.PrintWriter, java.text.NumberFormat, int)">print</A></B>(java.io.PrintWriter output, java.text.NumberFormat format, int width)</CODE><BR> Print the matrix to the output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/QRDecomposition.html">QRDecomposition</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#qr()">qr</A></B>()</CODE><BR> QR Decomposition</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#random(int, int)">random</A></B>(int m, int n)</CODE><BR> Generate matrix with random elements</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#rank()">rank</A></B>()</CODE><BR> Matrix rank</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#read(java.io.BufferedReader)">read</A></B>(java.io.BufferedReader input)</CODE><BR> Read a matrix from a stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#set(int, int, double)">set</A></B>(int i, int j, double s)</CODE><BR> Set a single element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#setMatrix(int[], int[], Jama.Matrix)">setMatrix</A></B>(int[] r, int[] c, <A HREF="../Jama/Matrix.html">Matrix</A> X)</CODE><BR> Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#setMatrix(int[], int, int, Jama.Matrix)">setMatrix</A></B>(int[] r, int j0, int j1, <A HREF="../Jama/Matrix.html">Matrix</A> X)</CODE><BR> Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#setMatrix(int, int, int[], Jama.Matrix)">setMatrix</A></B>(int i0, int i1, int[] c, <A HREF="../Jama/Matrix.html">Matrix</A> X)</CODE><BR> Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#setMatrix(int, int, int, int, Jama.Matrix)">setMatrix</A></B>(int i0, int i1, int j0, int j1, <A HREF="../Jama/Matrix.html">Matrix</A> X)</CODE><BR> Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#solve(Jama.Matrix)">solve</A></B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</CODE><BR> Solve A*X = B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#solveTranspose(Jama.Matrix)">solveTranspose</A></B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</CODE><BR> Solve X*A = B, which is also A'*X' = B'</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/SingularValueDecomposition.html">SingularValueDecomposition</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#svd()">svd</A></B>()</CODE><BR> Singular Value Decomposition</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#times(double)">times</A></B>(double s)</CODE><BR> Multiply a matrix by a scalar, C = s*A</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#times(Jama.Matrix)">times</A></B>(<A HREF="../Jama/Matrix.html">Matrix</A> B)</CODE><BR> Linear algebraic matrix multiplication, A * B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#timesEquals(double)">timesEquals</A></B>(double s)</CODE><BR> Multiply a matrix by a scalar in place, A = s*A</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#trace()">trace</A></B>()</CODE><BR> Matrix trace.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#transpose()">transpose</A></B>()</CODE><BR> Matrix transpose.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Jama/Matrix.html">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../Jama/Matrix.html#uminus()">uminus</A></B>()</CODE><BR> Unary minus</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Matrix(int, int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(int m, int n)</PRE><DL><DD>Construct an m-by-n matrix of zeros.<DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.</DL></DD></DL><HR><A NAME="Matrix(int, int, double)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(int m, int n, double s)</PRE><DL><DD>Construct an m-by-n constant matrix.<DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.<DD><CODE>s</CODE> - Fill the matrix with this scalar value.</DL></DD></DL><HR><A NAME="Matrix(double[][])"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[][] A)</PRE><DL><DD>Construct a matrix from a 2-D array.<DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - Two-dimensional array of doubles.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - All rows must have the same length<DT><B>See Also: </B><DD><A HREF="../Jama/Matrix.html#constructWithCopy(double[][])"><CODE>constructWithCopy(double[][])</CODE></A></DL></DD></DL><HR><A NAME="Matrix(double[][], int, int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[][] A, int m, int n)</PRE><DL><DD>Construct a matrix quickly without checking arguments.<DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - Two-dimensional array of doubles.<DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.</DL></DD></DL><HR><A NAME="Matrix(double[], int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[] vals, int m)</PRE><DL><DD>Construct a matrix from a one-dimensional packed array<DD><DL><DT><B>Parameters:</B><DD><CODE>vals</CODE> - One-dimensional array of doubles, packed by columns (ala Fortran).<DD><CODE>m</CODE> - Number of rows.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - Array length must be a multiple of m.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="constructWithCopy(double[][])"><!-- --></A><H3>constructWithCopy</H3><PRE>public static <A HREF="../Jama/Matrix.html">Matrix</A> <B>constructWithCopy</B>(double[][] A)</PRE><DL><DD>Construct a matrix from a copy of a 2-D array.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - Two-dimensional array of doubles.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - All rows must have the same length</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public <A HREF="../Jama/Matrix.html">Matrix</A> <B>copy</B>()</PRE><DL><DD>Make a deep copy of a matrix<DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Clone the Matrix object.<DD><DL><DT><B>Overrides:</B><DD>clone in class java.lang.Object</DL></DD></DL><HR><A NAME="getArray()"><!-- --></A><H3>getArray</H3><PRE>public double[][] <B>getArray</B>()</PRE><DL><DD>Access the internal two-dimensional array.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Pointer to the two-dimensional array of matrix elements.</DL></DD></DL><HR><A NAME="getArrayCopy()"><!-- --></A><H3>getArrayCopy</H3><PRE>public double[][] <B>getArrayCopy</B>()</PRE><DL><DD>Copy the internal two-dimensional array.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Two-dimensional array copy of matrix elements.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -