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

📄 vectors.html

📁 Java方面的数值算法
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DL>
<DD>sum the elements of vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="sum(int[])"><!-- --></A><H3>
sum</H3>
<PRE>
public static int <B>sum</B>(int[]&nbsp;vec)</PRE>
<DL>
<DD>sum the elements of vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="cumsum(double[])"><!-- --></A><H3>
cumsum</H3>
<PRE>
public static double[] <B>cumsum</B>(double[]&nbsp;vec)</PRE>
<DL>
<DD>cumulative sum of the elements, starting at element 0.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD>vector containing the cumulative sum of the elements of vec</DL>
</DD>
</DL>
<HR>

<A NAME="max(int[])"><!-- --></A><H3>
max</H3>
<PRE>
public static int <B>max</B>(int[]&nbsp;vec)</PRE>
<DL>
<DD>maximum value in vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="max(double[])"><!-- --></A><H3>
max</H3>
<PRE>
public static double <B>max</B>(double[]&nbsp;vec)</PRE>
<DL>
<DD>maximum value in vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="min(int[])"><!-- --></A><H3>
min</H3>
<PRE>
public static int <B>min</B>(int[]&nbsp;vec)</PRE>
<DL>
<DD>minimum value in vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="min(double[])"><!-- --></A><H3>
min</H3>
<PRE>
public static double <B>min</B>(double[]&nbsp;vec)</PRE>
<DL>
<DD>minimum value in vec
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vec</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

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

<A NAME="concat(double[], double[], double[])"><!-- --></A><H3>
concat</H3>
<PRE>
public static double[] <B>concat</B>(double[]&nbsp;x,
                              double[]&nbsp;y,
                              double[]&nbsp;z)</PRE>
<DL>
<DD>w = [x y z]
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - <DD><CODE>y</CODE> - 
<DT><B>Returns:</B><DD>[x y z]</DL>
</DD>
</DL>
<HR>

<A NAME="increaseSize(double[], int)"><!-- --></A><H3>
increaseSize</H3>
<PRE>
public static double[] <B>increaseSize</B>(double[]&nbsp;vector,
                                    int&nbsp;moreelements)</PRE>
<DL>
<DD>Create new vector of larger size and data of the argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - source array<DD><CODE>moreelements</CODE> - number of elements to add
<DT><B>Returns:</B><DD>larger vector</DL>
</DD>
</DL>
<HR>

<A NAME="increaseSize(double[][], int, int)"><!-- --></A><H3>
increaseSize</H3>
<PRE>
public static double[][] <B>increaseSize</B>(double[][]&nbsp;matrix,
                                      int&nbsp;morerows,
                                      int&nbsp;morecols)</PRE>
<DL>
<DD>Create new matrix of larger size and data of the argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>more</CODE> - rows<DD><CODE>more</CODE> - cols
<DT><B>Returns:</B><DD>larger matrix</DL>
</DD>
</DL>
<HR>

<A NAME="removeElement(double[], int)"><!-- --></A><H3>
removeElement</H3>
<PRE>
public static double[] <B>removeElement</B>(double[]&nbsp;vector,
                                     int&nbsp;element)</PRE>
<DL>
<DD>Create new vector with data of the argument and removed element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>element</CODE> - 
<DT><B>Returns:</B><DD>shorter vector</DL>
</DD>
</DL>
<HR>

<A NAME="removeElements(double[][], int[], int[])"><!-- --></A><H3>
removeElements</H3>
<PRE>
public static double[][] <B>removeElements</B>(double[][]&nbsp;matrix,
                                        int[]&nbsp;rows,
                                        int[]&nbsp;cols)</PRE>
<DL>
<DD>Create new matrix with data of the argument and removed rows and columns.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>rows</CODE> - ordered vector of rows to remove<DD><CODE>cols</CODE> - ordered vector of cols to remove
<DT><B>Returns:</B><DD>smaller matrix</DL>
</DD>
</DL>
<HR>

<A NAME="removeElements(double[], int[])"><!-- --></A><H3>
removeElements</H3>
<PRE>
public static double[] <B>removeElements</B>(double[]&nbsp;vector,
                                      int[]&nbsp;elements)</PRE>
<DL>
<DD>Create new vector with data of the argument and removed elements.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>elements</CODE> - ordered elements to remove
<DT><B>Returns:</B><DD>smaller vector</DL>
</DD>
</DL>
<HR>

<A NAME="rangeComplement(int[], int)"><!-- --></A><H3>
rangeComplement</H3>
<PRE>
public static int[] <B>rangeComplement</B>(int[]&nbsp;set,
                                    int&nbsp;length)</PRE>
