search func which gives sum of every matris rows in a list
for matris like this
1 0 1
0 1 0
output [2,1]
i fins sum(list,dims=2) func but i dont want use this for examle i use " +(list…) "instead of "sum(list) "i find it in definition but i cant find dims defination there are defination for dims ? maybe there can be “.” or func . how dims can select each rows and makes it very fast
Completely unclear what you want to do. I’ll try to help anyway. Next time please quote your code with backticks.
a = [1 0 1; 0 1 0]
X = (a,a)
sum.(X,dims=2)
Does that help?
1 Like