📄 matrix.html,v
字号:
<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - values to be put in matrix</DL></DD></DL><HR><A NAME="initDiagonalMatrix(java.util.Vector)"><!-- --></A><H3>initDiagonalMatrix</H3><PRE>public void <B>initDiagonalMatrix</B>(java.util.Vector<java.lang.Double> vec_a)</PRE><DL><DD>Creates a diagonal matrix of values specified by the input vector<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - values to be put in matrix</DL></DD></DL><HR><A NAME="getDiagonalVector(java.util.Vector)"><!-- --></A><H3>getDiagonalVector</H3><PRE>public void <B>getDiagonalVector</B>(java.util.Vector<java.lang.Double> vec_a)</PRE><DL><DD>Puts the diagonal of a matrix in the vector passed<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - Vector for values to be added from diagonal of a matrix</DL></DD></DL><HR><A NAME="toDoubleVector(java.util.Vector)"><!-- --></A><H3>toDoubleVector</H3><PRE>public void <B>toDoubleVector</B>(java.util.Vector<java.lang.Double> vec_a)</PRE><DL><DD>Given a column or row matrix the values can be put into a vector<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - Vector for values to be added from column or row matrix</DL></DD></DL><HR><A NAME="copyMatrix(Matrix)"><!-- --></A><H3>copyMatrix</H3><PRE>public void <B>copyMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A)</PRE><DL><DD>This routine takes a matrix as an argument and copies it to the the matrix object that invoked it<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - input matrix to be copyied</DL></DD></DL><HR><A NAME="copyMatrixRows(Matrix, boolean[])"><!-- --></A><H3>copyMatrixRows</H3><PRE>public void <B>copyMatrixRows</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A, boolean[] flags_a)</PRE><DL><DD>This routine takes a matrix as an argument and copies its rows to the the matrix object that invoked it only for columns that the flags are true.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - input matrix to be copyied<DD><CODE>flags_a</CODE> - 2-dimensional array of boolean variables to tell which elements to copy</DL></DD></DL><HR><A NAME="identityMatrix()"><!-- --></A><H3>identityMatrix</H3><PRE>public void <B>identityMatrix</B>()</PRE><DL><DD>This routine makes an identity matrix<P><DD><DL></DL></DD></DL><HR><A NAME="choleskySolve(Matrix, Matrix, Matrix)"><!-- --></A><H3>choleskySolve</H3><PRE>public boolean <B>choleskySolve</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> out_vec_a, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> l_a, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> in_vec_a)</PRE><DL><DD>This method solves the linear equation l * l' * x = b, where L is the cholesky decomposition matrix and b is an input vector.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out_vec_a</CODE> - output vector of matrix type<DD><CODE>l_a</CODE> - lower triangular matrix cholesky decomposition marix<DD><CODE>in_vec_a</CODE> - input vector of matrix type<DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="decompositionCholesky(Matrix)"><!-- --></A><H3>decompositionCholesky</H3><PRE>public boolean <B>decompositionCholesky</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> l_a)</PRE><DL><DD>this method constructs the Cholesky decomposition of an input matrix: W. Press, S. Teukolsky, W. Vetterling, B. Flannery, Numerical Recipes in C, Second Edition, Cambridge University Press, New York, New York, USA, pp. 96-97, 1995. upon output, l' * l = this note that this method only operates on symmetric matrices.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>l_a</CODE> - output lower triangular matrix<DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="gaussj(double[][], int, double[][], int)"><!-- --></A><H3>gaussj</H3><PRE>public void <B>gaussj</B>(double[][] a, int n, double[][] b, int m)</PRE><DL><DD>This routine computes the inverse matrix using the gauss jordan method see numerical recipes, the are of scientific computing, second edition, cambridge university press. pages 36 - 41<P><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - input matrix as 2-d double array<DD><CODE>n</CODE> - number of rows and columns in the input matrix<DD><CODE>b</CODE> - output matrix as 2-d double array<DD><CODE>m</CODE> - number of rows and columns in the output matrix</DL></DD></DL><HR><A NAME="invertMatrix(Matrix)"><!-- --></A><H3>invertMatrix</H3><PRE>public void <B>invertMatrix</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="resetMatrix()"><!-- --></A><H3>resetMatrix</H3><PRE>public void <B>resetMatrix</B>()</PRE><DL><DD>This routine takes a matrix as an argument and copies it to the the matrix object that invoked it<P><DD><DL></DL></DD></DL><HR><A NAME="addMatrix(Matrix)"><!-- --></A><H3>addMatrix</H3><PRE>public void <B>addMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A)</PRE><DL><DD>This routine adds two matrices<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - matrix to be added to object evoked</DL></DD></DL><HR><A NAME="subtractMatrix(Matrix, Matrix)"><!-- --></A><H3>subtractMatrix</H3><PRE>public void <B>subtractMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</PRE><DL><DD>This routine subtracts two matrices<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - input matrix<DD><CODE>B</CODE> - difference matrix</DL></DD></DL><HR><A NAME="scalarMultMatrix(double)"><!-- --></A><H3>scalarMultMatrix</H3><PRE>public void <B>scalarMultMatrix</B>(double scalar)</PRE><DL><DD>This routine multiplys a matrix with a scalar<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scalar</CODE> - matrix double scalar value</DL></DD></DL><HR><A NAME="normMatrix()"><!-- --></A><H3>normMatrix</H3><PRE>public void <B>normMatrix</B>()</PRE><DL><DD>This routine takes the square root of the matrix object<P><DD><DL></DL></DD></DL><HR><A NAME="expMatrix()"><!-- --></A><H3>expMatrix</H3><PRE>public void <B>expMatrix</B>()</PRE><DL><DD>This routine takes every element to its exponent with Math.exp()<P><DD><DL></DL></DD></DL><HR><A NAME="inverseMatrixElements()"><!-- --></A><H3>inverseMatrixElements</H3><PRE>public void <B>inverseMatrixElements</B>()</PRE><DL><DD>This routine inverses every element of the matrix<P><DD><DL></DL></DD></DL><HR><A NAME="addMatrixElements(double)"><!-- --></A><H3>addMatrixElements</H3><PRE>public void <B>addMatrixElements</B>(double val_a)</PRE><DL><DD>This routine adds a double value to every element in a matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>val_a</CODE> - double value to be added to every element</DL></DD></DL><HR><A NAME="multMatrix(Matrix, Matrix)"><!-- --></A><H3>multMatrix</H3><PRE>public void <B>multMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> A, <A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</PRE><DL><DD>This routine multiplys two matrices<P><DD><DL><DT><B>Parameters:</B><DD><CODE>A</CODE> - input matrix<DD><CODE>B</CODE> - product matrix</DL></DD></DL><HR><A NAME="transposeMatrix(Matrix)"><!-- --></A><H3>transposeMatrix</H3><PRE>public void <B>transposeMatrix</B>(<A HREF="Matrix.html" title="class in <Unnamed>">Matrix</A> B)</PRE><DL><DD>This routine performs the transpose of a matrix<P><DD><DL><DT><B>Parameters:</B><DD><CODE>B</CODE> - matrix transpose</DL></DD></DL><HR><A NAME="printMatrix()"><!-- --></A><H3>printMatrix</H3><PRE>public void <B>printMatrix</B>()</PRE><DL><DD>Prints the matrix contents to STDOUT<P><DD><DL></DL></DD></DL><HR><A NAME="printDoubleVector(java.util.Vector)"><!-- --></A><H3>printDoubleVector</H3><PRE>public static void <B>printDoubleVector</B>(java.util.Vector<java.lang.Double> vec_a)</PRE><DL><DD>Puts the DoubleVector contents in a vector and calls printMatrix()<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vec_a</CODE> - Vector to be printed</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="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 CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="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="MathUtil.html" title="class in <Unnamed>"><B>PREV CLASS</B></A> <A HREF="OutputPanel.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html?Matrix.html" target="_top"><B>FRAMES</B></A> <A HREF="Matrix.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>@1.1log@temp.text@text@d5 1a5 1<!-- Generated by javadoc (build 1.5.0_03) on Fri Jun 03 16:18:41 CDT 2005 -->d54 1a54 1 <A HREF="MyPoint.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>d1110 1a1110 1 <A HREF="MyPoint.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -