indices/
mg_all.pro
includes main-level programRoutines
top mg_all
result = mg_all(condition)
Determine whether all elements of an array of logical values are true.
Return value
0B or 1L
Parameters
- condition in required type=numeric array
array of conditions to check
Examples
For example, determine if there are any even integers in any array and if all integers in the array are even:
IDL> a = indgen(10)
IDL> print, mg_any(a mod 2 eq 0)
1
IDL> print, mg_all(a mod 2 eq 0)
0
File attributes
Modification date: | Wed Jun 4 15:36:48 2014 |
Lines: | 9 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.