help-octave
[Top][All Lists]
Advanced

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

Vectorizing a summation


From: rdelgado
Subject: Vectorizing a summation
Date: Tue, 29 Jan 2013 05:53:47 -0800 (PST)

Hello,

I have a question about vectorizing a summation on Octave.

Suposse that I want to do this summation:

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

Where X, Y are MxN matrices.

Is there any way of doing that operation without for loops in Octave?
I can't find a way, but I am a beginner in Octave too.

Thanks for your time.



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


reply via email to

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