Search:

Type: Posts; User: boyfarrell

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    6,053

    Hi, OK, thanks for the pointers. I notices...

    Hi,

    OK, thanks for the pointers. I notices that some functions were labels 'GNU Extensions' so wasn't too sure if I could point general users to that GNU C Library docs, but if they read it...
  2. Replies
    4
    Views
    6,053

    The standard C Library API

    Hello,

    Is the Standard C Library API on the GNU website (http://www.gnu.org/software/libc/manual/html_node/index.html) the correct reference for all C programmes? Moreover, it is the version of C...
  3. Replies
    6
    Views
    1,740

    Hi, 'pgm' means programme I guess... You...

    Hi,

    'pgm' means programme I guess...

    You can find information on the standard library functions here:
    http://www.gnu.org/software/libc/manual/html_node/Working-Directory.html
  4. Thread: GSL library

    by boyfarrell
    Replies
    16
    Views
    8,636

    Pete is right. According to the the GSL docs...

    Pete is right. According to the the GSL docs (http://www.csse.uwa.edu.au/programming/gsl-1.0/gsl-ref_34.html) the 7th argument of that function is the number of elements in the array you are passing...
  5. Replies
    6
    Views
    4,594

    For a well designed and open-source...

    For a well designed and open-source implementation of a histogram have a look here:
    http://www.gnu.org/software/gsl/manual/html_node/Histograms.html.
  6. Replies
    22
    Views
    9,836

    Here is a list of some other RNG...

    Here is a list of some other RNG

    e.g if you want gfsr4 RNG then,

    GSL_RNG_TYPE="gfsr4"

    then if you want use a different seed,

    GSL_RNG_SEED=983759
  7. Replies
    22
    Views
    9,836

    Hi, They are environmental variables for your...

    Hi,

    They are environmental variables for your shell, have a look at the example source code.

    Cheers,

    Dan.
  8. Replies
    2
    Views
    1,402

    Hello, Please tell how you installed GSL. Did...

    Hello,

    Please tell how you installed GSL. Did you down the load source code and complete the standard, ./configure, make, sudo make install? Or did you use a package manager?

    Chances are that...
  9. Replies
    6
    Views
    5,841

    Hi, In the first line of the program you...

    Hi,

    In the first line of the program you specify the type of data,


    double **data;

    data is already a pointer to an array of pointers to doubles... which is what read_data requires it to be....
  10. Replies
    6
    Views
    5,841

    Damn! People in this board are just too damn...

    Damn! People in this board are just too damn efficient! Nobody had replied 5 mins ago when I first looked.

    Yes, all the above points...! The following doesn't return any errors with -Wall...
  11. Replies
    7
    Views
    2,879

    You could also, make a GUI for your application,...

    You could also, make a GUI for your application, or make your application read command-line arguments. This assumes that you are happy using the Cocoa Framework which is probably included in your...
  12. Congratulations Tyrant! You just figured out a...

    Congratulations Tyrant!

    You just figured out a large chunk of code that will be very useful.

    No you didn't get anything wrong. The post above was telling me I wasn't following standard coding...
  13. What rule book is this from? This typedef...

    What rule book is this from?

    This typedef trick makes functions calls using these structs more compact, unless there is another way which obeys the rules? Maybe prefix with a name is a better...
  14. Thread: Class in C

    by boyfarrell
    Replies
    14
    Views
    1,677

    I don't know anything about C++ so I can't answer...

    I don't know anything about C++ so I can't answer that question, have a look here, C++ and Objective-C Compared.

    But as far I'm aware it is an object orientated language in the style of smalltalk...
  15. I would suggest that you use this function to...

    I would suggest that you use this function to return two number, the rows and columns.



    int fill_struct_integers(const char *fileName, unsigned *rows, unsigned *columns)
    {
    int x, y,...
  16. Hello, This is something I have to do all the...

    Hello,

    This is something I have to do all the time, for my data processing and simulation code (scientific programming).

    Define you structures with a typedef like this (notice I have changed...
  17. Thread: Class in C

    by boyfarrell
    Replies
    14
    Views
    1,677

    You can use Objective-C

    You CAN use objects in C with Objective-C.

    Objective-C (or objc as it is sometimes written) is a superset of C. This means that it IS C, but with objects added. You don't even have to use objects...
  18. Replies
    1
    Views
    2,977

    Matrix determinant which libraries?

    Hello,

    What is the best way to find the determinant of matrix using C code?

    I have heard about cblas and clinpack but I couldn't find anything in the way of documentation or example code for...
  19. Hi, #importis apart of the Objective-C...

    Hi,


    #importis apart of the Objective-C run-time. It is the same as
    #include, however, it first checks to see if a file has already been included, if so I won't include it again.

    The reason...
  20. Hi, I tried using #define however it does seem...

    Hi,

    I tried using #define however it does seem to work in my simple example programme,


    #import <stdio.h>
    #define double long double

    int main(int argc, char *argv[])
    {
  21. Replace double with long double in all my code.

    Hello,

    I have a quite a lot of code, 30 files or so, most of which is mathematical number crunching stuff. All the floating point number are defined as the double data-type. Is there a quick and...
  22. Hey thanks guys, I do tend to jumble things...

    Hey thanks guys, I do tend to jumble things around somestimes! I didn't notice I reversed the 'not equal too'. So it really throw me when the compiler returned no error message!

    Cheers for...
  23. Killing a programme using if statement....

    Hi all.

    I only want the programme to run if lengthX = lengthY = ptsF

    If not the above I would like an error custom error message to be printed and then the whole program to exit.

    I have...
  24. You legend! Thanks so much, works perfectly...

    You legend!

    Thanks so much, works perfectly now.

    Cheers, Daniel. ;)
  25. Think I will be very easy to make fscanf read a...

    Think I will be very easy to make fscanf read a file with 2 columns. You just need to change the 'format' (i.e. second input of fscanf) to \f\t\f\n. This would expect a float, a tab, another float...
Results 1 to 25 of 31
Page 1 of 2 1 2