Mercurial > hg > ishara
diff general/algo/gatherer.m @ 37:beb8a3f4a345
Renamed prefs to options throughout.
author | samer |
---|---|
date | Mon, 28 Jan 2013 10:52:11 +0000 |
parents | 47cb292350f3 |
children |
line wrap: on
line diff
--- a/general/algo/gatherer.m Thu Jan 24 14:51:23 2013 +0000 +++ b/general/algo/gatherer.m Mon Jan 28 10:52:11 2013 +0000 @@ -14,7 +14,7 @@ % collect :: void =>[[N,L]] ~'action to return buffer contents and reset'; % }. function api=gatherer(size_in,varargin) - opts=prefs('chunk',256,'init',512,'grow',2,'max',1e9,varargin{:}); + opts=options('chunk',256,'init',512,'grow',2,'max',1e9,varargin{:}); n=uint32(0); cap=opts.init; % initial capacity of buffer buf=zeros(size_in(1),cap); % buffer