sorting.html

来自「矩阵算法库newmat10.tar.gz的帮助文件」· HTML 代码 · 共 29 行

HTML
29
字号
<HTML><HEAD><TITLE>Newmat09 - sorting</TITLE></HEAD><BODY><H2>Sorting</H2><A HREF="fft.html">  next</A> - <A HREF="fft.html">  skip</A> - <A HREF="refer.html">  up</A> - <A HREF="index.html">  start</A><P>To sort the values in a matrix or vector, <TT>A</TT>, (in general thisoperationmakes sense only for vectors and diagonal matrices) use<PRE>    SortAscending(A);</PRE>or<PRE>    SortDescending(A);</PRE>I use the quicksort algorithm. The algorithm is similar to that inSedgewick's algorithms in C++. If the sort seems to be failing (as quicksortcan do) an exception is thrown.<P>You will get incorrect results if you try to sort a band matrix - but why wouldyou want to sort a band matrix?</BODY></HTML>

⌨️ 快捷键说明

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