P
Puppet_Sock
I have a column of data.
12.3
3.5
7.8
8.5
...etc.
9.4
It is 16 elements in length, but the number 16 may be different for
different cases.
These are the values of a diagonal 16x16 matrix.
12.3 0 0 0 etc.
0 3.5 0 0 etc.
0 0 7.8 0 etc.
etc.
What I want is a way to store the data as the column, but have it
behave like the diagonal matrix when I do things like mmult,
transpose, minverse, etc. It would be cool if there was something like
mdiag(a,b,c,d) that would create a matrix that was zero off diagonal,
and had the values a, b, c, d, down the diagonal.
Is there anything like that?
Socks
12.3
3.5
7.8
8.5
...etc.
9.4
It is 16 elements in length, but the number 16 may be different for
different cases.
These are the values of a diagonal 16x16 matrix.
12.3 0 0 0 etc.
0 3.5 0 0 etc.
0 0 7.8 0 etc.
etc.
What I want is a way to store the data as the column, but have it
behave like the diagonal matrix when I do things like mmult,
transpose, minverse, etc. It would be cool if there was something like
mdiag(a,b,c,d) that would create a matrix that was zero off diagonal,
and had the values a, b, c, d, down the diagonal.
Is there anything like that?
Socks