Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Pass by reference in MexFunction
Replies: 13   Last Post: Apr 22, 2013 11:08 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Marc Moreau

Posts: 2
Registered: 11/13/10
Pass by reference in MexFunction
Posted: Nov 13, 2010 4:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello all,

I'm doing some work with EEGLAB where I would like implement a Wavelet transform on CUDA. One of the concerns we have with memory allocation. The input and output to the function is large, so large in fact, that we would like to not have to create new output matrixes for each call. We would like to preallocate the output array and then repeatedly use it on subsequent calls. I have been looking around and have been unable to locate any documentation on how this is possible or why it isn't.

Any suggestions?

Marc Moreau



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.