692 reputation
210
bio website
location
age
visits member for 1 year, 4 months
seen May 2 at 19:07
stats profile views 49

Apr
19
comment What technical obstacles prevent all Mathematica code compiling to C
Another way to think of this is, why can't more of the stuff be compiled so that Mathematica is a great alternative for purely numerical stuff. For instance, all the statistical functionality could be compilable, with proper numerical checks to make it more useful. The intersection of Mathematica and a numeric library such as GSL (in terms of functionality) could be compilable, to make Mathematica a viable alternative for purely numerical tasks.
Feb
24
comment Efficient Generation of Random Variates from a Copula Distribution
This is absolutely great,
Feb
20
comment Compiling Error functions of complex values
They compile for real values, but do not appear to compile for complex arguments.
Jan
27
comment I can't get Compile to work
There are many issues with with your functions. Variables are not localized, r is not defined in fug1, NSolve is not compilable and you probably mean to use g2 but are using function g1 in the FindRoot.
Jan
24
comment Mathematica 9 cannot solve this Integral. Mathematica 8 could. Is this a bug?
The topic is misleading. I thought it was about Regression in Statistics
Jan
18
comment CompiledFunction crashes kernel
Here is something similar from before: stackoverflow.com/questions/8262218/…
Jan
14
comment Compiling LinearSolve[] or creating a compilable procedural version of it
Using Inverse is not advisable. Typically, one uses LinearSolve to avoid inverting matrices.
Dec
17
comment Are you interested in purchasing David Wagner's “Power programming with Mathematica”?
I would be willing to buy it too.
Dec
15
comment Draw from HistogramDistribution with ParallelTable
It works for me with Module.
Oct
29
comment Can the CholeskyDecomposition function in Mathematica be made to work on non-symmetric matrices?
Thanks. This works, but will probably slow down things, when used on millions of iterations.
Oct
28
comment Can the CholeskyDecomposition function in Mathematica be made to work on non-symmetric matrices?
@rm -rf R is doing cholesky decomposition, but it uses only the upper triangular portion of the original matrix. So do most other numerical systems.
Oct
23
comment Compiling a recursive formula
I find that compilation alone (not to C) is significantly faster.
Aug
8
comment Can you call a C function that takes function pointers as arguments?
Alternately, you could use Delegates and .NETLink to pass a mathematica function to a C function that uses a function pointer
May
12
comment How can I deploy DLL files created by a Fortran function and call them from Mathematica
If I remember right, NetLink can call only C DLL's.
Feb
10
comment Which Distributions can be Compiled using RandomVariate
Beta distribution can be compiled too..
Feb
10
comment Which Distributions can be Compiled using RandomVariate
I just found out that RandomVariate[BetaDistribution[a,b]] can also be compiled. By the way, it is not always that simple to generate the random numbers before passing them to a compiled function, especially, if the number of draws are endogenously determined within the function, as part of some while loop.
Feb
7
comment Threading a compiled function over multiple arguments of different lengths
@Rojo Thanks, that works very well.
Feb
7
comment Threading a compiled function over multiple arguments of different lengths
Thanks for the above, but I need to us the compiled function via the ppost1 function. The ppost1 function will be used in another general function that needs to be called with different functions across different programs.
Feb
7
comment Threading a compiled function over multiple arguments of different lengths
I need the ppost1 function as it is supposed to be used in another function that expects the signature of ppost1, i.e., an argument arg, and a context.
Feb
2
comment Why is MainEvaluate being used when LinearSolve can be compiled?
@Oleksandr R. Thanks. That is very helpful information