Artifact 54c3ffe931870b55c235624aaabcf40bd17369c29cf021a3f5e182807c0b170b:
- Executable file
r37/packages/plot/xvect.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 679) [annotate] [blame] [check-ins using] [more...]
- Executable file
r38/packages/plot/xvect.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 679) [annotate] [blame] [check-ins using]
module xvect; % Support for vectors with adaptive length. % Author: Herbert Melenk, ZIB-Berlin. % Note: CSL version uses 1024, PSL 128. symbolic procedure mkxvect(); {mkvect(1024)}; symbolic procedure xputv(v,n,w); begin scalar i,j; i:=iquotient(n,1024); j:=iremainder(n,1024); while(i>0) do <<if null cdr v then cdr v:= mkxvect(); v:=cdr v; i:=i #- 1>>; iputv(car v,j,w); return w; end; symbolic procedure xgetv(v,n); begin scalar i,j,w; i:=iquotient(n,1024); j:=iremainder(n,1024); while(i>0 and v) do <<v:=cdr v; i:=i #- 1>>; w:=if v then igetv(car v,j); return w end; endmodule; end;