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

📄 vectors.html

📁 Java方面的数值算法
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<HR>

<A NAME="print(int[])"><!-- --></A><H3>
print</H3>
<PRE>
public static java.lang.String <B>print</B>(int[]&nbsp;x)</PRE>
<DL>
<DD>prints a double representation of the vector.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="print(int[][])"><!-- --></A><H3>
print</H3>
<PRE>
public static java.lang.String <B>print</B>(int[][]&nbsp;x)</PRE>
<DL>
<DD>prints a double representation of an array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="ones(int, double)"><!-- --></A><H3>
ones</H3>
<PRE>
public static double[] <B>ones</B>(int&nbsp;len,
                            double&nbsp;factor)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>len</CODE> - <DD><CODE>factor</CODE> - 
<DT><B>Returns:</B><DD>factor * ones(1, len);</DL>
</DD>
</DL>
<HR>

<A NAME="ones(int, int)"><!-- --></A><H3>
ones</H3>
<PRE>
public static int[] <B>ones</B>(int&nbsp;len,
                         int&nbsp;factor)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>len</CODE> - <DD><CODE>factor</CODE> - 
<DT><B>Returns:</B><DD>factor * ones(1, len);</DL>
</DD>
</DL>
<HR>

<A NAME="zeros(int)"><!-- --></A><H3>
zeros</H3>
<PRE>
public static double[] <B>zeros</B>(int&nbsp;len)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>len</CODE> - 
<DT><B>Returns:</B><DD>zeros(1, len)</DL>
</DD>
</DL>
<HR>

<A NAME="ones(int)"><!-- --></A><H3>
ones</H3>
<PRE>
public static int[] <B>ones</B>(int&nbsp;len)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>len</CODE> - 
<DT><B>Returns:</B><DD>ones(1, len)</DL>
</DD>
</DL>
<HR>

<A NAME="cast(double[])"><!-- --></A><H3>
cast</H3>
<PRE>
public static int[] <B>cast</B>(double[]&nbsp;vec)</PRE>
<DL>
<DD>cast a double[] to an int[]
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="cast(int[])"><!-- --></A><H3>
cast</H3>
<PRE>
public static double[] <B>cast</B>(int[]&nbsp;vec)</PRE>
<DL>
<DD>cast a double[] to an int[]
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="find(int[], int)"><!-- --></A><H3>
find</H3>
<PRE>
public static int[] <B>find</B>(int[]&nbsp;vec,
                         int&nbsp;val)</PRE>
<DL>
<DD>find indices with val
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - <DD><CODE>val</CODE> - 
<DT><B>Returns:</B><DD>vector with 0-based indices.</DL>
</DD>
</DL>
<HR>

<A NAME="subVector(double[], int[])"><!-- --></A><H3>
subVector</H3>
<PRE>
public static double[] <B>subVector</B>(double[]&nbsp;vec,
                                 int[]&nbsp;indices)</PRE>
<DL>
<DD>returns a copy of the vector elements with the given indices in the original vector.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indices</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="subVector(int[], int[])"><!-- --></A><H3>
subVector</H3>
<PRE>
public static int[] <B>subVector</B>(int[]&nbsp;vec,
                              int[]&nbsp;indices)</PRE>
<DL>
<DD>returns a copy of the vector elements with the given indices in the original vector.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cols</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="subVector(double[], int, int)"><!-- --></A><H3>
subVector</H3>
<PRE>
public static double[] <B>subVector</B>(double[]&nbsp;vec,
                                 int&nbsp;start,
                                 int&nbsp;end)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>weights</CODE> - <DD><CODE>i</CODE> - <DD><CODE>j</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="setSubVector(int[], int[], int[])"><!-- --></A><H3>
setSubVector</H3>
<PRE>
public static void <B>setSubVector</B>(int[]&nbsp;vec,
                                int[]&nbsp;indices,
                                int[]&nbsp;replacements)</PRE>
<DL>
<DD>set the elements of vec at indices with the respective replacements. TODO: implement views as in the colt library
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - <DD><CODE>indices</CODE> - <DD><CODE>replacements</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setSubVector(int[], int[], int)"><!-- --></A><H3>
setSubVector</H3>
<PRE>
public static void <B>setSubVector</B>(int[]&nbsp;vec,
                                int[]&nbsp;indices,
                                int&nbsp;replacement)</PRE>
<DL>
<DD>set the elements of vec at indices with the replacement.   TODO: implement views as in the colt library
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - <DD><CODE>indices</CODE> - <DD><CODE>replacement</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="add(int[], int)"><!-- --></A><H3>
add</H3>
<PRE>
public static void <B>add</B>(int[]&nbsp;vec,
                       int&nbsp;scalar)</PRE>
<DL>
<DD>add a scalar to the vector
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - <DD><CODE>scalar</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setSubVectorCopy(int[], int[], int[])"><!-- --></A><H3>
setSubVectorCopy</H3>
<PRE>
public static int[] <B>setSubVectorCopy</B>(int[]&nbsp;vec,
                                     int[]&nbsp;indices,
                                     int[]&nbsp;replacements)</PRE>
<DL>
<DD>set the elements of a copy of vec at indices with the respective replacements. TODO: implement views as in the colt library
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - <DD><CODE>indices</CODE> - <DD><CODE>replacements</CODE> - 
<DT><B>Returns:</B><DD>the copied vector with the replacements;</DL>
</DD>
</DL>
<HR>

<A NAME="copy(double[])"><!-- --></A><H3>
copy</H3>
<PRE>
public static double[] <B>copy</B>(double[]&nbsp;source)</PRE>
<DL>
<DD>copies a the source to the destination
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>alpha</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="copy(int[])"><!-- --></A><H3>
copy</H3>
<PRE>
public static int[] <B>copy</B>(int[]&nbsp;source)</PRE>
<DL>
<DD>copies a the source to the destination
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>alpha</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="mult(double[], double)"><!-- --></A><H3>
mult</H3>
<PRE>
public static double[] <B>mult</B>(double[]&nbsp;ds,
                            double&nbsp;d)</PRE>
<DL>
<DD>multiplicates the vector with a scalar. The argument is modified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ds</CODE> - <DD><CODE>d</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="mult(double[], double[])"><!-- --></A><H3>
mult</H3>
<PRE>
public static double <B>mult</B>(double[]&nbsp;ds,
                          double[]&nbsp;dt)</PRE>
<DL>
<DD>multiplicates the vector with a vector (inner product). The argument is not modified.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ds</CODE> - <DD><CODE>d</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="transpose(double[][])"><!-- --></A><H3>
transpose</H3>
<PRE>
public static double[][] <B>transpose</B>(double[][]&nbsp;mat)</PRE>
<DL>
<DD>transpose the matrix
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mat</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="transpose(int[][])"><!-- --></A><H3>
transpose</H3>
<PRE>
public static int[][] <B>transpose</B>(int[][]&nbsp;mat)</PRE>
<DL>
<DD>transpose the matrix
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mat</CODE> - 
<DT><B>Returns:</B><DD></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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Vectors.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../net/sf/javaml/clustering/mcl/SparseVector.html" title="class in net.sf.javaml.clustering.mcl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html?net/sf/javaml/clustering/mcl/Vectors.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Vectors.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
			<i>Copyright &#169; 2006-2007 - Thomas Abeel - All Rights Reserved.</i>
</BODY>
</HTML>

⌨️ 快捷键说明

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