📄 vectors.html
字号:
<HR>
<A NAME="print(int[])"><!-- --></A><H3>
print</H3>
<PRE>
public static java.lang.String <B>print</B>(int[] 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[][] 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 len,
double 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 len,
int 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 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 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[] 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[] 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[] vec,
int 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[] vec,
int[] 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[] vec,
int[] 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[] vec,
int start,
int 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[] vec,
int[] indices,
int[] 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[] vec,
int[] indices,
int 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[] vec,
int 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[] vec,
int[] indices,
int[] 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[] 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[] 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[] ds,
double 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[] ds,
double[] 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[][] 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[][] 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> </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="class-use/Vectors.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../../../net/sf/javaml/clustering/mcl/SparseVector.html" title="class in net.sf.javaml.clustering.mcl"><B>PREV CLASS</B></A>
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>
<A HREF="Vectors.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>
<i>Copyright © 2006-2007 - Thomas Abeel - All Rights Reserved.</i>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -