📄 lans_hashinit.m
字号:
% lans_hashinit - Initialize a numerical hash structure%% [lhash] = lans_hashinit(d1,d2,...)%% _____OUTPUTS____________________________________________________________% lhash LANS hash structure (struct)% .list list of values in each dimension (cell)% .idx indices of values in each dimension (cell)% .max max # of elements in each cell dimension(cell)% .point current hash pointer/index (cell)% all initialized to 1% .read current pointed values (cell)%% .amax max # of elements (in all dimensions) (scalar)% .apoint current absolute pointer (scalar)%% _____INPUTS_____________________________________________________________% dn each dimension of hash table (row vector)% ...% % _____NOTES______________________________________________________________% - use mainly as a fault-recovery counter for lans_sim% - .cpoint faciliates indexing array access, i.e. .cpoint{:} as in% sex(vhash.cpoint{:})=tex% which cannot be done with sex(vhash.point)% however
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -