📄 arrayoperations.html
字号:
</TABLE>
<P>
<!-- ========= 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="ArrayOperations()"><!-- --></A><H3>
ArrayOperations</H3>
<PRE>
public <B>ArrayOperations</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="scalarMultiply(double, double[])"><!-- --></A><H3>
scalarMultiply</H3>
<PRE>
public static void <B>scalarMultiply</B>(double s,
double[] array)</PRE>
<DL>
<DD>Computes the scalar product of this vector with a scalar
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the scalar</DL>
</DD>
</DL>
<HR>
<A NAME="add(double[], double[])"><!-- --></A><H3>
add</H3>
<PRE>
public static double[] <B>add</B>(double[] a,
double[] b)</PRE>
<DL>
<DD>Returns the sum of two array. This method asssumes that the two arrays are of equal length.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an array containing the sum.</DL>
</DD>
</DL>
<HR>
<A NAME="norm(double[])"><!-- --></A><H3>
norm</H3>
<PRE>
public static double <B>norm</B>(double[] array)</PRE>
<DL>
<DD>Returns the norm of the vector
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the norm of the vector</DL>
</DD>
</DL>
<HR>
<A NAME="changeLength(double, double[])"><!-- --></A><H3>
changeLength</H3>
<PRE>
public static void <B>changeLength</B>(double len,
double[] array)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sort(double[])"><!-- --></A><H3>
sort</H3>
<PRE>
public static int[] <B>sort</B>(double[] array)</PRE>
<DL>
<DD>Sorts a given array of doubles in ascending order and returns an array of integers with the positions of the elements of the original array in the sorted array. NOTE THESE CHANGES: the sort is no longer stable and it doesn't use safe floating-point comparisons anymore. Occurrences of Double.NaN are treated as Double.MAX_VALUE
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - this array is not changed by the method!
<DT><B>Returns:</B><DD>an array of integers with the positions in the sorted array.</DL>
</DD>
</DL>
<HR>
<A NAME="fillRandom(double[], java.util.Random)"><!-- --></A><H3>
fillRandom</H3>
<PRE>
public static void <B>fillRandom</B>(double[] array,
java.util.Random rg)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sum(double[])"><!-- --></A><H3>
sum</H3>
<PRE>
public static double <B>sum</B>(double[] doubles)</PRE>
<DL>
<DD>Computes the sum of the elements of an array of doubles.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doubles</CODE> - the array of double
<DT><B>Returns:</B><DD>the sum of the elements</DL>
</DD>
</DL>
<HR>
<A NAME="substract(double[], double[])"><!-- --></A><H3>
substract</H3>
<PRE>
public static double[] <B>substract</B>(double[] a,
double[] b)</PRE>
<DL>
<DD>Substract the second array from the first one and returns the result.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - the first array<DD><CODE>b</CODE> - the second array
<DT><B>Returns:</B><DD>the substraction of the first minus the second array</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/ArrayOperations.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/utils/ActiveSetsOptimization.html" title="class in net.sf.javaml.utils"><B>PREV CLASS</B></A>
<A HREF="../../../../net/sf/javaml/utils/GammaFunction.html" title="class in net.sf.javaml.utils"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?net/sf/javaml/utils/ArrayOperations.html" target="_top"><B>FRAMES</B></A>
<A HREF="ArrayOperations.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <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 + -