help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
oct intNDArray functions not working
From
:
Reza Housseini
Subject
:
oct intNDArray functions not working
Date
:
Thu, 22 Dec 2011 10:32:00 +0100
Hello,
I'm using the C++ API of Octave to write some code. In using the
intNDArray
declaration some problems with the functions occurred. Here the example:
#include <octave/oct.h>
#include <octave/intNDArray.h>
DEFUN_DLD(test_intNDArray, args, nargout, "")
{
octave_value_list retval;
intNDArray<int> BR(dim_vector(3,1),0);
FloatNDArray BF(dim_vector(3,1),0);
BR(0,0) = 10;
BF(0,0) = 9.8;
retval(0) = BR.max(0);
retval(1) = BF.max(0);
return retval;
}
which gives me the following error:
error: /media/extra/Master/Masterarbeit/Octave/dynamic/test_intNDArray.oct: failed to load: /media/extra/Master/Masterarbeit/Octave/dynamic/test_intNDArray.oct: undefined symbol: _ZNK10intNDArrayIiE3maxEi
although it compiles without errors. The
FloatNDArray
performs the operation without error, so it can't be an linking issue.
Thank you for the help.
Greetings,
Reza
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
oct intNDArray functions not working
,
Reza Housseini
<=
Re: oct intNDArray functions not working
,
Michael Goffioul
,
2011/12/22
Re: oct intNDArray functions not working
,
Reza Housseini
,
2011/12/22
Prev by Date:
Re: Plot window freezes
Next by Date:
Re: oct intNDArray functions not working
Previous by thread:
Re: Plot window freezes
Next by thread:
Re: oct intNDArray functions not working
Index(es):
Date
Thread