Mercurial > hg > ishara
view sequences/@seq/gather.m @ 6:0ce3c2070089
Removed duplicate code and fixed doc in timed_action.
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:33:37 +0000 |
parents | 3f77126f7b5f |
children |
line wrap: on
line source
% gather - make big array of all arrays in a sequence % % gather :: N:natural, seq [D] -> [E], seq [D]. % gather :: % N:natural ~'the dimension along which to collect arrays', % seq [D] ~'the seq to gather', % options { % draw :: boolean /0 ~'whether or not to call plotfn every iteration'; % plotfn :: seq [D]->handle ~'plotting function'; % save :: natural /0 ~'if >0, then save state every this many interations'; % recover:: boolean / 0 ~'if 1, then attempt to restart from saved state'; % id :: string /'@gather' ~'file to save state' % } % -> [E], seq [D]. % % E is such that E(I) = D(I) if I~=N. The second return % is the final object in the sequence function Y=gather(dim,X,varargin), Y=gathern(dim,inf,X,varargin{:}); end