|
From: Akshay S. <aks...@gm...> - 2012-03-12 17:21:15
|
Hi, Now that I have a reasonable amount of support for matrix slices (and more). I can now do neat stuff like ? (defvar a (make-complex-matrix 2 2)) ;; Get the second column ? (defvar e (make-sub-matrix a 0 1 2 1)) ;; Set the imaginary part of the second column to pi ? (copy! pi (imagpart! e)) without without ever having to copy the store. I guess this is okay for user interaction; but I guess there are costs involved with creating new CLOS objects though. Should this sort of stuff be avoided inside core functions then ? Akshay P.S: I will merge my changes and push things to matlisp-cffi, after sending this mail. |