Hello All
I am returning to some numerical programming in C after a bit of time away. I have a question about the use of LAPACK and CLAPACK these days. CLAPACK has not had a release since 2000 as...
Type: Posts; User: Marv
Hello All
I am returning to some numerical programming in C after a bit of time away. I have a question about the use of LAPACK and CLAPACK these days. CLAPACK has not had a release since 2000 as...
Thanks all
Itsme86 wrote:
What indication do you have that the declarations as given by stdint.h wont be
completely portable?
Thanks
Some compliers, I am told, regard an int as 16 bits others as 32 bits. There are portable
means of declaring variables and I can't recall what they are (haven't been C coding for a while).
Hi everyone
Where can I find a list of portable declarations for ints and floats?
Thanks for the help everyone.
Those have all been good suggestions. Unfortunately I do not have control (or little control) over how the file is initially written.
I think I will follow Swoopy and Salem's idea about reading a...
Thanks for the replies
But these files are big. Reading an int at a time and making the assignment to the elements of a float array will take a lot more time than using fread to read the big block...
Hello
I would like to read a binary file contain short (16 bit) ints into an array. However, I would like that
array to be of type float (32 bit). Presently I am simply reading the file into an...
Dave_sinkula
Thanks. I guess could just start with that code and edit it. I was really hoping for something well tested but i can't be
too picky.
Thanks citizen
Choice to should read
(2) indexing into a dynamically allocated 4D array (created using brewbeck's method or some 4D version of the NumRec in C code) using usual array syntax.
Does anybody know which would be faster:
(1) indexing into a 1D array with the macro suggested by anon or
(2) indexing into a 4D array using usual array syntax.
Thanks again
Thanks robatino
That was my first inclination but as I write code for my particular project I am finding that indexing into a
1D array to mimick a 4D array just gets difficult to read (and debug).
Brewbuck
Also "Numerical Recipes in C" (which does up to 3D dyn alloc) does not do so many calls to calloc. It
has three calls only (one for each dim).
Brewbuck
Thanks for the very speedy reply! I will give ypour code a try and make my own function to free
the memory. I was sort of hoping that someone could point me to a good web resource for...
Hello
Does anybody have or no where I can find code for dynamic allocation of 4D arrays.
Thank you