Seasons Of Code

MEX Memory Interfacing - Arjun Rao

WnCC - Seasons of Code

Seasons of Code is a programme launched by WnCC along the lines of the Google Summer of Code. It provides one with an opprtunity to learn and participate in a variety of interesting projects under the mentorship of the very best in our institute.

List of Projects

MEX Memory Interfacing

MEX Memory Interfacing

The aim of this project is to remove the annoyances typically faced when writing a MEX program so as to be able to write meaningful, clean MEX (Short for MATLAB EXtensions) code.

MEX is MATLAB’s way of enabling you to use C to perform computations that would be painfully slow when written in MATLAB itself.

While an elegant interface for C, it lacks several niceties that C++ provides. The Library MexMemoryInterfacing that I have worked on aims to bridge that gap to enable C++ programmers to elegantly access the MEX Interface all the while dealing with familiar constructs such as vectors, RAII, type inference.

The current repository can be accessed at

(Partially Open Source since it depends on proprietary MATLAB Software. The code of MexMemoryInterface is completely Open Source)