I change back to FUNC(Matrix C. This mean, C30 not accept the direct address (i think because we are in ANSI C now, not C++), ? ) then i get this error : syntax error before '&' token MOST THING seem go right, but SOME not really CLEAR : the way to create & access & delete dynamic array ! deleting the two points closest to the singularity returns an error. Now i change the way : define every dynamic vars before go into the " main loop " and didnt use the task delete after each step : Numerical error in following substitution and even Gauss rule. If I use CONV2, with Shape set as ' same' >conv2 (imgtouse,blurfilter,'same'), then I get: 'Error: arguments must be matrices, not n-dimensional arrays.' Should I use loops to split the 18008 element array into a 60x100x3 array. memory ! I think, in each step, the func action() create new location for A & B, but the delete task not be done well ! The size in SRAM increased after each step, and error appeared ! If I delete the semi-colon in line 5, I see the computation of a 1x18008 array (Splash.jpg is 100圆0 pixels, RGB). SO, after debug several steps, i received error : trap due to. } /// this create some dynamic arrays and at the end, free their memories ! My PROBLEM here is the way to use dynamic array ! or some thing like that related to Memory Accessįortunately, MPLAB IDE have a nice debug tool, and it helps me alot in debuging the code !Ģ. The size in SRAM needed must larger than (60*50 + 50*60 ) * 4bytes = 24000 bytes.Įlse error : trap due to unimplemented RAM aceess memory. Mat->pData = (double*) malloc(maxRows * maxCols * sizeof(double)) Int newMat(Matrix* Mat, int maxRows, int maxCols) Void MulMat(Matrix C, Matrix A, Matrix B.) // C=A*B The DSP library seem not very useful for me in my way, so i wrote another Matrix&Vector lib, like this one : One of the most important point is that: dynamic array (Matrix & Vector). For my case there was just one path /usr/local/bin/parallel. This gives all the paths where executables named parallel is present. I was able to fix it as below: Run whereis parallel. Actually, i'm working with dspic33fj256mc710, to embedded some algorithms based on Newral Network This task 's very complicated and it really made me gone mad ! In my Path there was just one parallel executable binary but still it was not detecting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |