Previous Up Next

2.42.4  Addition of elements of a column of a matrix : sum

sum takes as argument a matrix A.
sum returns the list whose elements are the sum of the elements of each column of the matrix A.
Input :

sum([[1,2],[3,4]])

Output :

[4,6]

Previous Up Next