<DL>
<DD>return the complement of the sorted subset of the set 0:length-1 in Matlab notation
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>set</CODE> - sorted set of elements < length<DD><CODE>length</CODE> - of superset of set and its returned complement
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="chooseElements(double[][], int[], int[])"><!-- --></A><H3>
chooseElements</H3>
<PRE>
public static double[][] <B>chooseElements</B>(double[][]&nbsp;matrix,
                                        int[]&nbsp;rows,
                                        int[]&nbsp;cols)</PRE>
<DL>
<DD>Create a matrix that contains the rows and columns of the argument matrix in the order given by rows and cols
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>rows</CODE> - <DD><CODE>cols</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="chooseElements(double[], int[])"><!-- --></A><H3>
chooseElements</H3>
<PRE>
public static double[] <B>chooseElements</B>(double[]&nbsp;vector,
                                      int[]&nbsp;keep)</PRE>
<DL>
<DD>Create vector that contains the elements of the argument in the order as given by keep
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>keep</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="increaseSize(int[], int)"><!-- --></A><H3>
increaseSize</H3>
<PRE>
public static int[] <B>increaseSize</B>(int[]&nbsp;vector,
                                 int&nbsp;moreelements)</PRE>
<DL>
<DD>Create new vector of larger size and data of the argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - source array<DD><CODE>moreelements</CODE> - number of elements to add
<DT><B>Returns:</B><DD>larger vector</DL>
</DD>
</DL>
<HR>

<A NAME="increaseSize(int[][], int, int)"><!-- --></A><H3>
increaseSize</H3>
<PRE>
public static int[][] <B>increaseSize</B>(int[][]&nbsp;matrix,
                                   int&nbsp;morerows,
                                   int&nbsp;morecols)</PRE>
<DL>
<DD>Create new matrix of larger size and data of the argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>more</CODE> - rows<DD><CODE>more</CODE> - cols
<DT><B>Returns:</B><DD>larger matrix</DL>
</DD>
</DL>
<HR>

<A NAME="removeElement(int[], int)"><!-- --></A><H3>
removeElement</H3>
<PRE>
public static int[] <B>removeElement</B>(int[]&nbsp;vector,
                                  int&nbsp;element)</PRE>
<DL>
<DD>Create new vector with data of the argument and removed element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>element</CODE> - 
<DT><B>Returns:</B><DD>shorter vector</DL>
</DD>
</DL>
<HR>

<A NAME="removeElements(int[][], int[], int[])"><!-- --></A><H3>
removeElements</H3>
<PRE>
public static int[][] <B>removeElements</B>(int[][]&nbsp;matrix,
                                     int[]&nbsp;rows,
                                     int[]&nbsp;cols)</PRE>
<DL>
<DD>Create new matrix with data of the argument and removed rows and columns.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>rows</CODE> - ordered vector of rows to remove<DD><CODE>cols</CODE> - ordered vector of cols to remove
<DT><B>Returns:</B><DD>smaller matrix</DL>
</DD>
</DL>
<HR>

<A NAME="removeElements(int[], int[])"><!-- --></A><H3>
removeElements</H3>
<PRE>
public static int[] <B>removeElements</B>(int[]&nbsp;vector,
                                   int[]&nbsp;elements)</PRE>
<DL>
<DD>Create new vector with data of the argument and removed elements.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>elements</CODE> - ordered elements to remove
<DT><B>Returns:</B><DD>smaller vector</DL>
</DD>
</DL>
<HR>

<A NAME="chooseElements(int[][], int[], int[])"><!-- --></A><H3>
chooseElements</H3>
<PRE>
public static int[][] <B>chooseElements</B>(int[][]&nbsp;matrix,
                                     int[]&nbsp;rows,
                                     int[]&nbsp;cols)</PRE>
<DL>
<DD>Create a matrix that contains the rows and columns of the argument matrix in the order given by rows and cols
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matrix</CODE> - <DD><CODE>rows</CODE> - <DD><CODE>cols</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="chooseElements(int[], int[])"><!-- --></A><H3>
chooseElements</H3>
<PRE>
public static int[] <B>chooseElements</B>(int[]&nbsp;vector,
                                   int[]&nbsp;keep)</PRE>
<DL>
<DD>Create vector that contains the elements of the argument in the order as given by keep
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>vector</CODE> - <DD><CODE>keep</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="print(double[])"><!-- --></A><H3>
print</H3>
<PRE>
public static java.lang.String <B>print</B>(double[]&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(double[][])"><!-- --></A><H3>
print</H3>
<PRE>
public static java.lang.String <B>print</B>(double[][]&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>

⌨️ 快捷键说明

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