📄 gmatrix.html
字号:
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>col</CODE> - the column of this matrix into which the array values will be copied<DD><CODE>vector</CODE> - the source vector</DL></DD></DL><HR><A NAME="mulTransposeBoth(javax.vecmath.GMatrix, javax.vecmath.GMatrix)"><!-- --></A><H3>mulTransposeBoth</H3><PRE>public final void <B>mulTransposeBoth</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m2)</PRE><DL><DD>Multiplies the transpose of matrix m1 times the transpose of matrix m2, and places the result into this.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix on the left hand side of the multiplication<DD><CODE>m2</CODE> - The matrix on the right hand side of the multiplication</DL></DD></DL><HR><A NAME="mulTransposeRight(javax.vecmath.GMatrix, javax.vecmath.GMatrix)"><!-- --></A><H3>mulTransposeRight</H3><PRE>public final void <B>mulTransposeRight</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m2)</PRE><DL><DD>Multiplies matrix m1 times the transpose of matrix m2, and places the result into this.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix on the left hand side of the multiplication<DD><CODE>m2</CODE> - The matrix on the right hand side of the multiplication</DL></DD></DL><HR><A NAME="mulTransposeLeft(javax.vecmath.GMatrix, javax.vecmath.GMatrix)"><!-- --></A><H3>mulTransposeLeft</H3><PRE>public final void <B>mulTransposeLeft</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m2)</PRE><DL><DD>Multiplies the transpose of matrix m1 times matrix m2, and places the result into this.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix on the left hand side of the multiplication<DD><CODE>m2</CODE> - The matrix on the right hand side of the multiplication</DL></DD></DL><HR><A NAME="transpose()"><!-- --></A><H3>transpose</H3><PRE>public final void <B>transpose</B>()</PRE><DL><DD>Transposes this matrix in place.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="transpose(javax.vecmath.GMatrix)"><!-- --></A><H3>transpose</H3><PRE>public final void <B>transpose</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1)</PRE><DL><DD>Places the matrix values of the transpose of matrix m1 into this matrix.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - the matrix to be transposed (but not modified)</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string that contains the values of this GMatrix.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the String representation</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code value based on the data values in this object. Two different GMatrix objects with identical data values (i.e., GMatrix.equals returns true) will return the same hash number. Two GMatrix objects with different data members may return the same hash value, although this is not likely.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the integer hash code value</DL></DD></DL><HR><A NAME="equals(javax.vecmath.GMatrix)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1)</PRE><DL><DD>Returns true if all of the data members of GMatrix m1 are equal to the corresponding data members in this GMatrix.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix with which the comparison is made.<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object o1)</PRE><DL><DD>Returns true if the Object o1 is of type GMatrix and all of the data members of o1 are equal to the corresponding data members in this GMatrix.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o1</CODE> - The object with which the comparison is made.<DT><B>Returns:</B><DD>true or false</DL></DD></DL><HR><A NAME="epsilonEquals(javax.vecmath.GMatrix, float)"><!-- --></A><H3>epsilonEquals</H3><PRE>public boolean <B>epsilonEquals</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, float epsilon)</PRE><DL><DD><B>Deprecated.</B> <I>Use epsilonEquals(GMatrix, double) instead</I><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="epsilonEquals(javax.vecmath.GMatrix, double)"><!-- --></A><H3>epsilonEquals</H3><PRE>public boolean <B>epsilonEquals</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> m1, double epsilon)</PRE><DL><DD>Returns true if the L-infinite distance between this matrix and matrix m1 is less than or equal to the epsilon parameter, otherwise returns false. The L-infinite distance is equal to MAX[i=0,1,2, . . .n ; j=0,1,2, . . .n ; abs(this.m(i,j) - m1.m(i,j)]<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m1</CODE> - The matrix to be compared to this matrix<DD><CODE>epsilon</CODE> - the threshold value</DL></DD></DL><HR><A NAME="trace()"><!-- --></A><H3>trace</H3><PRE>public final double <B>trace</B>()</PRE><DL><DD>Returns the trace of this matrix.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the trace of this matrix</DL></DD></DL><HR><A NAME="SVD(javax.vecmath.GMatrix, javax.vecmath.GMatrix, javax.vecmath.GMatrix)"><!-- --></A><H3>SVD</H3><PRE>public final int <B>SVD</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> U, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> W, <A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> V)</PRE><DL><DD>Finds the singular value decomposition (SVD) of this matrix such that this = U*W*transpose(V); and returns the rank of this matrix; the values of U,W,V are all overwritten. Note that the matrix V is output as V, and not transpose(V). If this matrix is mxn, then U is mxm, W is a diagonal matrix that is mxn, and V is nxn. Using the notation W = diag(w), then the inverse of this matrix is: inverse(this) = V*diag(1/w)*tranpose(U), where diag(1/w) is the same matrix as W except that the reciprocal of each of the diagonal components is used.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>U</CODE> - The computed U matrix in the equation this = U*W*transpose(V)<DD><CODE>W</CODE> - The computed W matrix in the equation this = U*W*transpose(V)<DD><CODE>V</CODE> - The computed V matrix in the equation this = U*W*transpose(V)<DT><B>Returns:</B><DD>The rank of this matrix.</DL></DD></DL><HR><A NAME="LUD(javax.vecmath.GMatrix, javax.vecmath.GVector)"><!-- --></A><H3>LUD</H3><PRE>public final int <B>LUD</B>(<A HREF="../../javax/vecmath/GMatrix.html" title="class in javax.vecmath">GMatrix</A> LU, <A HREF="../../javax/vecmath/GVector.html" title="class in javax.vecmath">GVector</A> permutation)</PRE><DL><DD>LU Decomposition: this matrix must be a square matrix and the LU GMatrix parameter must be the same size as this matrix. The matrix LU will be overwritten as the combination of a lower diagonal and upper diagonal matrix decompostion of this matrix; the diagonal elements of L (unity) are not stored. The GVector parameter records the row permutation effected by the partial pivoting, and is used as a parameter to the GVector method LUDBackSolve to solve sets of linear equations. This method returns +/- 1 depending on whether the number of row interchanges was even or odd, respectively.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>LU</CODE> - The matrix into which the lower and upper decompositions will be placed.<DD><CODE>permutation</CODE> - The row permutation effected by the partial pivoting<DT><B>Returns:</B><DD>+-1 depending on whether the number of row interchanges was even or odd respectively</DL></DD></DL><HR><A NAME="setScale(double)"><!-- --></A><H3>setScale</H3><PRE>public final void <B>setScale</B>(double scale)</PRE><DL><DD>Sets this matrix to a uniform scale matrix; all of the values are reset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - The new scale value</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Creates a new object of the same class as this object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE>java.lang.OutOfMemoryError</CODE> - if there is not enough memory.<DT><B>Since:</B></DT> <DD>vecmath 1.3</DD><DT><B>See Also:</B><DD><CODE>Cloneable</CODE></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="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <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="../../javax/vecmath/Color4f.html" title
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -