|
|
|
|
|
|
|
|
|
Packed Arrays: An Efficient Internal Storage Format in Mathematica 4
|
|
|
|
|
|
Organization: | Wolfram Research, Inc. |
Department: | Kernel Technology |
|
|
|
|
|
|
While packed arrays may sound quite mysterious and deep, the idea is really quite simple. When it is clearly appropriate to represent a list of a single type machine numbers (integer, real, or complex) internally as an array, Mathematica does so. The basic technology is actually there in Mathematica 3.0, and is visible in the List operations that were added to the compiler. Basically what has been done for Mathematica 4 is to extend this representation to kernel functions where it is appropriate. The internal representation is essentially invisible to you as a user (you have to use functions in the Developer` context to even see it) so you do not have to worry about it. However, understanding the packed array representation can help you write faster, more memory-efficient code.
|
|
|
|
|
|
|
|
|
|
|
|
LU Decomposition, Data representation, Listable operations, structural operations, internal array format, packed array
|
|
|
|
|
|
|
|
|
|
|
|
| PackedArrays.nb (43.9 KB) - Mathematica Notebook |
|
|
|
|
|
|
|
| | | | | |
|