My matrix package actually only provides semi-persistent (a technical term
in the data structures world, I guess) matrices. A fully functional one
would probably just use a double layered hasheq.
Basically, you can always read any older version of the matrix, but you
only modify the latest modific
On Wed, Oct 31, 2012 at 5:12 PM, Gregory Woodhouse
wrote:
> I've been thinking about whether how to implement matrices in Racket. One
> obvious option is just to use a vector
Oh! That's related to something I was coding up called "multidim" to
do multi-dimensional matrices. Here is the source
I've been thinking about whether how to implement matrices in Racket. One
obvious option is just to use a vector
;;a matrix with data stored in the vector data
(struct matrix (rows cols [data #:mutable]))
and then entries can be retrieved simply enough
;;return the (i, j)th element of m
;;row
3 matches
Mail list logo