Download Gauss 11 User Manual
Transcript
Language Fundamentals nms = &f1 | &f2 | &f3; proc fi(x,i); local f; f = nms[i]; local f:proc; retp( f(x) ); endp; fi(x,2) will return f2(x). The ampersand is used to return the pointers to the procedures. nms is a numeric vector that contains a set of pointers. The local statement is used twice. The first tells the compiler that f is a local matrix. The ith pointer, which is just a number, is assigned to f. Then the second local statement tells the compiler to treat f as a procedure from this point on; thus the subsequent statement f(x) is interpreted as a procedure call. Language Fundamentals 6-43
Related documents
User Guide
User Guide
AEG FN 6.19 E User guide
01_cover _eof2020:COVER.qxd
GAUSS for Windows User Guide
Operations & Service Manual
User`s Manual
MATRAN A Fortran 95 Matrix Wrapper
Elixir Schedule Designer User Manual
GAUSS 13 Quick-Start
View - ROLANDS & ASSOCIATES Corporation
取扱説明書(Eye-Fi連動機能編) (1.06 MB/PDF)