Modern IDL by Michael Galloy

API documentation for example code

single page | use frames     summary     class     fields     routine details     file attributes

performance/

mg_where_vs_histogram.pro

batch file

This shows the IDL help is wrong when it says:

For example, make the histogram of array A: H = HISTOGRAM(A, REVERSE_INDICES = R) ;Set all elements of A that are in the ith bin of H to 0. IF R[i] NE R[i+1] THEN A[R[R[I] : R[i+1]-1]] = 0 The above is usually more efficient than the following: bini = WHERE(A EQ i, count) IF count NE 0 THEN A[bini] = 0

File attributes

Modification date: Mon Jun 22 18:09:30 2009
Lines: 23
Docformat: rst rst