yes it works fine now. Even when i run larger data like 2000 iterations.......it just takes a while. I was wondering if the memory assignments would take up much time? Or it's probably my other...
Type: Posts; User: cuizy
yes it works fine now. Even when i run larger data like 2000 iterations.......it just takes a while. I was wondering if the memory assignments would take up much time? Or it's probably my other...
oooh thanks for the help
i guess when i'm running my new code it's not crashing since my ncl and nrl are always 0 anyways.
Some of the matrices do change sizes for the 500 iterations. like...
i have no idea what that line does. I actually used the allocation part from somewhere else and it seemed to work fine when i tested it. Should i delete that then?
if I free with this function...
ok i think here is the problem, for a function that i call a couple times, the variable declarations are:
double **ddmatrix(int nrl,int nrh,int ncl,int nch) //allocate/reallocate for matrix...
I am using lapack/blas implementation for my matrix operations (that operates in fortran). The rest of my code is just allocating and de-allocating memory blocks for the matrices. I need to loop...
thanks for all the suggestions,
what i'm using it for is that I wanted to use some matrix manipulations through lapack, and if i just pass the original pointers to the matrix/vectors, some of the...
i have a question about using malloc to assign variable memory.
So if i use malloc i should free that pointer after i use it right.
How about it in a function i use malloc to allocate memory for...
i installed lapack on my ubuntu system and it works with gcc compiler. However when i changed to g++ it gives me the error: undefined reference to `clapack_dgetrf(CBLAS_ORDER, int, int, double*,...
what's the path i need to put for
-L/[path]
? my current directory?
i'm using gnu gcc for both
I don't know if you guys have had experience with the c matrix library meschach. I wanted to use it for matrix inverse/ multiplication etc. And I tried to follow their advice on: Meschach page on...
I want to input empty arrays into a function and change the values and return those arrays. I remember something about if I only use *array1 as input, that array won't be re-written. Should it be...
do you mean going through a loop and assigning
newhash[i] = (hash_item *)malloc(sizeof(hash_item));
?
For now I am just trying to implement a hash table and a simplified version to see it work. Each entry has a key and a value and a pointer (in case of collisions it is a linked list)
Then the hash...
Hello, I have a pretty big file and I wanted to move the functions into other files. So far I've been compiling with
cc -o out main.c a.c
But I would like to just compile one c file. Is that...
hi......I'm terribly new to programming and have been trying to figure out the proper command to no avail. My input data is something like the following:
apple bee c .....
1.2 2.3 0 ........