📄 matrix.html,v
字号:
int c)</CODE><BR> this method initializes matrix to be the values of the 2-d array passed</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="Matrix.html#initMatrix(java.util.Vector)">initMatrix</A></B>(java.util.Vector<java.lang.Double> vec_a)</CODE><BR> Creates a 1 row matrix of values specified by the input vector</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="Matrix.html#initMatrixValue(int, int, double, int)">initMatrixValue</A></B>(int r, int c, double value_a, int type_a)</CODE><BR> this method initialize the matrix to all r x n elements being the double value passed</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="Matrix.html#inverseMatrixElements()">inverseMatrixElements</A></B>()</CODE><BR> This routine inverses every element of the matrix</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="Matrix.html#invertMatrix(Matrix)">invertMatrix</A></B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A)</CODE><BR> this routine computes the inverse of a matrix</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="Matrix.html#multMatrix(Matrix, Matrix)">multMatrix</A></B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</CODE><BR> This routine multiplys two matrices</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="Matrix.html#normMatrix()">normMatrix</A></B>()</CODE><BR> This routine takes the square root of the matrix object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="Matrix.html#printDoubleVector(java.util.Vector)">printDoubleVector</A></B>(java.util.Vector<java.lang.Double> vec_a)</CODE><BR> Puts the DoubleVector contents in a vector and calls printMatrix()</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="Matrix.html#printMatrix()">printMatrix</A></B>()</CODE><BR> Prints the matrix contents 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="Matrix.html#resetMatrix()">resetMatrix</A></B>()</CODE><BR> This routine takes a matrix as an argument and copies it to the the matrix object that invoked it</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="Matrix.html#scalarMultMatrix(double)">scalarMultMatrix</A></B>(double scalar)</CODE><BR> This routine multiplys a matrix with a scalar</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="Matrix.html#setValue(int, int, double)">setValue</A></B>(int r, int c, double value_a)</CODE><BR> sets the value given row and column index to the double value passed</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="Matrix.html#subtractMatrix(Matrix, Matrix)">subtractMatrix</A></B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</CODE><BR> This routine subtracts two matrices</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="Matrix.html#toDoubleVector(java.util.Vector)">toDoubleVector</A></B>(java.util.Vector<java.lang.Double> vec_a)</CODE><BR> Given a column or row matrix the values can be put into a vector</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="Matrix.html#transposeMatrix(Matrix)">transposeMatrix</A></B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</CODE><BR> This routine performs the transpose of a matrix</TD></TR></TABLE> <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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="FULL"><!-- --></A><H3>FULL</H3><PRE>public static final int <B>FULL</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.FULL">Constant Field Values</A></DL></DL><HR><A NAME="DIAGONAL"><!-- --></A><H3>DIAGONAL</H3><PRE>public static final int <B>DIAGONAL</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.DIAGONAL">Constant Field Values</A></DL></DL><HR><A NAME="SYMMETRIC"><!-- --></A><H3>SYMMETRIC</H3><PRE>public static final int <B>SYMMETRIC</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.SYMMETRIC">Constant Field Values</A></DL></DL><HR><A NAME="LOWER_TRIANGULAR"><!-- --></A><H3>LOWER_TRIANGULAR</H3><PRE>public static final int <B>LOWER_TRIANGULAR</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.LOWER_TRIANGULAR">Constant Field Values</A></DL></DL><HR><A NAME="UPPER_TRIANGULAR"><!-- --></A><H3>UPPER_TRIANGULAR</H3><PRE>public static final int <B>UPPER_TRIANGULAR</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.UPPER_TRIANGULAR">Constant Field Values</A></DL></DL><HR><A NAME="SPARSE"><!-- --></A><H3>SPARSE</H3><PRE>public static final int <B>SPARSE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="constant-values.html#Matrix.SPARSE">Constant Field Values</A></DL></DL><HR><A NAME="row"><!-- --></A><H3>row</H3><PRE>protected int <B>row</B></PRE><DL><DL></DL></DL><HR><A NAME="col"><!-- --></A><H3>col</H3><PRE>protected int <B>col</B></PRE><DL><DL></DL></DL><HR><A NAME="type_d"><!-- --></A><H3>type_d</H3><PRE>protected int <B>type_d</B></PRE><DL><DL></DL></DL><HR><A NAME="Elem"><!-- --></A><H3>Elem</H3><PRE>protected double[][] <B>Elem</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Matrix()"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getNumRows()"><!-- --></A><H3>getNumRows</H3><PRE>public int <B>getNumRows</B>()</PRE><DL><DD>Gets the number of Rows<P><DD><DL><DT><B>Returns:</B><DD>number of rows in the matrix</DL></DD></DL><HR><A NAME="getNumColumns()"><!-- --></A><H3>getNumColumns</H3><PRE>public int <B>getNumColumns</B>()</PRE><DL><DD>Gets the number of Columns<P><DD><DL><DT><B>Returns:</B><DD>number of columns in the matrix</DL></DD></DL><HR><A NAME="copyLowerMatrix(Matrix)"><!-- --></A><H3>copyLowerMatrix</H3><PRE>public void <B>copyLowerMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A)</PRE><DL><DD>this routine computes the inverse of a matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - inverse matrix</DL></DD></DL><HR><A NAME="getColSumSquare(int)"><!-- --></A><H3>getColSumSquare</H3><PRE>public double <B>getColSumSquare</B>(int col_a)</PRE><DL><DD>this routine computes the sum of a column<P><DD><DL><DT><B>Parameters:</B><DD><CODE>col_a</CODE> - column number to be summed<DT><B>Returns:</B><DD>double value of sum</DL></DD></DL><HR><A NAME="setValue(int, int, double)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(int r, int c, double value_a)</PRE><DL><DD>sets the value given row and column index to the double value passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - number of rows in the matrix<DD><CODE>c</CODE> - number of columns in the matrix<DD><CODE>value_a</CODE> - input set of points</DL></DD></DL><HR><A NAME="getValue(int, int)"><!-- --></A><H3>getValue</H3><PRE>public double <B>getValue</B>(int r, int c)</PRE><DL><DD>gets value at indexed row and column<P><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - number of rows in the matrix<DD><CODE>c</CODE> - number of columns in the matrix<DT><B>Returns:</B><DD>double value at index</DL></DD></DL><HR><A NAME="initMatrixValue(int, int, double, int)"><!-- --></A><H3>initMatrixValue</H3><PRE>public void <B>initMatrixValue</B>(int r, int c, double value_a, int type_a)</PRE><DL><DD>this method initialize the matrix to all r x n elements being the double value passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - number of rows in the matrix<DD><CODE>c</CODE> - number of columns in the matrix<DD><CODE>value_a</CODE> - double value to initialize all elements of matrix<DD><CODE>type_a</CODE> - integer value of type</DL></DD></DL><HR><A NAME="initMatrix(double[][], int, int)"><!-- --></A><H3>initMatrix</H3><PRE>public void <B>initMatrix</B>(double[][] initVal, int r, int c)</PRE><DL><DD>this method initializes matrix to be the values of the 2-d array passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>initVal</CODE> - 2-dimensional array to be copyied<DD><CODE>r</CODE> - number of rows in the matrix<DD><CODE>c</CODE> - number of columns in the matrix</DL></DD></DL><HR><A NAME="initMatrix(java.util.Vector)"><!-- --></A><H3>initMatrix</H3><PRE>public void <B>initMatrix</B>(java.util.Vector<java.lang.Double> vec_a)</PRE><DL><DD>Creates a 1 row matrix of values specified by the input vector
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -