Programming Question: How do you augment one matrix with another?
|
07-02-2014, 06:09 AM
Post: #4
|
|||
|
|||
RE: Programming Question: How do you augment one matrix with another?
Hello
Quote:the flexibility of matrix construction and deconstruction. In NUMERICAL mode (Home and non CAS programs) Deconstruction is relatively easy as you can do things like: M(r) to access a row M(-c) to access a column M(r,c) to access an element M(r or -c or r,c):= to place vectors in locations... SUB(M, {r,c},{r,c}) extracts a sub part of a matrix... REPLACE(M1, {r,c}, M2) will place M2 at a given location in M1 I do seem to remember (not sure), that you can use lists in the 'storying' type commands and that they will be transformed into matrices as needed... Now, back to your problem... I do not have an augment command, however, you can do: M3:=MAKEMAT(0, r, c); REPLACE(M3,{1,1},M1); REPLACE(M3,{0,c}, M2); 3 commands, but no loops or the like... cyrille |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)