Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for goocreations

Hi I've seen a function in numpy ([URL="http://docs.scipy.org/doc/numpy/reference/generated/numpy.gradient.html"]http://docs.scipy.org/doc/numpy/reference/generated/numpy.gradient.html[/URL]) for calculating the gradient of a 2-dimensional array. Numpy also provides 2 examples on that website (I'm more interested in the second one). I now want to use such a function in C++. Does anyone know if there is such a function …

Member Avatar for goocreations
0
2K
Member Avatar for goocreations

Hi all. I have detected something that I can't explain, and hope someone can help me. I have 2 functions for allocating and de-allocating arrays: [CODE]char **c; void allocate() { char **c = new char*[1000]; for(int i = 0; i < 1000; i++) { char *g = new char[10000]; for(int …

Member Avatar for rubberman
0
139
Member Avatar for goocreations

Hi I'm looking for an efficient way of converting an array of integers to an array of doubles. Currently I'm doing this: [CODE]int *a = new int[1000]; //And then assign values to the indexes double *b = new double[1000]; for(int i = 0; i < 1000; i++) { b[i] = …

Member Avatar for mrnutty
0
5K
Member Avatar for goocreations

Hi all I'm stuck with this problem for a couple of weeks now, and my normal human brain can't tell me what's going wrong. I've created my own class, inheriting from QThread. Nothing weird in calling it: [CODE] MyThread *thread = new MyThread(); thread->start(); while(thread->isRunning) ; delete thread[/CODE]; I know …

Member Avatar for mike_2000_17
0
112
Member Avatar for goocreations

I have an array with a bunch of values (the length of the array can vary): [CODE]int a[] = {1, 6, 9, 4, 3, 7, 5};[/CODE] I want to generate all possible combinations available. The problem is that the size of the subset may vary. The user may for instance …

Member Avatar for goocreations
0
162