You can use the apply function to do so, the syntax for this is take the matrix A and then apply this apply function across the rows of matrix A and function you need to apply is sum.
ಹೀಗೆ ಮಾಡಲು ನೀವು apply function ಅನ್ನು ಉಪಯೋಗಿಸಬೇಕು. ಇದರ syntax ಹೀಗಿದೆ. apply.