• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Summary

Summary Sum of Matrix Elements

Document preview thumbnail
Preview 1 out of 2 pages

Sum of Matrix Elements

Content preview

How to Compute Sums of Matrix Elements
This lesson explains how to use matrix methods to compute sums of vector elements and sums of matrix elements.


How to Compute Sums: Vector Elements
The sum vector 1n is a 1 x n column vector having all n elements equal to one. The main use of the sum vector is to find the sum of the
elements from another 1 x n vector, say vector xn.

Let's demonstrate with an example.

1 1
1 = 1 x = 2
1 3

Then, the sum of elements from vector x is:

Σ xi = 1'x = ( 1 * 1 ) + ( 1 * 2) + ( 1 * 3 ) = 1 + 2 + 3 = 6

Note: For this website, we have defined the sum vector to be a column vector. In other places, you may see it defined as a row vector.


How to Compute Sums: Matrix Elements
The sum vector is also used to find the sum of matrix elements. Matrix elements can be summed in three different ways: within column
within rows, and matrix-wide.



Within columns. Probably, the most frequent application is to sum elements within columns, as shown below.

1'X = [ Σ Xr1 Σ Xr2 ... Σ Xrc ] = S

where

1 is an r x 1 sum vector, and 1' is its transpose
X is an r x c matrix
Σ Xri is the sum of elements from column i of matrix X
S is a 1 x c row matrix whose elements are column sums from matrix X



Within rows. It is also possible to sum elements within rows, as shown below.

Σ X1c

Σ X2c
X1 = = S
...
Σ Xrc


where

1 is an c x 1 sum vector
X is an r x c matrix

Document information

Uploaded on
May 7, 2025
Number of pages
2
Written in
2024/2025
Type
Summary
$5.50

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
selftest
4.2
(13)
Sold
51
Followers
6
Items
2606
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions