Sum notation in julia? -


i wondering if knew of julia equivalent function sum using sigma. example if wanted sum of sort (unsure of how show sigma notation, here picture of looking for):

both c , x matrices define earlier in code. know how code in julia or whether julia has equivalent function?
have used sum more simple vector sums, not sure if translate larger matrices. ideas?

if talking plain-old-julia variables

c = rand(5,3) x = rand(5,3) @show sum(c.*x) 

but if referring jump (based on previous questions), use sum{}:

using jump m = model() @variable(m, 0 <= x[i=1:5,j=1:3] <= 1) c = rand(5,3) @constraint(m, sum{c[i,j]*x[i,j],i=1:5,j=1:3} <= 10) 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -