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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-01-24 20:53, mami music wrote:
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.
[list trim]
fgmadr IOhannes