Code covered by the BSD License  

Highlights from
functor

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 26.94 KB File ID: #27262
image thumbnail

functor

by Peter Cotton

 

16 Apr 2010

Automated composition of function handles

| Watch this File

File Information
Description

Functor is an annotated function (i.e. a function_handle with named input and output arguments). Collections of functors can be automatically composed into new functors, using functor.compose and/or functor.combine
 
I sometimes find this useful for refactoring, debugging and design of larger programs. Trace through functor.unitTests to see what is going on.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Automated composition of function handles

Required Products Bioinformatics Toolbox
MATLAB release MATLAB 7.9 (2009b)
Other requirements I use the bioinformatics toolbox but when posting I've tried to remove some dependency (toposort). See also http://www.cmpe.boun.edu.tr/~cemgil/matlab/layout.html
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
functional programming Peter Cotton 16 Apr 2010 10:58:53
function_handle Peter Cotton 16 Apr 2010 10:58:53
handle Peter Cotton 16 Apr 2010 10:58:53
composition Peter Cotton 16 Apr 2010 10:58:53
design Peter Cotton 16 Apr 2010 10:58:53
automatic composition Peter Cotton 16 Apr 2010 10:58:53
graphical Peter Cotton 16 Apr 2010 10:58:53
topological Peter Cotton 16 Apr 2010 10:58:53

Contact us at files@mathworks.com