[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] [List To Matrix] (new)
From: |
Bill Page |
Subject: |
[Axiom-developer] [List To Matrix] (new) |
Date: |
Tue, 21 Jun 2005 23:12:12 -0500 |
Changes http://page.axiom-developer.org/zope/mathaction/ListToMatrix/diff
--
Assume that I have a 'List', like:
\begin{axiom}
L := [[- 1,3,- 3,1],[3,- 6,3],[- 3,3],[1]]
\end{axiom}
(which is calculated from some earlier expressions).
How can I convert it into a 'SquareMatrix'.
\begin{axiom}
L2:=[concat([L.i.j for j in 1..#L.i],[0 for j in
((#L.i)+1)..reduce(max,map(#,L))]) for i in 1..#L]
\end{axiom}
Namely I want to have a matrix like:
\begin{axiom}
A := matrix L2
\end{axiom}
so that I can do
\begin{axiom}
vp := vector[p0,p1,p2,p3]
\end{axiom}
and
\begin{axiom}
vp * A
\end{axiom}
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Axiom-developer] [List To Matrix] (new),
Bill Page <=