The days run away…

Tcl Matrix Type

I’ve just implemented a matrix object type for Tcl, the sources are available here (matrix0.1-src.zip). The package implements a new object type for Tcl which looks like a nested list of doubles but is stored internally as a 2d matrix. Conversion to and from string values is only done as needed so that matrices can be passed by value efficiently in tcl scripts. Here’s what you can do in Tcl with this package:

Of course there’s probably more to do here. Currently I don’t expose many matrix operations to the tcl level since originally this was meant as a C callable library. More can be added later. Comments are welcome.