help-octave
[Top][All Lists]
Advanced

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

complexNDarray of type std::complex<long long>


From: shravan61
Subject: complexNDarray of type std::complex<long long>
Date: Wed, 13 May 2015 22:45:42 -0700 (PDT)

Hi,

I am writing oct functions which call an external library. The functions
that I use from external library takes input arguments of type
std::complex<long long>* . But in octave, complexNDarray is of type
std::complex<double>. As long long and double have different represenation
in the hardware, I cannot typecast pointers. So, I have to copy the data
from complexNDarray to std::complex<long long> array. 


When passing large array as input to the external function, copying is
slowing down the simulation. I want to increase the speed (avoid copying,
instead take advantage of pointers). Looks like I have to add
std::complex<long long> type to Octave.

Can anyone please give me direction on how to add std::complex<long long>?


Thanks
Shravan



--
View this message in context: 
http://octave.1599824.n4.nabble.com/complexNDarray-of-type-std-complex-long-long-tp4670381.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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