For example, I have vector A = mx1
. I want to sum each elements of vector A by :
1) Define vector B = 1xm
.
2) Take : AxB = 1x1
. So, this vector will be the value of sum elements of vector A.
But, I don't know how to choose vector B to this trick.
So, my question is : does exist vector B to do my trick, or if not, does exist a way just to do matrix manipulation (sum, multiplication, transpose...), and can do this trick, too. (it means : you not count each elements by hand)
Thanks :)