yorick banner

Home

Manual

Packages

Global Index

Keywords

Quick Reference

functions in std.i - e

 
 
 
edit_times


             edit_times, file  
          or edit_times, file, keep_list  
          or edit_times, file, keep_list, new_times, new_ncycs  
 
     edits the records for FILE.  The KEEP_LIST is a 0-origin index list  
     of records to be kept, or nil to keep all records.  The NEW_TIMES  
     array is the list of new time values for the (kept) records, and  
     the NEW_NCYCS array is the list of new cycle number values for the  
     (kept) records.  Either NEW_TIMES, or NEW_NCYCS, or both, may be  
     nil to leave the corresponding values unchanged.  If non-nil,  
     NEW_TIMES and NEW_NCYCS must have the same length as KEEP_LIST,  
     or, if KEEP_LIST is nil, as the original number of records in  
     the file.  If KEEP_LIST, NEW_TIME, and NEW_NCYCS are all omitted  
     or nil, then edit_times removes records as necessary to ensure  
     that the remaining records have monotonically increasing times,  
     or, if no times are present, monotonically increasing ncycs.  
     (The latest record at any given time/ncyc is retained, and earlier  
     records are removed.)  
     In no case does edit_times change the FILE itself; only Yorick's  
     in-memory model of the file is altered.  
builtin function, documented at i0/std.i   line 2545  
SEE ALSO: get_times,   get_ncycs,   jt,   jc  
 
 
 
eq_nocopy


             eq_nocopy, y, x  
 
     is the same as  
            y= x  
     except that if x is an array, it is not copied, even if it is  
     not a temporary (i.e.- an expression).  Having multiple variables  
     reference the same data can be confusing, which is why the default  
     = operation copies the array.  The most important use of eq_nocopy  
     involves pointers or lists:  
            y= *py  
            z= _car(list)  
     always causes the data pointed to by py to be copied, while  
            eq_nocopy, y, *py  
            eq_nocopy, z, _car(list)  
     does not copy the data - often more nearly what you wanted.  
     Note that scalar int, long, and double variables are always copied,  
     so you cannot count on eq_nocopy setting up an "equivalence"  
     between variables.  
builtin function, documented at i0/std.i   line 287  
 
 
 
error


             exit, msg  
             error, msg  
 
     Exits the current interpreted *main* program, printing the MSG.  
     (MSG can be omitted to print a default.)  
     In the case of exit, the result is equivalent to an immediate  
     return from every function in the current calling chain.  
     In the case of error, the result is the same as if an error had  
     occurred in a compiled routine.  
builtin function, documented at i0/std.i   line 2668  
SEE ALSO: print,   write,   batch,   catch  
 
 
 
exit


 exit  
 
builtin function, documented at i0/std.i   line 2668  
SEE error  
 
 
 
exp


             exp(x)  
 
     returns the exponential function of its argument (inverse of log).  
builtin function, documented at i0/std.i   line 607  
SEE ALSO: expm1,   log,   log10,   sinh,   cosh,   tanh,   sech,  
csch  
 
 
 
expm1


             expm1(x)  
          or expm1(x, ex)  
 
     return exp(X)-1 accurate to machine precision (even for X<<1)  
     in the second form, returns exp(x) to EX  
interpreted function, defined at i0/std.i   line 625  
SEE ALSO: exp,   log1p