Assume input matrix represents a 3x3 array of numbers as in this example: [ [ 1, 3, 4], [5, 1, 2], [2, 2, 2] ]. Set value to the sum of all nine elements.
matrix
[ [ 1, 3, 4], [5, 1, 2], [2, 2, 2] ]
value