Prepend
(Built-in Mathematica Symbol) Prepend[expr, elem] gives expr with elem prepended.
CUDAFunctionLoad[src, fun, argtypes, blockdim] loads CUDAFunction from scr and makes fun available in Mathematica.CUDAFunctionLoad[{srcfile}, fun, argtypes, blockdim] loads ...
In many kinds of calculations, you need to set up "arrays" that contain sequences of expressions, each specified by a certain index. One way to implement arrays in ...
FoldList[f, x, {a, b, ...}] gives {x, f[x, a], f[f[x, a], b], ...}.
First
(Built-in Mathematica Symbol) First[expr] gives the first element in expr.
Most
(Built-in Mathematica Symbol) Most[expr] gives expr with the last element removed.
Specifying patterns that involve alternatives. This defines h to give p when its argument is either a or b. The first two cases give p.
ManhattanDistance[u, v] gives the Manhattan or "city block" distance between vectors u and v.
Apply
(Built-in Mathematica Symbol) Apply[f, expr] or f @@ expr replaces the head of expr by f. Apply[f, expr, {1}] or f @@@ expr replaces heads at level 1 of expr by f.Apply[f, expr, levelspec] replaces heads ...
Mathematica supports logical operators not only for programming, but for mathematical operations as well.