Search:

Type: Posts; User: vbdave78

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    29,544

    Matrix Multiplication using threads

    Hi,
    This code has been written to multiply 2 matrices using threads. The computation of each element of the matrix happens in the thread. As you can see at the end of the code, the sample outputs...
  2. Replies
    7
    Views
    3,329

    C and C++ users who are well-versed in...

    [Quote]
    C and C++ users who are well-versed in pointer arithmetic and the nuances of memory allocation can get away with code like what you did above. However, I suggest that you stay away from it...
  3. Replies
    7
    Views
    3,329

    Freeing memory

    Hi,
    Below is a code that has been written so that I can compute the fibinacci sequence using threads based on user input at command line. The program has been written for a linux OS.
    There is a...
  4. Replies
    9
    Views
    1,713

    Thank you!! Changing the seed works:)

    Thank you!! Changing the seed works:)
  5. Replies
    9
    Views
    1,713

    Random Numbers

    Hi,

    I have written a program that uses the random number generator function from the GNU scientific library.
    Every time I execute the program it generates the same random numbers. Is there...
  6. Replies
    6
    Views
    8,836

    Thank you for your help. I have figured out that...

    Thank you for your help.
    I have figured out that I need the GSL header files to be able to use those functions. I cant find them on my system anywere however which is a different story all together....
  7. Replies
    6
    Views
    8,836

    Here is a simple program that I ran using the...

    Here is a simple program that I ran using the following command
    cc error.c -lm.
    I am running this code on a linux machine.




    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
  8. Replies
    6
    Views
    8,836

    Undefined reference to ln() and ranf()

    Hi,

    I am trying to generate gaussian random variables. I am using the following snippet of code to do this. However it gives me the error "undefined reference to ln()". It does the same for...
Results 1 to 8 of 8