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

📄 matrix.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#minusEquals(weka.classifiers.functions.pace.Matrix)">minusEquals</A></B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;B)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A = A - B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#norm1()">norm1</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;One norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#normF()">normF</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frobenius norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#normInf()">normInf</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Infinity norm</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#plus(weka.classifiers.functions.pace.Matrix)">plus</A></B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;B)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C = A + B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#plusEquals(weka.classifiers.functions.pace.Matrix)">plusEquals</A></B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;B)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A = A + B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#print(int, int)">print</A></B>(int&nbsp;w,      int&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print the matrix to stdout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#print(java.text.NumberFormat, int)">print</A></B>(java.text.NumberFormat&nbsp;format,      int&nbsp;width)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print the matrix to stdout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#print(java.io.PrintWriter, int, int)">print</A></B>(java.io.PrintWriter&nbsp;output,      int&nbsp;w,      int&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#print(java.io.PrintWriter, java.text.NumberFormat, int)">print</A></B>(java.io.PrintWriter&nbsp;output,      java.text.NumberFormat&nbsp;format,      int&nbsp;width)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>static&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#random(int, int)">random</A></B>(int&nbsp;m,       int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate matrix with random elements</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#read(java.io.BufferedReader)">read</A></B>(java.io.BufferedReader&nbsp;input)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read a matrix from a stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#set(int, int, double)">set</A></B>(int&nbsp;i,    int&nbsp;j,    double&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a single element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#setMatrix(int[], int[], weka.classifiers.functions.pace.Matrix)">setMatrix</A></B>(int[]&nbsp;r,          int[]&nbsp;c,          <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;X)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#setMatrix(int[], int, int, weka.classifiers.functions.pace.Matrix)">setMatrix</A></B>(int[]&nbsp;r,          int&nbsp;j0,          int&nbsp;j1,          <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;X)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#setMatrix(int, int, int[], weka.classifiers.functions.pace.Matrix)">setMatrix</A></B>(int&nbsp;i0,          int&nbsp;i1,          int[]&nbsp;c,          <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;X)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#setMatrix(int, int, int, int, weka.classifiers.functions.pace.Matrix)">setMatrix</A></B>(int&nbsp;i0,          int&nbsp;i1,          int&nbsp;j0,          int&nbsp;j1,          <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;X)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a submatrix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#times(double)">times</A></B>(double&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#times(weka.classifiers.functions.pace.Matrix)">times</A></B>(<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A>&nbsp;B)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Linear algebraic matrix multiplication, A * B</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#timesEquals(double)">timesEquals</A></B>(double&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#trace()">trace</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Matrix trace.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#transpose()">transpose</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Matrix transpose.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#uminus()">uminus</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unary minus</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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&nbsp;m,              int&nbsp;n)</PRE><DL><DD>Construct an m-by-n matrix of zeros.<P><DT><B>Parameters:</B><DD><CODE>m</CODE> - Number of rows.<DD><CODE>n</CODE> - Number of colums.</DL><HR><A NAME="Matrix(int, int, double)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(int&nbsp;m,              int&nbsp;n,              double&nbsp;s)</PRE><DL><DD>Construct an m-by-n constant matrix.<P><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><HR><A NAME="Matrix(double[][])"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[][]&nbsp;A)</PRE><DL><DD>Construct a matrix from a 2-D array.<P><DT><B>Parameters:</B><DD><CODE>A</CODE> - Two-dimensional array of doubles.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - All rows must have the same length<DT><B>See Also:</B><DD><A HREF="../../../../weka/classifiers/functions/pace/Matrix.html#constructWithCopy(double[][])"><CODE>constructWithCopy(double[][])</CODE></A></DL><HR><A NAME="Matrix(double[][], int, int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[][]&nbsp;A,              int&nbsp;m,              int&nbsp;n)</PRE><DL><DD>Construct a matrix quickly without checking arguments.<P><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><HR><A NAME="Matrix(double[], int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(double[]&nbsp;vals,              int&nbsp;m)</PRE><DL><DD>Construct a matrix from a one-dimensional packed array<P><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><CODE>java.lang.IllegalArgumentException</CODE> - Array length must be a multiple of m.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>constructWithCopy</B>(double[][]&nbsp;A)</PRE><DL><DD>Construct a matrix from a copy of a 2-D array.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - Two-dimensional array of doubles.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - All rows must have the same length</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public <A HREF="../../../../weka/classifiers/functions/pace/Matrix.html" title="class in weka.classifiers.functions.pace">Matrix</A> <B>copy</B>()</PRE><DL><DD>Make a deep copy of a matrix<P><DD><DL></DL></DD><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.<P><DD><DL></DL></DD><DD><DL></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.<P><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.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Two-dimensional array copy of matrix elements.</DL></DD></DL><HR><A NAME="getColumnPackedCopy()"><!-- --></A><H3>getColumnPackedCopy</H3><PRE>public double[] <B>getColumnPackedCopy</B>()</PRE><DL><DD>Make a one-dimensional column packed copy of the internal array.<P><DD><DL></DL></DD><DD><DL>

⌨️ 快捷键说明

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