help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Return std::complex<float> as octave_value from oct.


From: Zoltán Szabó
Subject: Return std::complex<float> as octave_value from oct.
Date: Fri, 15 Jul 2016 17:00:07 +0100

Hi,

I have an oct module where I have a std::complex<float> as a result of some c++ function.
What is the best way to return it as an octave_value to octave? I tried to create a ComplexNDArray but I could not figure out how to do it properly.

My result variable basically an array of complex numbers, so like:
[24.000000 + 0.000000i, 0.809017 + -5.567582i]

So if needed I can create a different type of variable than complex<float> from the oct module.

Thank you,
Zoltan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]