Hi FactChecker; thank you for your response. Yes it now seems that I will run the unit tests under several use-cases and try to merge the profiling results.
Ah, I see. Unfortunately bla_do() is a subroutine, and I can't touch it (I must view it as a black box), so I can't change it into a module. I think because of this problem, I can't use the method you are suggesting.
Because I am testing bla_do(), I can't modify it. So I can't remove the declaration in the beginning. But I am certain that the way the fortran is set up in my real code, that variable is declared equal to 1 only on the first iteration ; thereafter it takes on the last value when the function...
will this work if the variable b belongs solely to (and is not returned by) bla_do? In my subroutine (bla_do), it is declared equal to 1. Like this:
module bla
integer b
contains
subroutine bla_reset()
b = 1
end subroutine bla_reset()
function bla_do()
integer b \1\
b = b + 3
end...
Hi gsal, thank you for your response.
Unfortunately, I cannot post my code, and I cannot modify the subroutine in any way (I am unit testing it).
If I write a module with its set of variables to reset to initial values, can I call that from my parent function? Or are those variable names only...
Hello,
I am trying to figure out how to clear a variable inside a subroutine from a calling function. The variable in the subroutine acts as a persistent(MATLAB) or static(C), but once in so many calls I want it to be reset to empty as if the subroutine is being called for the first time.
I...
Maybe I missed the numerical methods books in the textbook forum? But I'd like a few suggestions on good texts that are descriptive in implementing numerical algorithms like root-finding, numerical integration, numerical interpolation, etc. I was about to buy Numerical Recipes
But I noticed...
I read in my metric spaces book that a separable space is that which has a countable, dense subset. This definition has no intuitive meaning to me. I'm able to show if a space is dense or not, and I think I can show a space is countable. But, I'm missing the "so what?!"
I would like to...
I hope my function is bounded and continuous. My ultimate goal is to show a homeomorphism from a normed vector space to another. So the function I pick must be bicontinuous (and therefore bounded). So let's assume I was smart enough to pick a bicontinuous and bounded function.
so for a mapping f:X->Y
where X,Y are Normed Vector Spaces
if I have a function f(x) = y such that x in X and y in Y, how do I explicitly find f inverse?
I sat down to do this and realize I've only been trained in the Reals where you switch the x,y and then solve for y. But this won't...
My question involves supremums and their implications:
say I have the sequences \left\{x_{k}\right\}_{k=1}^{\infty} and \left\{y_{k}\right\}_{k=1}^{\infty}
and I know sup \left\{x_{k}:k\in N \right\} \leq sup \left\{y_{k}:k\in N \right\}
What can I say about the sequence...
mkay so I know that I should make a histogram, normalize the histogram, and then fit a curve to the distribution then.
Now my question is, can I normalize my data before making a histogram, and will that process give me the probabilities on the y-axis?
I have a discrete set of data. I'd like to visualize it probabilistically. Unfortunately, I focused in Num Methods in grad school and am very weak in Probability. Where is a good place to start to visualize this data set using a discrete pdf?
I know a histagram is good to show # of...