- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【SortHeap2DArray】
- inputs:
- MyArray[ MaxSize1, MaxSize2 ]( numericarrayref ),
- int Size1( numericsimple ),
- int Size2( numericsimple ),
- int Order( numericsimple ) ;
-
- variables:
- int var0( 0 ),
- var1( false ) ;
- if Size2 > 1 then
- begin
- for var0 = IntPortion( Size2 / 2 ) downto 1
- begin
- var1 = CopyColumn( MyArray, 0, var0, 1, Size1 ) ;
-
- var1 = HeapSift2D( MyArray, var0, Size1, Size2, Order ) ;
- end;
- for var0 = Size2 downto 2
- begin
- var1 = CopyColumn( MyArray, 0, var0, 1, Size1 ) ;
-
- var1 = CopyColumn( MyArray, var0, 1, 1, Size1 ) ;
-
- var1 = HeapSift2D( MyArray, 1, Size1, var0 - 1, Order ) ;
- end ;
- end ;
- SortHeap2DArray = true ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|