Google

section m of routines in std.i

yorick banner

Home

Manual

Packages

Global Index

Keywords

Quick Reference

functions in std.i - m

 
 
 
mac_primitives


             mac_primitives, file  
 
     sets FILE primitive data types to be native to MacIntosh, 8 byte double.  

interpreted function, defined at i0/std.i   line 2011  
 
 
 
macl_primitives


             macl_primitives, file  
 
     sets FILE primitive data types to be native to MacIntosh, long double.  

interpreted function, defined at i0/std.i   line 2019  
 
 
 
max


             max(x)  
          or max(x, y, z, ...)  
 
     returns the scalar maximum value of its array argument, or, if  
     more than one argument is supplied, returns an array of the  
     maximum value for each array element among the several arguments.  
     In the multi-argument case, the arguments must be conformable.  

builtin function, documented at i0/std.i   line 720  
SEE ALSO: min,   sum,   avg  
 
 
 
median


             median(x)  
          or median(x, which)  
 
     returns the median of the array X.  The search for the median takes  
     place along the dimension of X specified by WHICH.  WHICH defaults  
     to 1, meaning the first index of X.  The median function returns an  
     array with one fewer dimension than its argument X (the WHICH  
     dimension of X is missing in the result), in exact analogy with  
     rank reducing index range functions.  If dimsof(X)(WHICH) is  
     odd, the result will have the same data type as X; if even, the  
     result will be a float or a double, since the median is defined  
     as the arithmetic mean between the two central values in that  
     case.  

interpreted function, defined at i0/std.i   line 1021  
SEE ALSO: sort  
 
 
 
merge


             merge(true_expr, false_expr, condition)  
 
     returns the values TRUE_EXPR or FALSE_EXPR where CONDITION is  
     non-zero or zero, respectively.  The result has the data type of  
     TRUE_EXPR or FALSE_EXPR, promoted to the higher arithmetic type  
     if necessary.  The result has the dimensions of CONDITION.  
     The number of elements in TRUE_EXPR must match the number of  
     non-zero elements of CONDITION, and the number of elements in  
     FALSE_EXPR must match the number of zero elements of CONDITION.  
     (TRUE_EXPR or FALSE_EXPR should be nil if there are no such  
     elements of CONDITION.  Normally, TRUE_EXPR and FALSE_EXPR should  
     be 1-D arrays if they are not nil.)  
     This function is intended for vectorizing a function whose  
     domain is divided into two or more parts, as in:  
        func f(x) {  
	  big= (x>=threshhold);  
	  wb= where(big);  
	  ws= where(!big);  
	  if (is_array(wb)) {  
	    xx= x(wb);  
	    fb=   
	  }  
	  if (is_array(ws)) {  
	    xx= x(ws);  
	    fs=   
	  }  
	  return merge(fb, fs, big);  
	}  

builtin function, documented at i0/std.i   line 802  
SEE ALSO: merge2,   where  
 
 
 
merge2


             merge2(true_expr, false_expr, condition)  
 
     returns the values TRUE_EXPR or FALSE_EXPR where CONDITION is  
     non-zero or zero, respectively.  The result has the data type of  
     TRUE_EXPR or FALSE_EXPR, promoted to the higher arithmetic type  
     if necessary.  Unlike the merge function, TRUE_EXPR and FALSE_EXPR  
     must be conformable with each other, and with the CONDITION.  

interpreted function, defined at i0/std.i   line 833  
SEE ALSO: merge2,   where  
 
 
 
min


             min(x)  
          or min(x, y, z, ...)  
 
     returns the scalar minimum value of its array argument, or, if  
     more than one argument is supplied, returns an array of the  
     minimum value for each array element among the several arguments.  
     In the multi-argument case, the arguments must be conformable.  

builtin function, documented at i0/std.i   line 710  
SEE ALSO: max,   sum,   avg  
 
 
 
mkdir


             mkdir, directory_name  
             rmdir, directory_name  
 
     Create DIRECTORY_NAME with mkdir, or remove it with rmdir.  
     The rmdir function only works if the directory is empty.  

builtin function, documented at i0/std.i   line 1571  
SEE ALSO: cd,   lsdir,   get_cwd,   get_home