Nick Kostirya wrote:
> 
> If one imagines 'in a matrix way', the friends-chart turns into a
> matrix with 1 and 0 values. Next, the matrix is multiplied to vector
> (how many apples each friend gives to each one).
> 
> In a word, it's simple. However, there's a question: is there any
> optimization for such actions ? I'm afraid, this matrix will gobble
> all the memory .
> 
Perhaps a sparse representation of your matrix, using $. , would
be one optimization to consider here.



-- 
View this message in context: 
http://www.nabble.com/J-and-kdb-tf4950248s24193.html#a14215827
Sent from the J General mailing list archive at Nabble.com.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to