help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vectorizing a summation


From: rdelgado
Subject: Re: Vectorizing a summation
Date: Tue, 29 Jan 2013 07:09:35 -0800 (PST)

Hi again,

I was mistaken again. Sorry,

Actual thing is that X, Y are vectors going i,j=1...MxN and P is a MxN x MxN
matrix.
The calculation is:

result = SUM(from i=1...MxN) SUM (from j=1...MxN) (Pi-Pj) * (Xi - Yi) * (Xj
- Yj) 

As I posted before.

Sorry, I was misunderstanding the operation.

If you can check it I'll be glad.

Thanks.



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Vectorizing-a-summation-tp4649235p4649239.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]