Ok, i'll look for it. Thank you.
Type: Posts; User: kurko82
Ok, i'll look for it. Thank you.
Hi. I work above all with Matlab (in C I am a beginner), but i know that a well programmed C code is faster than a Matlab one. So, is there any mathematical library which contains functions similar...
You are right. In fact, I have just made a function to do the index:
int coord(int i, int j, int cols)
{
return (j-1) * cols + (i-1);
}
for (int x = 1; x < filas; x++){
for(int y = 1;...
Ok thanks for your answers. I finally did it ;)
for (int x = 0; x < rows; x++){
for(int y = 0; y < cols; y++){
data2[x * cols + y] = ax*ay*data[x * cols + y] + .....
}
OK, you are right, I explained it better last message. My problem with arrays come when I try to write in array2D all MxArray values. MxArray is a double matrix(array2D). And thanks for your sum...
lol, thanks for your answer and for your correction (have to -> may, i may improve my english).
Well, data2 is an output array and its values are added each "for loop" iteration, and data is only...
Hi Mats. Thanks for your answer. The problem is that data is an input array, so I have to put their values to a new array, or do i have to use a pointer to this array?
Hi. I made a function in Matlab for image processing (with 256x256 arrays), but it contains a "for loop" that make it slow. So I think it'd be faster in c++, but i'm just a beginner and i don't know...