Reputation
57,526
Next tag badge:
226/100 score
17/20 answers
Badges
7 94 225
Newest
 Nice Answer
Impact
~795k people reached

Jan
11
comment Why does the function Image not yield a proper output?
@george2079, or ToExpression@ToBoxes@TreeForm@{1, 2, 3}
Jan
9
comment Compilation error: “Could not complete external evaluation at…”
The Compile is fine, but you only need to compile once. f = Compile[...] then use f in Meaner2. Also what size is the array?
Jan
9
comment Compilation error: “Could not complete external evaluation at…”
A quick observation - you are running the C compiler each time Meaner2 is called.
Jan
7
comment How to make FlattenAt work with Span?
You could use List /@ Range[Length@li][[sp]] to accommodate All and negative positions in the span.
Jan
5
comment For-loop function problem
You might want to check out FixedPoint as a replacement for the While loop.
Jan
4
comment For-loop function problem
I'm voting to close this question as off-topic because the code implements an infinite loop and therefore running indefinitely is the correct behaviour.
Jan
4
comment For-loop function problem
This is not a problem with memory or with Mathematica's loop functions. The problem is that your code contains a While loop which terminates only when dE <= endPoint, a condition which is never true for the k=13924 point in trueAnomaly[3*58944, 58944, 0.8]. At this point instead of converging to a single fixed value, e1 stabilises on a cycle of 3 values.
Jan
3
comment CreateLibrary for CUDA with NVCCCompiler
I get the same error. The option is listed in the documentation for NVCCCompiler and clearly works in CreateLibrary even though it isn't recognised as an option. I think CUDALink in general is a bit rough around the edges!
Jan
3
reviewed Close Why do I get different results for the same input specified using natural language phrasing?
Jan
3
reviewed Close V10's TypeSystem - what are these function useful for?
Jan
3
answered CreateLibrary for CUDA with NVCCCompiler
Jan
3
comment CreateLibrary for CUDA with NVCCCompiler
I updated CUDAResources to version 10.2.0.3 and got the same problem. I think I have a solution, will post an answer shortly.
Jan
3
comment CreateLibrary for CUDA with NVCCCompiler
Can you include the output of CUDAInformation[] and CUDAResourcesInformation[]?
Jan
3
comment CreateLibrary for CUDA with NVCCCompiler
I have toolkit version 6.0 here. To test compiling to C just use something simple like Compile[{x}, x + 1, CompilationTarget -> "C"]
Jan
2
comment CreateLibrary for CUDA with NVCCCompiler
Regarding 2), the DLL is a library which you can load with LibraryFunctionLoad.
Jan
2
comment CreateLibrary for CUDA with NVCCCompiler
It is working for me with Mathematica 10.3.1 on Windows 10 with Visual Studio 2012. Can you compile to C (non-CUDA) with your setup? Also try using the option "ShellOutputFunction" -> Print in CreateLibrary.
Dec
31
comment different situations with Compilation of ConstantArray
Evaluate must wrap the whole argument, it does not work buried inside a CompoundExpression.
Dec
29
comment Attributes with Pattern test
FYI this is discussed in the Possible Issues section of the PatternTest documentation
Dec
29
comment Map level inconsistencies with Missing values
The easiest solution will be to replace Missing[] with something atomic like Indeterminate or "missing". Fundamentally Missing[] has a depth of 2 and you are getting the expected result.
Dec
29
answered How to recover “pretty” format after split?