[Gretl-devel] matrix from null list

Allin Cottrell cottrell at wfu.edu
Mon Feb 11 09:48:32 EST 2008


On Mon, 11 Feb 2008, Sven Schreiber wrote:

> Am 11.02.2008 04:06, Allin Cottrell schrieb:
> 
> Also done...

> > matrix m = {1,2,3,4}
> > list L = m  # OK provided there are at least 4 variables
> >             # in the dataset
> 
> wasn't this already possible before?

Yes, you're right.  Then it disappeared for a while when I shifted 
list management over to "genr"; but now it's back again.  And in 
its new incarnation it's more flexible: the matrix on the right 
doesn't have to be a pre-existing named matrix, it can be some 
expression that evaluates to a matrix, e.g.,

matrix m = {1,2,3,4}
list L = m .+ 1

Allin.


More information about the Gretl-devel mailing list