Type: Posts; User: LMHmedchem
Search took 0.02 seconds.
April 3rd, 2014, 04:20 PM
I have made a few modifications to make the tool more widget like. It now reads the subset size from the command line and takes the data from an input file.
// file sort3_02.cpp based from...
April 2nd, 2014, 11:56 PM
Well I was able to run this set of data and I pulled out all of the strings that were found to have common 3 bit subsets. Then I dropped the subset size to 2 and run the strings that had no common 3...
April 2nd, 2014, 04:04 PM
I was still having some problems because of the range-based for loops but I did a little looking around and was able to compile with,
g++ -c -std=c++11 sort2_03.cpp
It looks like the default...
April 2nd, 2014, 12:12 PM
Thanks to everyone for all the thoughtful replies so far. I am compiling the code posted by razzle and having some issues. I don't have VS, so I am compiling with gnu. I don't think that the first...
April 1st, 2014, 11:14 PM
I compiled the code you posted and ran it with some additional data. This is the code I compiled,
April 1st, 2014, 01:44 PM
Yes, I am having trouble with the definition, partly because this is something I am still try to figure out. I'm not exactly sure what the best outcome really is, so I have to start with a best...
April 1st, 2014, 01:20 PM
I have a problem I am working on where I need to sort some data based on the values of a string of bits. The strings look like this,
there are 18 bits, 1 means a...
January 19th, 2014, 05:59 PM
I am looking at something like this,
// resize 2D storage structure
void resizeVec( std::vector<std::vector<double> > &vec , int ROWS , int...
January 19th, 2014, 05:08 PM
Well, as I said, I didn't write this code and had never really looked at it before it failed today. I can hard code the array size using static and process the files I am looking at, but I would have...
January 19th, 2014, 03:25 PM
This program has worked for a long time as written. I will process a smaller input file with no issues. It was also my understanding that the compiler needed to know the size of an array to know how...
January 19th, 2014, 02:17 PM
gcc version 4.8.2 (GCC)
I am compiling with g++, but it looks as if this is written in c. Would it make any difference to compile with gcc?
If I convert to static and hard code for this input...
January 19th, 2014, 01:24 PM
I have a little program that does some statistical processing on text files. The program has thrown a segmentation fault with an input file that is larger that I have used before. I didn't...
October 18th, 2013, 11:13 AM
I guess I need to add some additional error checking like that. These global variables, like the number of graph neighbors, are used for thousands of calculations and it would be a bore to check...
October 17th, 2013, 06:20 PM
For the second case,
XV0 = XV0 + 1/sqrt(fabs( (double)molAtoms[currentAtom].valenceDelta ));
The class member molAtoms[currentAtom].valenceDelta is a float, but XVO is a double. I am running...
October 17th, 2013, 04:40 PM
Since X0 and XV0 are doubles, I changed to,
// simple X0, sum reciprocal square root of simple delta
X0 = X0 + 1/sqrt( (double)molAtoms[currentAtom].simpleDelta );
October 17th, 2013, 02:30 PM
Well removing the space does get it to compile, except there are some errors. Oddly, these compiler errors do not show up under gcc3.4 cygwin, only under gcc3.3 opensuse. That is another issue I...
October 17th, 2013, 02:09 PM
Well that would be annoyingly simple. I need to go back a bit and test that. Why would all the other versions of gcc that this compiles under not care about the extra space?
October 17th, 2013, 01:35 PM
The opensuse version of g77 is 3.3.3-hammer. Under cygwin, the version is 3.4.4. I would have to open the cent VM to check, but I think that is 3.4 as well. I have compiled this src under cygwin and...
October 17th, 2013, 01:15 PM
I am trying to compile some code under opensuse 12.2. The code compiles fine under cygwin and CentOS. Under suse, I get the error "directory name must immediately follow -I"
This is the...
July 15th, 2013, 03:14 PM
I guess I should have indicated that I was posting pseudo code, at least for the assignments. These vectors are populated with push_back and I have printed them to confirm their contents. This src...
July 15th, 2013, 02:20 PM
I found that if I use sort with greater<float>(), then it will work,
sort( vec2.begin(), vec2.end(), greater<float>() );
This gives the anticipated behavior for both vectors. Can someone...
July 15th, 2013, 02:13 PM
I have two vectors of float that I need to sort in reverse order. reverse() seems to work for one of them, but not the other. I have toggled between sort() and reverse(). for one vector, the expected...
Well I was able to get this working,
in bash script find_OS_NAME.sh,
# script to find the OS distribution and version
As advertized, I would like to call a script from a makfile to glean some information about the OS. What I more or less need is the OS name and version (CentOS-5.9, OPENSUSE-12.2, Cygwin,...
Unfortunately, I have had great trouble getting gdb to play nicely with g77. If anyone has a good writeup on how to do that, I would appreciate a link.
I add a second conditional in the for loop....
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.