annotate arrows/@abuffer/abuffer.m @ 2:7357e1dc2ad6
Simplified scheduler library with new schedule representation.
author |
samer |
date |
Sat, 22 Dec 2012 16:17:51 +0000 |
parents |
672052bd81f8 |
children |
|
rev |
line source |
samer@0
|
1 % abuffer - arrow that collects several outputs from supplied generator arrow
|
samer@0
|
2 %
|
samer@0
|
3 % abuffer ::
|
samer@0
|
4 % arrow({},{[[N]]},S) ~'arrow with no inputs and one output',
|
samer@0
|
5 % L:natural ~'width of buffer'
|
samer@0
|
6 % -> arrow({}, {[[N,L]]},S).
|
samer@0
|
7
|
samer@0
|
8 function o=abuffer(a,width)
|
samer@0
|
9 s.base=a;
|
samer@0
|
10 s.width=width;
|
samer@0
|
11 o=class(s,'abuffer',arrow(nargin(a),narout(a)));
|
samer@0
|
12 end
|