Sum the components of a matrix

97 views
Skip to first unread message

John Christiansen

unread,
Feb 19, 2021, 12:09:45 PM2/19/21
to tins...@googlegroups.com
All,
Is there a command to sum up the components of a matrix on the Npicer CX CAS?

Thanks,
JPC

Nevil Hopley

unread,
Feb 20, 2021, 8:23:32 AM2/20/21
to tinspire
Yes
if A is a nxm matrix, then sum(A) gives a 1xm matrix of column totals
do the sum of the transpose of this sum(A) matrix and you'll have the sum of all elements of A
See here:
20-02-2021 Image001.jpg
Reply all
Reply to author
Forward
0 new messages