Hi guys,
I have written a library that manipulates data stored in double arrays. It took months to fine tune it and here it is, working fine. Everything was great until I started integrating my project with another open source project that uses float arrays. I need to pass my double arrays to the function that requires float arrays.. I am out of ideas how to do that.. I would like to avoid re-writing my project to use float instead of double and I also would like to avoid copying values from double array to float array and pass float array.
So here is the question - is there any way to pass my double array to function that requires float array?
Cheers,
Greg
I have written a library that manipulates data stored in double arrays. It took months to fine tune it and here it is, working fine. Everything was great until I started integrating my project with another open source project that uses float arrays. I need to pass my double arrays to the function that requires float arrays.. I am out of ideas how to do that.. I would like to avoid re-writing my project to use float instead of double and I also would like to avoid copying values from double array to float array and pass float array.
So here is the question - is there any way to pass my double array to function that requires float array?
Cheers,
Greg
Comment