In Python Numpy, the array.sum enables to specify axis over which the sum is taken for elements.
In F# we can do that with FSharp.PowerPack.
Let us define a method to perform the above feature
1 2 3
Let us apply the above function into a matrix