[Gretl-devel] error message for indexing into empty matrix

Allin Cottrell cottrell at wfu.edu
Thu Jul 2 17:38:08 EDT 2015

On Thu, 2 Jul 2015, Sven Schreiber wrote:

> Hi,
> this:
> matrix om = {}
> matrix mu = om[1,]
> produces a "data error". Wouldn't it be natural to call this an 
> "index out of bounds error" instead?

Yes. The "data error" code was produced by a libgretl function that 
assumed (old-style) that an empty matrix was inherently an invalid 
argument. Fixed in CVS.


More information about the Gretl-devel mailing list