34,278 reputation
481209
bio website
location ND
age 29
visits member for 1 year, 4 months
seen 42 mins ago
stats profile views 3,139

contact details

Visit Mathematica.SE


May
15
comment How can I access a variable in one evaluator from another evaluator?
I didn't manage to get this working in 9, take a look here
May
15
comment Mathlink and multithreading
@OleksandrR. That's very interesting, I may be able to make use of that for MATLink
May
15
comment Mathlink and multithreading
2. As I understand, the OP's aim is to speed up computation by parallelization. He needs to use several kernels for parallel evaluations, as you noted.
May
15
comment Mathlink and multithreading
@OleksandrR. It's possible to have multiple links to the same kernel, but there are two problems with that: 1. I think there needs to be some kernel-side code which cycles through the links and ensures that the commands sent on each link are evaluated (otherwise you could just set the $ParentLink, but not with multiple links). I'm not really sure how to do this cycling properly or if it's even possible. I'd like to see a solution to this too (just out of theoretical interest).
May
15
awarded  Good Answer
May
14
revised Concerning ShowLegend in Mathematica
added 2 characters in body
May
14
revised Generating partitions of a set
edited tags
May
14
comment Using Parallelize on a For loop
You can't auto-parallelize a For loop because it uses mutable state (the iteration variable). As a beginner it's best never to use For anyway---if you are using it, you are very likely doing things in a too complicated or an inefficient manner. Use either Do (for which you have ParallelDo but you still need to avoid changing global variables in the loop) or in your case, use Table, which has the counterpart ParallelTable.
May
14
revised Using Parallelize on a For loop
added 25 characters in body
May
14
comment Mathlink and multithreading
You can't use a single kernel from multiple threads (at least not without mutex protection). You can launch as many kernels as you like though, and let each thread have their own. How many depends on your Mathematica license (check the $MaxLicenseProcesses variable). But as I said before, it looks like you are making things much too complicated and difficult for yourself. Since your C program seems to heavily rely on Mathematica anyway, why don't you drive it from Mathematica instead driving Mma from C? You can easily parallelize from Mma then and use $MaxLicenseSubprocesses threads.
May
14
comment White noise $\eta(t)$
But do take a look here: reference.wolfram.com/mathematica/guide/…
May
14
comment White noise $\eta(t)$
The numerical methods used by NDSolve won't work correctly if you introduce noise.
May
14
comment Saddle Point in Matrix
Do we have a list of these "methods" that work on SparseArray? If no, I woulnd't mind a question on it.
May
14
comment Variable naming changes everything
@5xum Did you report this to support@wolfram.com as bug? Please do if you haven't yet and link back to this question.
May
14
comment How to plot filling under a curve?
@Misery That's a convenience feature. Compare Plot[1/x, {x, 0, 2}] with Plot[1/x, {x, 0, 2}, PlotRange -> All]. If PlotRange -> All were the default people would surely complain about this example I gave. It is the default, so people complain about other examples. We can't eat the cake and have it too ;-)
May
14
revised What is $ sign in Mathematica?
edited body
May
14
revised What is $ sign in Mathematica?
added 4 characters in body
May
14
revised How to deal with zero in NDSolve in mathematica?
added 26 characters in body
May
14
awarded  Favorite Question
May
13
comment Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange
DataRange only works if you give a list of single values to these functions. It does not work if you give a list of value pairs.