[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrong type argument error from compiled mex function
From: |
John W. Eaton |
Subject: |
Wrong type argument error from compiled mex function |
Date: |
Fri, 30 Jun 2006 11:28:48 -0400 |
On 1-Jul-2006, Paul Koufalas wrote:
| G'day all
|
| I successfully compiled a 3rd party MEX function (bound constrained
| global optimisation code) using Octave's mex utility.
|
| However, I get this error message when trying to use the compiled function:
|
| error: octave_base_value::matrix_value(): wrong type argument `int32 matrix'
| error: octave_base_value::matrix_value(): wrong type argument `int16 matrix'
| error: octave_base_value::matrix_value(): wrong type argument `int16 matrix'
|
| Depending on the arguments I pass to it (standard optimisation test
| functions and bounds), I either get the Octave prompt or a seg fault and
| the Bash prompt.
|
| I'm not sure where to start looking for the offending MEX function
| code...nothing in the MEX function code stands out to me.
I don't think integer matrices are properly handled by the mex code
in Octave yet. But you haven't provided enough information to allow
anyone to say more than that. If you want help with debugging, you
have to provide something to debug.
jwe