Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Modifying MEX arguments in place?
Date: Thu, 14 Feb 2008 04:25:03 +0000 (UTC)
Organization: University of California San Diego
Lines: 13
Message-ID: <fp0fqv$3gd$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202963103 3597 172.30.248.37 (14 Feb 2008 04:25:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 14 Feb 2008 04:25:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 163259
Xref: news.mathworks.com comp.soft-sys.matlab:451297



For the MEX experts out there: I would like to factor a huge
matrix (passed in as a one-dimensional array) in-place in a
mex file.  Unfortunately, the documentation says there may
be side effects (and there are: the Matlab executive is
apparently getting all mixed up).

Is there no way I could modify an argument in-place? If that
is not possible, the penalty would be huge.  We are talking
about a matrix of several gigabytes size...

Thanks for your help.

Petr