matrix implementation, was: patch for $addrow needed?
Subject: matrix implementation, was: patch for $addrow needed?
From: van Nek
Date: Fri, 21 Apr 2006 14:18:53 +0200
Am 21 Apr 2006 um 11:27 hat Jaime E. Villate geschrieben:
> and notice that we already have a way to define another list, equal
> to the first one, in a way that they remain independent:
> L1: [2,3,4]$
> L2: L1$
> L3: copylist(L1)$
> L2[1]:10$ /* Modifies L1 and L2, but not L3 */
>
> therefore, I think we should keep the current behavior and document
> it better in the documentation, referring to "copylist". It would
> be nice to have also a function "copymatrix"; as long as I can tell
> there is not such thing in the current version.
> I can accept the first task (improving the documentation)
> but the second one (writing a copymatrix function) I'd rather
> leave it to a more experience lisp programmer.
>
Hello Jaime,
in src/comm2.lisp there are functions $copylist, $copymatrix and $copy. They all do copy-
tree. The documentation for $copy says, that load("linearalgebra") is necessary, which
seems not to be true. So an update of the documentation would be fine.
Volker