Re: [Dev-C++] Passing a plane of 3-d array in C
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Per W. <pw...@ia...> - 2008-07-18 00:17:40
|
You can not pass an arbitrary plane of a three-dimensional array. You can pass a reference to the full array, together with a parameter that specify if you mean an X plane, an Y plane or an Z plane, and an index that specifies which plane. Then the function will itself have to locate the entries in that plane. To do that, the function must also know the size of your cube in all three dimensios. You may have to specify even more parameters if it is important that the function processes this plane in the correct order, i.e. you may have to specify u and v vectors, where the u vector may specify that the function should walk the cube from high z to low z, and the v vector may specify that the function should walk the cube from low y to high y. /pwm On Mon, 14 Jul 2008, piyush goswami wrote: > Hi, I am working on a C source file that uses a 3-dimensional array > declared as pointer-to a pointer-to a pointer. Could anybody tell me > as to how I can pass a particular plane of this 3-d array to a > function. > Also, if anybody can provide/suggest C code for calculating FFT (fast > fourier transform) and its inverse of a 2-dimensional complex array. > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |