All matrix operations can be done on tables that are used to define sparse matrices.
Example.
Create some sparse matrices.
Input:
purge(A):; |
A[0..2,0..2]:= [1,2,3] |
Output:
|
Input:
purge(B):; |
B[0..1,1..2]:= [1,2]:; |
B[0..2,0]:=5 |
Output:
|
The usual operations will work on A and B.
Input:
Output:
|
Input:
Output:
|
Input:
Output:
|