[Top][All Lists]

[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)


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>?


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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