[Gretl-users] matrices and user functions

Allin Cottrell cottrell at wfu.edu
Fri Feb 2 18:17:33 EST 2007


Sven asked -- maybe a few weeks ago -- about the possibility of 
allowing users to define matrices via the gretl GUI, in the 
context of supplying matrix arguments to a packaged function.

This is now in CVS.  When you call a function via the function 
package GUI and a matrix is wanted, there's a "More..." button 
beside the argument slot, and clicking that takes you a matrix 
definition dialog.  There you have 3 choices: select a list of 
series (you get a matrix with a series per column); construct the 
matrix numerically (in this case you start by choosing dimensions 
and an initial fill value, then you get a spreadsheet-type 
editor); or construct the matrix using a formula.

You can also define a matrix via the new menu item /Data/Define 
matrix.

In addition, when matrices are defined (via the GUI or the command 
line or via a script), they appear as icons in the Session View 
window.  There you can view, edit or delete them.

Allin.



More information about the Gretl-users mailing list