Skip to main content

All Questions

2 votes
1 answer
81 views

Internal`MRealToString Gives Scientific Output From Large Inputs. How To Stop This?

The undocumented Internal`MRealToString works just fine for reals up to 999999. For anything over it outputs scientific notation. I don't need scientific, I need simple decimal. ...
Anton's user avatar
  • 385
13 votes
2 answers
305 views

Arithmetic operations on NumericArrays

Currently, NumericArrays are directly supported by the most important array-related functions, what makes them a very attractive data structure for implementing ...
Alexey Popkov's user avatar
6 votes
1 answer
168 views

How to vectorize this nonlinear ODE system for NDSolve?

I learned a long time ago that NDSolve can often be sped up by vectorizing systems of equations. I've got a problem now that seems ideal for this approach, but I ...
Chris K's user avatar
  • 20.3k
14 votes
1 answer
304 views

How is the Hessian computed using ``Experimental`NumericalFunction``?

Here and here it was explained how to use Experimental`NumericalFunction to compute the Hessian of a numerical function. I would like to know how this undocumented ...
Valerio's user avatar
  • 1,982
6 votes
1 answer
135 views

Return list from FrontEndExecute

This is a question that's been bugging me for quite some time, now. When we call the FE in a batched mode we can only get one result out. For instance, we could try to get two stylesheet files. First ...
b3m2a1's user avatar
  • 47k
21 votes
0 answers
411 views

Internal`Bag memory usage

1. How does Internal`Bag handle memory inside a compiled function? (examples below) 2. Is there a way to explicitly free up memory used by ...
aardvark2012's user avatar
  • 5,424
4 votes
1 answer
304 views

Fast reading, writing of png images

One of the fastest implemented mathematica function to read png images was showed here by MarcoB The code for reading a png he proposed is: ...
mrz's user avatar
  • 11.7k
2 votes
1 answer
416 views

Where is NumericalMath`OptimizeExpression`

In one of my older Notebooks I found a reference to NumericalMath`OptimizeExpression. When I wrote it, I handed the result of some transformations to ...
Adalbert Hanßen's user avatar
15 votes
1 answer
322 views

What are the main differences between RawArray and PackedArray?

What I know: PackedArray is documented (to some extent) in "Developer Utilities Package", RawArray is just mentioned in ...
The Vee's user avatar
  • 1,800
25 votes
1 answer
683 views

Why is SatisfiabilityCount faster than SatisfiableQ?

Consider the following (large) Boolean expression, which arose in a SAT problem. (The expression is not satisfiable.) ...
David Zhang's user avatar
  • 2,336
7 votes
1 answer
191 views

How does Internal`PolynomialFunctionQ work?

I found that Internal`PolynomialFunctionQ performs much better than PolynomialQ. Here is a huge random polynomial in 12 ...
QuantumDot's user avatar
  • 19.7k
4 votes
0 answers
196 views

strange timing result of LinearAlgebra`BLAS` in mathematica? [closed]

BLAS is short for "Basic Linear Algebra Subprograms". It is a famous collection of routines for doing linear algebra. I just know from Oleksandr R. that mma can directly call BLAS under the context "...
matheorem's user avatar
  • 17.2k
47 votes
2 answers
2k views

How to work with Experimental`NumericalFunction?

This question is intimately connected with previous one: "How to create internally optimized expression for computing with high WorkingPrecision?" Oleksandr R. correctly states in the comment: A ...
Alexey Popkov's user avatar
85 votes
2 answers
5k views

Internal`Bag inside Compile

Since Internal`Bag, Internal`StuffBag and Internal`BagPart can be compiled down, it is a ...
halirutan's user avatar
  • 113k