-
Actually, the functions to get the real and imaginary parts of a cvec or cmat exist and they are in the itpp documentation. For single elements just use the std::complex ones.
vec itpp::real (const cvec &x)
Real part of complex values.
mat itpp::real (const cmat &x)
Real part of complex values.
mat itpp::real (const cmat &x)
Real part of complex values.
vec...
2009-07-03 14:14:52 UTC in IT++
-
While this is not the ideal case, I'm able to see single elements in the vec by calling the operator() function in gdb.
For instance, if there is a myvec variable in the scope I can see the element k with
p myvec.operator(k)
or
p myvec->operator(k)
if myvec is a pointer.
However, this not always works.
2009-06-25 22:16:33 UTC in IT++
-
I have the same problem.
The drawback of using Array<mat> is that you cannot do something like
Mat3d(:,i,:) = Mat2D
if you need to.
For that I think that you would need some kind of "three dimensional container", instead of a "one dimensional container" where each element is a "two dimensional container".
2009-06-25 22:09:12 UTC in IT++
-
I remember seeing here in the forum someone asking if itpp is thread safe and it was said that a global generator is used to get the random numbers, but I don't know if this is the cause of the problem.
I don't have experience with parallel execution but I have tried openMP with itpp and it also resulted in segmentation faults because of the AWGN_Channel. Having a simple way to parallelize...
2009-06-25 21:56:36 UTC in IT++
-
I was able to wrap a few classes I have made that use itpp with the help of boost python, but it would be very useful if it was possible to somehow automatically wrap the itpp itself.
That way I could just write something in python such as
import pyitpp
tdl = pyitpp.channels.TDL_Channel(...)
If such thing would ever be written the conversion from vec, mat, etc. to numpy arrays should...
2009-06-25 21:37:28 UTC in IT++