[PD] making a list for a matrix

mami music mami.music at gmail.com
Mon Jan 24 20:53:36 CET 2011


Hi guys
Im receiving a list of flotas from a process. I want to add this list to a
specific row of a matrix using [matrix] from /iemmatrix library.
The method to add a row to [matrix] is to make a message which first element
is 'row', then a float with the row number, and then the floats that make
the row.

The problem i have is that when i pack the whole message and print it iget
'list' preceding the list (see below), so when i send it to the [matrix]
object i get the "matrix: sparse matrices not yet supported : use
"mtx_check" !" error.

So the question is:
How can i make this message without having to use the message object because
it should have fixed dollar sign variables and the matrix i want to fill
might change its length from time to time.

Thanks in advance

/D

print: list row 5 0 1 0.455 0.5 0.5 0 0 0 0.5 0.5 0 0 0 1 1 0.385 0 0 0
0.333333 0 0 0 0 0 0.442308 0 0.269231 0 0.333333 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0.378709 0.5 0.04 0.5 0 0.115385 0 0 0 0 0 0 0.74 0.325 0.345 0.43 0
0.065 0.325 0.285 0 0.045
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110124/ddb73cff/attachment.htm>


More information about the Pd-list mailing list