Search:

Type: Posts; User: cuizy

Search: Search took 0.01 seconds.

  1. yes it works fine now. Even when i run larger...

    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...
  2. oooh thanks for the help i guess when i'm...

    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...
  3. i have no idea what that line does. I actually...

    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...
  4. ok i think here is the problem, for a 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...
  5. computer crashing when running larger data, memory problem?

    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...
  6. Replies
    10
    Views
    10,898

    thanks for all the suggestions, what i'm using...

    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...
  7. Replies
    10
    Views
    10,898

    using malloc in a function

    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...
  8. Thread: lapack using c++

    by cuizy
    Replies
    1
    Views
    3,336

    lapack using c++

    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*,...
  9. Replies
    6
    Views
    1,639

    what's the path i need to put for -L/[path] ? ...

    what's the path i need to put for
    -L/[path]
    ? my current directory?
  10. Replies
    6
    Views
    1,639

    i'm using gnu gcc for both

    i'm using gnu gcc for both
  11. Replies
    6
    Views
    1,639

    how to add libaries in c

    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...
  12. Replies
    2
    Views
    1,312

    change and return arrays from a function

    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...
  13. do you mean going through a loop and assigning...

    do you mean going through a loop and assigning
    newhash[i] = (hash_item *)malloc(sizeof(hash_item));
    ?
  14. trying to make a hash table......trouble w/ memory?

    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...
  15. Replies
    1
    Views
    1,383

    separating functions into diff files

    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...
  16. Replies
    1
    Views
    5,973

    input data from file into matrix?

    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 ........
Results 1 to 16 of 16